[GRASS-dev] [GRASS GIS] #3558: wx.metadata: several issues in syntax

#3558: wx.metadata: several issues in syntax
-------------------------------------------------+-------------------------
Reporter: sbl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: 7.4.0
Keywords: wx.metadata, | CPU: All
  g.gui.metadata,r.iso.info |
Platform: All |
-------------------------------------------------+-------------------------
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'}

}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3558&gt;
GRASS GIS <https://grass.osgeo.org>

#3558: wx.metadata: several issues in syntax
---------------------+----------------------------------------------------
  Reporter: sbl | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: 7.4.0
Resolution: | Keywords: wx.metadata, g.gui.metadata,r.iso.info
       CPU: All | Platform: All
---------------------+----------------------------------------------------
Changes (by sbl):

* Attachment "mdgrass_py.diff" added.

g7.4 findfile syntax, correct mdutils module call

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3558&gt;
GRASS GIS <https://grass.osgeo.org>

#3558: wx.metadata: several issues in syntax
---------------------+----------------------------------------------------
  Reporter: sbl | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: 7.4.0
Resolution: | Keywords: wx.metadata, g.gui.metadata,r.iso.info
       CPU: All | Platform: All
---------------------+----------------------------------------------------
Changes (by sbl):

* Attachment "g_gui_metadata_py.diff" added.

Adjust parts of the syntax to wxpython 3 requirements

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3558&gt;
GRASS GIS <https://grass.osgeo.org>

#3558: wx.metadata: several issues in syntax
---------------------+----------------------------------------------------
  Reporter: sbl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.3
Component: Addons | Version: 7.4.0
Resolution: fixed | Keywords: wx.metadata, g.gui.metadata,r.iso.info
       CPU: All | Platform: All
---------------------+----------------------------------------------------
Changes (by sbl):

* status: new => closed
* resolution: => fixed

Comment:

There have been various fixes to wx.metadata:

https://github.com/OSGeo/grass-addons/pulls?q=is%3Apr+wx.metadata

Closing the ticket.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3558#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>