Can I see your model

On 31 Lug, 23:56, Johann Spies <[email protected]> wrote:
> I am using Web2py  Version 1.81.5 (2010-07-22 23:56:21).
>
> In user_auth I use "username".  I am trying to setup access control
> measures.  When I try to add a record to the auth_membership table
> using appadmin, I get the following ticket:
>
> Traceback (most recent call last):
>   File "/Users/js/Programmeer/zenex/web2py/gluon/restricted.py", line
> 178, in restricted
>     exec ccode in environment
>   File 
> "/Users/js/Programmeer/zenex/web2py/applications/zenex/controllers/appadmin 
> .py",
> line 410, in <module>
>   File "/Users/js/Programmeer/zenex/web2py/gluon/globals.py", line 96,
> in <lambda>
>     self._caller = lambda f: f()
>   File 
> "/Users/js/Programmeer/zenex/web2py/applications/zenex/controllers/appadmin 
> .py",
> line 124, in insert
>     form = SQLFORM(db[table], ignore_rw=ignore_rw)
>   File "/Users/js/Programmeer/zenex/web2py/gluon/sqlhtml.py", line
> 706, in __init__
>     inp = self.widgets.options.widget(field, default)
>   File "/Users/js/Programmeer/zenex/web2py/gluon/sqlhtml.py", line
> 187, in widget
>     options = requires[0].options()
>   File "/Users/js/Programmeer/zenex/web2py/gluon/validators.py", line
> 422, in options
>     self.build_set()
>   File "/Users/js/Programmeer/zenex/web2py/gluon/validators.py", line
> 406, in build_set
>     records = self.dbset.select(*self.fields, **dd)
>   File "/Users/js/Programmeer/zenex/web2py/gluon/sql.py", line 3144, in select
>     return self.parse(db,rows,self.colnames,SetClass=Set)
>   File "/Users/js/Programmeer/zenex/web2py/gluon/sql.py", line 3166, in parse
>     field = table[fieldname]
>   File "/Users/js/Programmeer/zenex/web2py/gluon/sql.py", line 1592,
> in __getitem__
>     return dict.__getitem__(self, str(key))
> KeyError: 'first_name'
>
> Is this a bug?
>
> Regards
> Johann
>
> --
>     "Be not deceived; God is not mocked: for whatsoever a
>      man soweth, that shall he also reap."
>                                   Galatians 6:7

Reply via email to