Opened 7 years ago
Closed 4 years ago
#3558 closed defect (fixed)
wx.metadata: several issues in syntax
Reported by: | sbl | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | Addons | Version: | 7.4.0 |
Keywords: | wx.metadata, g.gui.metadata, r.iso.info | Cc: | |
CPU: | All | Platform: | All |
Description
wx.metadata has a couple of issues mostly due to changes in underlying libraries, I guess. The attached diffs fix some of them, but remaining issues amongst others require wxGUI programming skills, which I do not have unfortunately.
After changes applied editing metadata still throws:
Traceback (most recent call last): File "/home/stefan/.grass7/addons/scri pts/g.gui.metadata", line 506, in onEdit ok = self.editMapMetadata() File "/home/NINA.NO/stefan.blumentrath/.grass7/addons/scri pts/g.gui.metadata", line 822, in editMapMetadata if self.chckProfileSelection('spatial'): File "/home/NINA.NO/stefan.blumentrath/.grass7/addons/scri pts/g.gui.metadata", line 790, in chckProfileSelection text = self.MdDataCatalogPanelLeft.GetItemText(parent) File "/usr/lib/python2.7/dist- packages/wx-3.0-gtk2/wx/_controls.py", line 5255, in GetItemText return _controls_.TreeCtrl_GetItemText(*args, **kwargs) TypeError: in method 'TreeCtrl_GetItemText', expected argument 2 of type 'wxTreeItemId const &'
r.info.iso gives the following warning message:
/usr/lib/python2.7/dist-packages/owslib/iso.py:111: FutureWarning: the .identification and .serviceidentification properties will merge into .identification being a list of properties. This is currently implemented in .identificationinfo. Please see https://github.com/geopython/OWSLib/issues/38 for more information FutureWarning) /usr/lib/python2.7/dist-packages/owslib/iso.py:451: FutureWarning: The .keywords and .keywords2 properties will merge into the .keywords property in the future, with .keywords becoming a list of MD_Keywords instances. This is currently implemented in .keywords2. Please see https://github.com/geopython/OWSLib/issues/301 for more information FutureWarning) {'status': 'succeded', 'errors': [], 'num_of_errors': '0'}
Attachments (2)
Change History (5)
by , 7 years ago
Attachment: | mdgrass_py.diff added |
---|
by , 7 years ago
Attachment: | g_gui_metadata_py.diff added |
---|
Adjust parts of the syntax to wxpython 3 requirements
comment:2 by , 5 years ago
Milestone: | → 7.8.3 |
---|
comment:3 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
There have been various fixes to wx.metadata:
https://github.com/OSGeo/grass-addons/pulls?q=is%3Apr+wx.metadata
Closing the ticket.
Note:
See TracTickets
for help on using tickets.
g7.4 findfile syntax, correct mdutils module call