view backend/sqlalchemy/util.py @ 154:2682db280be0

reorder methods
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 27 Aug 2011 07:32:01 +0200
parents 04a730f9d07d
children bb3c851b18b1
line wrap: on
line source


import sys

def databaseLoggingEnabled():
    loggingEnabled = False
    for arg in sys.argv:
        if arg == "--databaseLogging":
            loggingEnabled = True
    return loggingEnabled