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

-- 
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.

Reply via email to