[GRASS GIS] #4022: impossible to remove vect and delete attribute from gui

"GRASS GIS" <[email protected]>
Newsgroups gmane.comp.gis.grass.devel
Message-ID <[email protected]>
#4022: impossible to remove vect and delete attribute from gui
---------------------+-------------------------
 Reporter:  1266     |      Owner:  grass-dev@…
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:
Component:  Default  |    Version:  unspecified
 Keywords:           |        CPU:  Unspecified
 Platform:  Linux    |
---------------------+-------------------------
 I cannot remove vector object and/or attribute data from the right-clic
 menu on attribute box in the gui (delete selected records/features) with
 grass 7.8 or 7.9 (on debian buster with 'fr' or 'en' locale)

 But "v.edit tool=delete map=mymap where="mycolum=myvalue" and db.execute
 "sql=DELETE FROM mymap WHERE mycolomn = myvalue" work fine.

 console return :
 Traceback (most recent call last):
   File "/usr/local/grass78/gui/wxpython/dbmgr/base.py", line
 1997, in OnDeleteSelected

 if self.OnDataItemDelete(None) and self.mapdisplay:
   File "/usr/local/grass78/gui/wxpython/dbmgr/base.py", line
 1748, in OnDataItemDelete

 self.ApplyCommands(self.listOfCommands,
 self.listOfSQLStatements)
   File "/usr/local/grass78/gui/wxpython/dbmgr/base.py", line
 982, in ApplyCommands

 sqlFile.write(sql.encode('utf-8') + ';')
 TypeError
 :
 can't concat str to bytes

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/4022>
GRASS GIS <https://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.