Hi,
I have an upload field in my database that looks like this:

db.define_table('page',
    Field('book_id', db.book, required=True),
    Field('number', 'integer', required=True),
    Field('body', 'text', required=True),
    Field('image', 'upload', autodelete=True),
)

db.page.image.requires = IS_NULL_OR(IS_IMAGE())

If I try to edit a record in appadmin by uploading a non-image file I
get this traceback error:

TypeError: not indexable

Inserting a record with a non-image file displays the proper error
message "invalid image" in the form.

Chris

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

Reply via email to