Ejemplo n.º 1
0
    def __init__(self, LIVE=False):

        dbGlobals.connect()

        RestartingGreenlet.__init__(self, LIVE=LIVE)
        self.SLEEP = 40 # Run every 10 seconds
        self.LIVE = LIVE
Ejemplo n.º 2
0
    def __init__(self, LIVE=False):

        dbGlobals.connect()

        RestartingGreenlet.__init__(self, LIVE=LIVE)
        self.SLEEP = 40  # Run every 10 seconds
        self.LIVE = LIVE
Ejemplo n.º 3
0
 def __init__(self, LIVE=False):
     RestartingGreenlet.__init__(self, LIVE=LIVE)
     self.SLEEP = 40  # Run every 10 seconds
     self.LIVE = LIVE
     self.dbg = dbGlobals.DBGlobals()
     self.db = self.dbg.getDB()
Ejemplo n.º 4
0
 def __init__(self, SLEEP=SLEEP, LIVE=False):
     RestartingGreenlet.__init__(self, SLEEP=SLEEP, LIVE=LIVE)
     self.LIVE = LIVE  # Tweet only if Live
     self.SLEEP = SLEEP  # Sleep time after each tick
     self.logFileName = os.path.join(DATA_DIR, 'runEscalatorApp.log')
Ejemplo n.º 5
0
 def __init__(self):
     RestartingGreenlet.__init__(self)
Ejemplo n.º 6
0
 def __init__(self, SLEEP=SLEEP, LIVE=False):
     RestartingGreenlet.__init__(self, SLEEP=SLEEP, LIVE=LIVE)
     self.LIVE = LIVE  # Tweet only if Live
     self.SLEEP = SLEEP  # Sleep time after each tick
     self.app = ELESApp(LIVE, MetroEscalatorKeys, MetroElevatorKeys)
Ejemplo n.º 7
0
 def __init__(self):
     RestartingGreenlet.__init__(self)
Ejemplo n.º 8
0
 def __init__(self, SLEEP=SLEEP, LIVE=False):
     RestartingGreenlet.__init__(self, SLEEP=SLEEP, LIVE=LIVE)
     self.LIVE = LIVE # Tweet only if Live
     self.SLEEP = SLEEP # Sleep time after each tick
     self.logFileName = os.path.join(DATA_DIR, 'runElevatorApp.log')
Ejemplo n.º 9
0
 def __init__(self, SLEEP=SLEEP, LIVE=False):
     RestartingGreenlet.__init__(self, SLEEP=SLEEP, LIVE=LIVE)
     self.LIVE = LIVE # Tweet only if Live
     self.SLEEP = SLEEP # Sleep time after each tick
     self.app = ELESApp(LIVE, MetroEscalatorKeys, MetroElevatorKeys)
Ejemplo n.º 10
0
 def __init__(self, LIVE=False):
     RestartingGreenlet.__init__(self, LIVE=LIVE)
     self.SLEEP = 40 # Run every 10 seconds
     self.LIVE = LIVE
     self.dbg = dbGlobals.DBGlobals()
     self.db = self.dbg.getDB()