The following code seems to have solved my problem (I replaced the class
with a function to which db is passed by the controller):
def docs(db):
T = current.T
auth = current.session.auth
if auth:
auth_user = self.auth.user.id
else:
auth_user = None
request = current.request
akb_signature_uuid = signature(db)
dctabelle = set(['dc_location', 'dc_category',
'doccenter'])
db_tabelle = db.tables()
dbtabelle = set(db.tables())
if dctabelle - dbtabelle:
db.define_table('dc_location',
Field('location'),
akb_signature_uuid)
...
Regards
Johann