I have one application (called base) in which I define all the tables
for three other applications. In the three applications I use the same
db.py file. In these db.py files I set migrate=False on all tables.

One of these applications is a CMS, in which I enabled Authorization
and Authentication. This creates the .table files for auth_event, auth-
group, auth_membership, auth_permission and auth_user in the databases
folder of the cms application, all the .table files for the other
tables are in the databases folder of the base application.

When I expose a function of the cms application I get the following
error ticket:


Error traceback

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/web2py/gluon/restricted.py",
line 173, in restricted
    exec ccode in environment
  File "/Library/Python/2.5/site-packages/web2py/applications/cms/
models/db.py", line 650, in <module>
    Field('registration_key', length=128, writable=False,
readable=False, default=''))
  File "/Library/Python/2.5/site-packages/web2py/gluon/sql.py", line
1249, in define_table
    t._create(migrate=migrate, fake_migrate=fake_migrate)
  File "/Library/Python/2.5/site-packages/web2py/gluon/sql.py", line
1666, in _create
    self._db._execute(query)
  File "/Library/Python/2.5/site-packages/web2py/gluon/sql.py", line
952, in <lambda>
    self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
ProgrammingError: relation "auth_user" already exists


Is this because the .table files related to authorization and
authentication are in a different application than the other .table
files? Is there a way to solve this problem?


Kind regards,

Annet.
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to