Show More
@@ -28,7 +28,6 b' import tg' | |||||
28 | from alembic.migration import MigrationContext |
|
28 | from alembic.migration import MigrationContext | |
29 | from alembic.script.base import ScriptDirectory |
|
29 | from alembic.script.base import ScriptDirectory | |
30 | from sqlalchemy import create_engine |
|
30 | from sqlalchemy import create_engine | |
31 | from tg import hooks |
|
|||
32 | from tg.configuration import AppConfig |
|
31 | from tg.configuration import AppConfig | |
33 | from tg.support.converters import asbool |
|
32 | from tg.support.converters import asbool | |
34 |
|
33 | |||
@@ -187,7 +186,7 b' def setup_configuration(app):' | |||||
187 | kallithea.model.meta.Session.remove() |
|
186 | kallithea.model.meta.Session.remove() | |
188 |
|
187 | |||
189 |
|
188 | |||
190 | hooks.register('configure_new_app', setup_configuration) |
|
189 | tg.hooks.register('configure_new_app', setup_configuration) | |
191 |
|
190 | |||
192 |
|
191 | |||
193 | def setup_application(app): |
|
192 | def setup_application(app): | |
@@ -211,4 +210,4 b' def setup_application(app):' | |||||
211 | return app |
|
210 | return app | |
212 |
|
211 | |||
213 |
|
212 | |||
214 | hooks.register('before_config', setup_application) |
|
213 | tg.hooks.register('before_config', setup_application) |
General Comments 0
You need to be logged in to leave comments.
Login now