SVN is no longer updated. Please try the tarball form web2py.com

On Jan 18, 7:27 pm, Cliff  Brake <cliff.br...@gmail.com> wrote:
> Any idea what is causing the following?
>
> I have the following in default.py
>
> def user():
>     """
>     exposes:
>    http://..../[app]/default/user/login
>    http://..../[app]/default/user/logout
>    http://..../[app]/default/user/register
>    http://..../[app]/default/user/profile
>    http://..../[app]/default/user/retrieve_password
>    http://..../[app]/default/user/change_password
>     use @auth.requires_login()
>         @auth.requires_membership('group name')
>         @auth.requires_permission('read','table name',record_id)
>     to decorate functions that need access control
>     """
>     return dict(form=auth())
>
> and the following in db.py
>
> from gluon.tools import *
> auth=Auth(globals(),db)                      # authentication/
> authorization
> auth.settings.hmac_key='sha512:e6b683e7-2b1e-47e0-a20f-d4021db4f12c'
> auth.define_tables()                         # creates all needed
> tables
> crud=Crud(globals(),db)                      # for CRUD helpers using
> auth
> service=Service(globals())                   # for json, xml, jsonrpc,
> xmlrpc, amfrpc
>
> One thing I've done different is check the application into SVN and
> checked it out directly into the applications directory.  Is this
> valid?
>
> Thanks,
> Cliff
>
> Traceback (most recent call last):
>   File "/build/filterappliance/web2py/gluon/restricted.py", line 173,
> in restricted
>     exec ccode in environment
>   File "/build/filterappliance/web2py/applications/filterappliance/
> compiled/controllers_default_user.py", line 129, in <module>
>   File "/build/filterappliance/web2py/gluon/globals.py", line 96, in
> <lambda>
>     self._caller = lambda f: f()
>   File "/build/filterappliance/web2py/applications/filterappliance/
> compiled/controllers_default_user.py", line 108, in user
>   File "/build/filterappliance/web2py/gluon/tools.py", line 698, in
> __call__
>     return self.register()
>   File "/build/filterappliance/web2py/gluon/tools.py", line 1161, in
> register
>     onvalidation=onvalidation):
>   File "/build/filterappliance/web2py/gluon/sqlhtml.py", line 770, in
> accepts
>     onvalidation,
>   File "/build/filterappliance/web2py/gluon/html.py", line 1267, in
> accepts
>     status = self._traverse(status)
>   File "/build/filterappliance/web2py/gluon/html.py", line 449, in
> _traverse
>     newstatus = c._traverse(status) and newstatus
>   File "/build/filterappliance/web2py/gluon/html.py", line 449, in
> _traverse
>     newstatus = c._traverse(status) and newstatus
>   File "/build/filterappliance/web2py/gluon/html.py", line 449, in
> _traverse
>     newstatus = c._traverse(status) and newstatus
>   File "/build/filterappliance/web2py/gluon/html.py", line 449, in
> _traverse
>     newstatus = c._traverse(status) and newstatus
>   File "/build/filterappliance/web2py/gluon/html.py", line 456, in
> _traverse
>     newstatus = self._validate()
>   File "/build/filterappliance/web2py/gluon/html.py", line 1074, in
> _validate
>     (value, errors) = validator(value)
>   File "/build/filterappliance/web2py/gluon/validators.py", line 420,
> in __call__
>     rows = self.dbset(field == value).select(limitby=(0, 1))
>   File "/build/filterappliance/web2py/gluon/sql.py", line 3006, in
> select
>     rows = response(query)
>   File "/build/filterappliance/web2py/gluon/sql.py", line 3001, in
> response
>     db._execute(query)
>   File "/build/filterappliance/web2py/gluon/sql.py", line 890, in
> <lambda>
>     self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
> OperationalError: no such table: auth_user
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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