littleq0903 / appengine-admin

Automatically exported from code.google.com/p/appengine-admin
0 stars 0 forks source link

BooleanProperty in model gives error in admin page #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add a db.BooleanProperty() inside a model
2. i.e. class user(db.Model): 
           is_public = db.BooleanProperty()
3. go to admin page (localhost:8080/admin/user/list)

What is the expected output? What do you see instead?

I should see page listing all entities of that model, but i get an error page

Traceback (most recent call last):
  File "/usr/local/google_appengine/google/appengine/ext/webapp/__init__.py", line 515, in __call__
    handler.get(*groups)
  File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/views.py", line 92, in get
    self._callHandlingMethod(url, self.getRegexps)
  File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/views.py", line 111, in _callHandlingMethod
    function(*matched.groups())
  File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/authorized.py", line 14, in check_login
    handler_method(self, *args, **kwargs)
  File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/views.py", line 173, in list_get
    'items': map(modelAdmin._attachListFields, items),
TypeError: argument 2 to map() must support iteration

What version of the product are you using? On what operating system?
appengine_admin_r109.tgz,  Linux Mint 10

Please provide any additional information below.
Tried to check out views page. Haven't had time to go through all models yet. 

Original issue reported on code.google.com by ja...@ga2oo.com on 7 Apr 2011 at 10:14

GoogleCodeExporter commented 9 years ago
never mind. i had a previous entity stored that was in the form 0,1 not true, 
false. this cause the error. 

Original comment by ja...@ga2oo.com on 7 Apr 2011 at 11:28

GoogleCodeExporter commented 9 years ago

Original comment by valdiic on 18 Feb 2012 at 9:10