Created
January 18, 2016 09:57
-
-
Save gforcada/0fd8c176559ae8773d09 to your computer and use it in GitHub Desktop.
Remove zc.async queue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from App.config import getConfiguration | |
import transaction | |
configuration = getConfiguration() | |
db = configuration.dbtab.getDatabase(name='main') | |
tm = transaction.TransactionManager() | |
conn = db.open(transaction_manager=tm) | |
tm.begin() | |
try: | |
root = conn.root() | |
del root['zc.async'] | |
tm.commit() | |
except Exception: | |
tm.abort() | |
raise | |
finally: | |
conn.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment