Example #1
0
 def __init__(self, db_name, container=None):
     self.b_debug = False
     self.b_commit = True
     self.db_name = db_name
     self.container = threading_local()
Example #2
0
 def __init__(self, db_filename, db_path=None):
     self.b_debug = False
     self.b_commit = True
     self.db_name = os.path.join(db_path, db_filename)
     self.container = threading_local()
Example #3
0
 def __init__(self):
     super(BaseController, self).__init__()
     self.local = threading_local()
Example #4
0
 def __init__(self, db_name, container=None):
     self.b_debug = False
     self.b_commit = True
     self.db_name = db_name
     self.container = threading_local()