[Qgis-developer] various issues

Richard Duivenvoorde rdmailings at duif.net
Tue Apr 20 13:56:14 EDT 2010


Paolo Cavallini wrote:
> One more: HTML Image map Throws an error when no adequate layer is
> selected:
> 
> Traceback (most recent 
> call last):
> File "C:/Documents and Settings/Administrator/.
> qgis//python/plugins\imagemap_plugin\imagemapplugin.py", line 46, in 
> run
> QMessageBox.warning(self.iface.mainWindow(), self.
> MSG_BOX_TITLE+self.version(), ("No active layer found\n" "Please make 
> one (multi)polygon or point layer active\n" "by choosing a layer in the 
> legend"), QMessageBox.Ok, QMessageBox.Ok)
> AttributeError: 
> ImageMapPlugin instance has no attribute 'version'
> 
> Furthermore, the OnClick attribute tries to pen a wrong page when clicking
> on OK.

mmm, the 'version' is a leftover of a try to display the version name 
.... shouldn't have made it to the repo's..
Will fix this.

@devs: is there a way in python to get to the plugin-version as defined 
in __init__.py?

The OnClick attribute I have to think about what to do with that.

Thanks for reporting.

Regards,

Richard Duivenvoorde


More information about the Qgis-developer mailing list