I dusted off some wiki code I was playing with awhile ago and tried it under
the latest version of web2py.  I'm getting KeyError exceptions on the string
"source" which I used as a variable name.  Has there been some reserved
words added to web2py?  It is not an insurmountable problem to change the
variable names, but it occurs in a bunch of places and will be tedious.

I realize I may be barking up the wrong tree.  Perhaps it is Python which
now considers the string 'source' as special...

Sample traceback:

Traceback (most recent call last):
  File "/Users/joeb/Work/web2py/gluon/restricted.py", line 173, in restricted
    exec ccode in environment
  File "/Users/joeb/Work/web2py/applications/wiki/controllers/default.py"
<http://localhost:8080/admin/default/edit/wiki/controllers/default.py>,
line 147, in <module>
  File "/Users/joeb/Work/web2py/gluon/globals.py", line 96, in <lambda>
    self._caller = lambda f: f()
  File "/Users/joeb/Work/web2py/applications/wiki/controllers/default.py"
<http://localhost:8080/admin/default/edit/wiki/controllers/default.py>,
line 45, in edit
    src=db(db.source.uuid==page.source_uuid).select()[0]
  File "/Users/joeb/Work/web2py/gluon/sql.py", line 1295, in __getattr__
    return dict.__getitem__(self,key)
KeyError: 'source'

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to