You cannot have a field name called "file". Previous versions of web2py did 
not check and allowed it because sqlite allow it. Then users run into 
problems when moving to mysql or postgresql which do not allow it.

Mind this is an issue only with new applications.

Massimo

On Sunday, 13 January 2013 12:50:02 UTC-6, Rob Paire wrote:
>
> Hello - Running the "New application Wizard (requires internet access)" 
> from version 2.3.2 and choosing the Plugin Option: "attachments" will 
> output code which contains an error in the auto-generated* 
> plugin_attachments.py 
> *module. The error is on line 5 shown below: 
>
>               
>  Field('file','upload',requires=IS_NOT_EMPTY(),autodelete=True),
>
> The error basically says you cannot have a field named *file* because it 
> is a reserved word. I changed the field name to *filename *and no longer 
> get the error message - I have not pursed this any further, and so I don't 
> know if this will cause any other side-effects. Thanks for supporting a 
> great program!
> -Rob
>

-- 



Reply via email to