Show More
@@ -62,8 +62,9 b' def init_model(engine, encryption_key=No' | |||
|
62 | 62 | db.ENCRYPTION_KEY = encryption_key |
|
63 | 63 | |
|
64 | 64 | |
|
65 | def init_model_encryption(migration_models): | |
|
66 | from pylons import config | |
|
65 | def init_model_encryption(migration_models, config=None): | |
|
66 | from pyramid.threadlocal import get_current_registry | |
|
67 | config = config or get_current_registry().settings | |
|
67 | 68 | migration_models.ENCRYPTION_KEY = get_encryption_key(config) |
|
68 | 69 | db.ENCRYPTION_KEY = get_encryption_key(config) |
|
69 | 70 |
General Comments 0
You need to be logged in to leave comments.
Login now