[GRASS-SVN] r67340 - grass-addons/grass7/gui/wxpython/wx.metadata/mdlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 23 06:51:47 PST 2015


Author: krejcmat
Date: 2015-12-23 06:51:47 -0800 (Wed, 23 Dec 2015)
New Revision: 67340

Modified:
   grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdpdffactory.py
Log:
addons wx.metadata: export to pdf, fix use constraints item

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdpdffactory.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdpdffactory.py	2015-12-23 11:43:49 UTC (rev 67339)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdpdffactory.py	2015-12-23 14:51:47 UTC (rev 67340)
@@ -229,7 +229,7 @@
         ###################### Constraints ########################
         self.doc.add_spacer(25)
         self.doc.add_header('Constraints', H1)
-        self.tableFactory("Condition applying to use", ["Use constraints"], 'identification')
+        self.tableFactory("Condition applying to use", ["Use limitation"], 'identification')
         self.tableFactory("Condition applying to access", ["Access constraints"], 'identification')
         self.tableFactory("Limitation on public access", ["Other constraintrs"], 'identification')
         ###################### Responsible party ########################
@@ -350,7 +350,8 @@
             if md.identification.uselimitation is not None:
                 for limitation in md.identification.uselimitation:
                     if limitation is not (None or ''):
-                        metadata["identification"].append(MD_ITEM(limitation, "gmd:useLimitation", "Use limitation"))
+                        metadata["identification"].append(
+                            MD_ITEM(limitation, "gmd:useLimitation", "Use limitation"))
 
             if md.identification.accessconstraints is not None:
                 for accessconstraints in md.identification.accessconstraints:



More information about the grass-commit mailing list