I have this scenario:

One postgreSQL database called "george", owned by one user also called 
"george".

APP1: 
It is the main app that uses the database. 
This app executed the migrations the first time, then it uses lazy tables.


APP2: 
In some ocations, it connects to the "george" database using user "george", 
but it uses the auto_import parameter like this:

DAL('postgres://george:mypassword@localhost/george',
    migrate=False,
    folder=databases_path,
    auto_import=True)

*databases_path* is a variable that points to the folder inside APP1 that 
has the .table files created by web2py.

*Up to here, all works great. *APP2 can connect to george database and do 
selects, inserts, etc.

Now I'm trying to connect with te postgres user, that is, the default user 
of postgres, the root user.
I just replaced the user/password in the code above, but when I try to 
access any table, I receive this error from DAL:

AttributeError: 'DAL' object has no attribute 'contenido'


I think that auto_import is failing somehow because of the different user 
connecting to the database.
Is this the expected behaviour?

I appreciate any comments.
Thanks in advance!

-- 
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/d/optout.

Reply via email to