platform: python2.5 winxp web2py(1.77.3) from source

auth.settings.table_user = db.define_table(
    auth.settings.table_user_name,
    Field('first_name', length=128, default='',writable=False,
readable=False),
    Field('last_name', length=128, default=''),
    Field('email', length=512, default=''),
    Field(auth.settings.password_field, 'password',
length=512,readable=False,
        requires = [CRYPT(key=auth.settings.hmac_key)]),
    Field('registration_key', length=512, writable=False,
readable=False, default='',
label=auth.messages.label_registration_key),
    Field('reset_password_key', length=512, writable=False,
readable=False, default=''),
    Field('avatar','upload'),
    migrate = isDeveloping)

when upload a picture, error occurs and error message is:
ERROR:Rocket.Errors.Thread-7:Traceback (most recent call last):
  File "E:\web2py\gluon\rocket.py", line 747, in run
    self.run_app(conn)
  File "E:\web2py\gluon\rocket.py", line 1162, in run_app
    sections = len(output)
  File "C:\Python25\lib\cgi.py", line 633, in __len__
    return len(self.keys())
  File "C:\Python25\lib\cgi.py", line 609, in keys
    raise TypeError, "not indexable"
TypeError: not indexable


-- 
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to