Shows error when clicking "Import from CSV" in maps

Bug #1093862 reported by Sudha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahana-Eden
New
Undecided
Unassigned

Bug Description

System Tested : http://127.0.0.1 : 8000

Browser : Google Chrome Windows 8 Pro x32

Prerequisites : Should have logged in

Steps :
1)Click Maps
2)A message "No projections configured" appears.
3)Click "Import from CSV" form the side panel.
4) The following page is displayed :
 Error ticket for "eden"

Ticket ID

127.0.0.1.2012-12-26.15-16-38.adad38aa-b86f-4af3-b039-f66074dee765

<type 'exceptions.TypeError'> unsupported operand type(s) for +: 'NoneType' and 'int'

Version

web2py™
(2, 1, 1, datetime.datetime(2012, 10, 17, 9, 13, 38), 'dev')

Python
Python 2.7.3: D:\Program Files\SahanaEden\web2py.exe

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
 Traceback (most recent call last):
  File "gluon\restricted.pyc", line 209, in restricted
  File "D:/Program Files/SahanaEden/applications/eden/controllers/gis.py", line 3016, in <module>
  File "gluon\globals.pyc", line 184, in <lambda>
  File "D:/Program Files/SahanaEden/applications/eden/controllers/gis.py", line 366, in location
  File "D:/Program Files/SahanaEden/applications/eden/models/00_utils.py", line 292, in s3_rest_controller
  File "applications\eden\modules\s3\s3rest.py", line 858, in __call__
  File "D:/Program Files/SahanaEden/applications/eden/controllers/gis.py", line 310, in <lambda>
  File "D:/Program Files/SahanaEden/applications/eden/controllers/gis.py", line 293, in prep
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Error snapshot help

<type 'exceptions.TypeError'>(unsupported operand type(s) for +: 'NoneType' and 'int')

inspect attributes

Frames

File D:\Program Files\SahanaEden\gluon\restricted.pyc in restricted at line 209 code arguments variables

File D:\Program Files\SahanaEden\applications\eden\controllers\gis.py in <module> at line 3016 code arguments variables

File D:\Program Files\SahanaEden\gluon\globals.pyc in <lambda> at line 184 code arguments variables

File D:\Program Files\SahanaEden\applications\eden\controllers\gis.py in location at line 366 code arguments variables

File D:\Program Files\SahanaEden\applications\eden\models\00_utils.py in s3_rest_controller at line 292 code arguments variables

File D:\Program Files\SahanaEden\applications\eden\modules\s3\s3rest.py in __call__ at line 858 code arguments variables

File D:\Program Files\SahanaEden\applications\eden\controllers\gis.py in <lambda> at line 310 code arguments variables

File D:\Program Files\SahanaEden\applications\eden\controllers\gis.py in prep at line 293 code arguments variables

Function argument list

(r=<applications.eden.modules.s3.s3rest.S3Request object>, vars={})

Code listing
288.
289.
290.
291.
292.
293.

294.
295.
296.
297.
                     record = r.record
                    if record and record.lat is not None and record.lon is not None:
                        lat = record.lat
                        lon = record.lon
                    # Same as a single zoom on a cluster
                    zoom = zoom + 2

                _map = gis.show_map(lat = lat,
                                    lon = lon,
                                    zoom = zoom,

.
.
.
(COMPLETE PAGE ATTACHED IN .ZIP)

Expected result : Chosen page should be displayed.

Actual Result : Error message received.

Revision history for this message
Sudha (msrghvn) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.