Add extra docs in sqlalchemy module

Change-Id: Ieb9181a2e997e5e3ea02fd91d2b85aa54a4b83be
This commit is contained in:
Boris Pavlovic 2014-06-24 20:06:14 +04:00
parent b6c2275d1d
commit d6217ffa83

View File

@ -41,11 +41,18 @@ _DISABLED = False
def disable(): def disable():
"""add_tracing does not add event listeners for sqlalchemy.
This is quite important in case of sql migrations. Because it's not allowed
to add these events.
"""
global _DISABLED global _DISABLED
_DISABLED = True _DISABLED = True
def enable(): def enable():
"""add_tracing adds event listeners for sqlalchemy."""
global _DISABLED global _DISABLED
_DISABLED = False _DISABLED = False