[GRASS-dev] [GRASS GIS] #1483: need error trapping in cartographic composer

GRASS GIS trac at osgeo.org
Sat Oct 29 01:51:47 EDT 2011


#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
 Reporter:  cmbarton                       |       Owner:  grass-dev@…              
     Type:  defect                         |      Status:  new                      
 Priority:  normal                         |   Milestone:  7.0.0                    
Component:  wxGUI                          |     Version:  svn-trunk                
 Keywords:  ps.map, cartographic composer  |    Platform:  Unspecified              
      Cpu:  Unspecified                    |  
-------------------------------------------+--------------------------------
 If you do the following, you get an error in the GUI for ps.map

 1. create a map frame and add a map to it
 2. close the map frame dialog
 3. reopen the map frame dialog and select delete under the menu (why can't
 you delete a single map instead of deleting the whole frame??)
 4. without closing the map frame dialog, select another map and add it
 (note that the map frame is gone from the thumbnail).
 5. click "apply"

 Here is the error:

 {{{
 Traceback (most recent call last):
   File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
 /gui/wxpython/gui_modules/psmap_dialogs.py", line 1966, in
 OnApply

 okR = self.rPanel.update()
   File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
 /gui/wxpython/gui_modules/psmap_dialogs.py", line 2616, in
 update

 if self.rasterDict['raster'] != map['drawMap']:
 TypeError
 :
 list indices must be integers, not str

 }}}

 I found this in the most recent build of GRASS 7 (28-October-2011) but
 don't know if it affects other versions as well (probably does).

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1483>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list