It looks to me you have a new version of globals.py but an old version
of sql.py. Is this possible?

Massimo

On Jul 30, 4:21 am, annet <annet.verm...@gmail.com> wrote:
> In my model I defined the following table:
>
> db.define_table('level',
>     db.Field('level',length=36,default='',notnull=True,unique=True),
>     db.Field('image',type='upload'),
>     migrate='level.table')
>
> db.level.level.requires=[IS_LENGTH(36,error_message='lengte
> overschreidt 36 tekens'),IS_NOT_EMPTY(),IS_NOT_IN_DB
> (db,'level.level',error_message='level niet uniek')]
> db.level.level.label='Level * '
> db.level.image.autodelete=True
>
> When I add a level through appadmin, I get the follwoing error ticket:
>
> Traceback (most recent call last):
>   File "/Library/Python/2.5/site-packages/web2py/gluon/restricted.py",
> line 176, in restricted
>     exec ccode in environment
>   File "/Library/Python/2.5/site-packages/web2py/applications/demo/
> controllers/appadmin.py", line 255, in <module>
>   File "/Library/Python/2.5/site-packages/web2py/gluon/globals.py",
> line 103, in <lambda>
>     self._caller = lambda f: f()
>   File "/Library/Python/2.5/site-packages/web2py/applications/demo/
> controllers/appadmin.py", line 237, in update
>     if form.accepts(request.vars, session):
>   File "/Library/Python/2.5/site-packages/web2py/gluon/sqlhtml.py",
> line 807, in accepts
>     fields[fieldname] = field.store(source_file, original_filename)
> AttributeError: 'SQLField' object has no attribute 'store'
>
> Does that mean that I have to add a field store to my table
> definition?
>
> Kind regards,
>
> Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to