AW: [Qgis-developer] (First?) API break

Andreas Neumann a.neumann at carto.net
Sun Dec 11 09:26:55 EST 2011


in javascript there is try and catch for such problems. Ore one could
test if an object/method/property is present. There are a lot of browser
differencies - so in a web environment it is quite normal to test for
capabilities.

How can one check if an object/method is present in Python?

Andreas

On 12/11/2011 02:10 PM, Paolo Cavallini wrote:
> Il 11/12/2011 10:57, Ziegler Stefan ha scritto:
>> Hi
>>
>> What is the best practice to deal with such API breaks (regarding python plugins)? 
> 
> Can we have a conditional fix (if api_version=2.0)? This way we should not maintain
> two copies of the same plugins, much better if someone works with qgis stable but
> also tests master.
> All the best.
> 



More information about the Qgis-developer mailing list