35 lines
595 B
Python
35 lines
595 B
Python
import os
|
|
import sys
|
|
import uuid
|
|
|
|
import transaction
|
|
from pyramid.paster import get_appsettings, setup_logging
|
|
from pyramid.scripts.common import parse_vars
|
|
|
|
from barker.models import (
|
|
Customer,
|
|
DbSetting,
|
|
Permission,
|
|
User,
|
|
get_engine,
|
|
get_session_factory,
|
|
get_tm_session,
|
|
SettleOption,
|
|
Role,
|
|
Section,
|
|
ModifierCategory,
|
|
)
|
|
|
|
|
|
def usage(argv):
|
|
cmd = os.path.basename(argv[0])
|
|
print("usage: %s <config_uri> [var=value]\n" '(example: "%s development.ini")' % (cmd, cmd))
|
|
sys.exit(1)
|
|
|
|
|
|
def main(argv=sys.argv):
|
|
with transaction.manager:
|
|
|
|
|
|
|