예제 #1
0
def run(LIVE=False):

    # Do not run as live unless this module is main
    if __name__ != "__main__":
        LIVE = False

    # Run the web server
    serverApp = Server()
    serverApp.start()

    # Run MetroEscalators twitter App
    escalatorApp = EscalatorApp(LIVE=LIVE)
    escalatorApp.start()

    # Run MetroElevators twitter App
    elevatorApp = ElevatorApp(LIVE=LIVE)
    elevatorApp.start()

    # Run HotCar twitter app
    hotCarApplication = HotCarApp(LIVE=LIVE)
    hotCarApplication.start()

    # Run the web page generator
    webPageGenerator = WebPageGenerator()
    webPageGenerator.start()

    # Run forever
    while True:
        gevent.sleep(10)
예제 #2
0
def run(LIVE=False):

   # Do not run as live unless this module is main
   if __name__ != "__main__":
       LIVE=False

   # Run the web server
   serverApp = Server()
   serverApp.start()

   # Run MetroEscalators twitter App
   escalatorApp = EscalatorApp(LIVE=LIVE)
   escalatorApp.start()

   # Run MetroElevators twitter App
   elevatorApp = ElevatorApp(LIVE=LIVE)
   elevatorApp.start()

   # Run HotCar twitter app
   hotCarApplication = HotCarApp(LIVE=LIVE)
   hotCarApplication.start()

   # Run the web page generator
   webPageGenerator = WebPageGenerator()
   webPageGenerator.start()

   # Run forever
   while True:
       gevent.sleep(10)
예제 #3
0
def run():

   # Run MetroEscalators/MetroElevators twitter App
   elesApp = ELESAppRunner(LIVE = ELES_TWEET_LIVE)
   elesApp.start()

   # Run HotCar twitter app
   hotCarApplication = HotCarApp(LIVE = HOT_CAR_TWEET_LIVE)
   hotCarApplication.start()

   gevent.wait()
예제 #4
0
def run():

    # Run MetroEscalators/MetroElevators twitter App
    elesApp = ELESAppRunner(LIVE=ELES_TWEET_LIVE)
    elesApp.start()

    # Run HotCar twitter app
    hotCarApplication = HotCarApp(LIVE=HOT_CAR_TWEET_LIVE)
    hotCarApplication.start()

    gevent.wait()