[Qgis-community-team] An error in Documentation Snapshot of Macro Python
jonnyforest
joaofrgaspar at gmail.com
Wed Mar 5 04:22:46 PST 2014
I guys,
in
http://qgis.org/en/docs/user_manual/introduction/qgis_configuration.html#project-properties
<http://qgis.org/en/docs/user_manual/introduction/qgis_configuration.html#project-properties>
the snapshot of python code have an error the fix is:
/from qgis.utils import iface
from qgis.gui import QgsMessageBar
def openProject():
msgbar = iface.messageBar()
msgbar.*pushMessage*('WARNING', 'project contains sensitive data',
QgsMessageBar.WARNING,10)
def saveProject():
pass
def closeProject():
pass/
I put the fix in bold.
Regards
-----
__________________________________________________________
"A palavra impossível é uma expressão infeliz; nada se pode esperar daqueles que a usam frequentemente" [Carlyle, Thomas]
Linkedin: http://pt.linkedin.com/in/joaofiliperodriguesgaspar
Transifex: https://www.transifex.com/accounts/profile/jonny_forest/
Github: https://github.com/jonnyforestGIS
Osgeo Wiki: http://wiki.osgeo.org/wiki/Jo%C3%A3o_Gaspar
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/An-error-in-Documentation-Snapshot-of-Macro-Python-tp5107659.html
Sent from the Quantum GIS - Community Team mailing list archive at Nabble.com.
More information about the Qgis-community-team
mailing list