##// END OF EJS Templates
db: ported init_model to pyramid.
marcink -
r2342:8478dd31 default
parent child Browse files
Show More
@@ -62,8 +62,9 b' def init_model(engine, encryption_key=No'
62 db.ENCRYPTION_KEY = encryption_key
62 db.ENCRYPTION_KEY = encryption_key
63
63
64
64
65 def init_model_encryption(migration_models):
65 def init_model_encryption(migration_models, config=None):
66 from pylons import config
66 from pyramid.threadlocal import get_current_registry
67 config = config or get_current_registry().settings
67 migration_models.ENCRYPTION_KEY = get_encryption_key(config)
68 migration_models.ENCRYPTION_KEY = get_encryption_key(config)
68 db.ENCRYPTION_KEY = get_encryption_key(config)
69 db.ENCRYPTION_KEY = get_encryption_key(config)
69
70
General Comments 0
You need to be logged in to leave comments. Login now