After upgrading from web2py 2.14.5 to 2.17.2 and editing a model file I got 
the following error:

Traceback (most recent call last):
  File "/Users/iannet/web2py/gluon/restricted.py", line 219, in restricted
    exec(ccode, environment)
  File 
"/Users/iannet/web2py/applications/adminmodel/models/01_education_db.py", line 
19, in <module>
    Field('image', type='upload', default=None, 
requires=IS_EMPTY_OR(IS_IMAGE(extensions=('gif', 'jpg', 'jpeg', 'png'), 
maxsize=(320, 518)), IS_LENGTH(128*1024)), autodelete=True, 
uploadfolder=os.path.join(UPLOADFOLDER, 'vertexID%s' % 
session.back_end_vertexID)),
NameError: name 'os' is not defined


What has changed between these versions that's causing this error? As far 
as I can see 0_imports .py still imports os


Kind regards,

Annet

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to