summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-14 11:02:42 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-14 11:02:42 +0200
commitc0ce27c63a487be826426b578a217b57d49efef8 (patch)
treeb6eac8b6523a0861ea1386355a7aebb9103701a2 /pykolab
parent52dc31ae701544199449a18389eaf42c053ab06b (diff)
downloadpykolab-c0ce27c63a487be826426b578a217b57d49efef8.tar.gz
metadata itself is a nothing, use DeclarativeBase.metadata
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/ldap/auth_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py
index cd46a4c..2449cae 100644
--- a/pykolab/auth/ldap/auth_cache.py
+++ b/pykolab/auth/ldap/auth_cache.py
@@ -169,7 +169,7 @@ def init_db(reinit=False):
echo = conf.debuglevel > 8
engine = create_engine(db_uri, echo=echo)
- metadata.create_all(engine)
+ DeclarativeBase.metadata.create_all(engine)
Session = sessionmaker(bind=engine)
db = Session()