Thanks Anthony and Massimo for *Revision:* *5a3f2701b077 *in the trunk a few hours ago.
That fixed the problem for me. Both admin and the app works as expected. Regards Johann On 22 October 2013 08:26, Johann Spies <johann.sp...@gmail.com> wrote: > On 21 October 2013 21:28, Massimo Di Pierro <massimo.dipie...@gmail.com>wrote: > >> I do not understand. You have >> >> r'^\db\.py$', >> >> shouldn't this be? >> >> r'^db\.py$', >> >> >> > Yes it should be. Thanks. > > But that does not make any difference to the result: > > python web2py.py -M -S nkb/akb > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2013 > Version 2.7.4-stable+timestamp.2013.10.16.09.10.20 > Database drivers available: SQLite(sqlite2), SQLite(sqlite3), > MySQL(pymysql), PostgreSQL(psycopg2), PostgreSQL(pg8000), MSSQL(pyodbc), > DB2(pyodbc), Teradata(pyodbc), Ingres(pyodbc), IMAP(imaplib) > > Traceback (most recent call last): > File "/home/js/web2py/gluon/restricted.py", line 217, in restricted > exec ccode in environment > File "applications/nkb/models/akb/akb.py", line 22, in <module> > > db.executesql("set search_path to akb, public;") > NameError: name 'db' is not defined > > js@artikel ~/web2py> tail applications/nkb/models/0.py > response.models_to_run = [ > r'^0\.py$', > r'^db\.py$', > r'^dbcommon\.py$', > r'^%s/\w+\.py$' % request.controller, > r'^%s/%s/\w+\.py$' % (request.controller, request.function) > > > Regards > Johann > -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.