Sorry that is not the proper thing to do. The problem is that some
database do no allow NULL values in blobs.

You just need to make sure that 'blob' files have default=''

On Nov 5, 6:23 am, Jonathan Benn <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I tried implementing the code seen on p.220 of the web2py manual (the
> cut version of the manual at any rate) so that I could still upload
> documents to my Google App Engine app and ran into problems.
>
> The bug:
>
> I could no longer create new rows in the database
>
> Analysis:
>
> The reason for the bug is that the 'blob' field type is apparently not
> supported by the code. As a result, the form.accepts method was
> returning early with a value of False.
>
> The Fix:
>
> web2py/gluon/sqlhtml.py, line 222
>
> Inserted this line:
>     elif field.type=='blob': pass
> Before the line:
>     elif field.default==None: return False
>
> --Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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