def __init__(self):
     Thread.__init__(self)
     mongodb_connection = ConnectionToDatabase()
     manageGPSLocation.collection = mongodb_connection.getCollection("steeds")
     self.pubnub_settings = Pubnub(publish_key=manageGPSLocation.pubnub_publish_key,subscribe_key=manageGPSLocation.pubnub_subscribe_key)
     # Rename to location channel
     self.pubnub_channel = "channel_test"
     self.genericDAO = GenericDAO()
 def __init__(self):
     Thread.__init__(self)
     mongodb_connection = ConnectionToDatabase()
     manageClients.deliveries_collection = mongodb_connection.getCollection("temp_deliveries")
     self.pubnub_settings = Pubnub(publish_key=manageClients.pubnub_publish_key,subscribe_key=manageClients.pubnub_subscribe_key)
     # Rename to location channel
     self.pubnub_channel = "clients_channel"
     self.genericDAO = GenericDAO()
     self.manageSteeds = manageSteeds()
Exemple #3
0
 def __init__(self):
     Thread.__init__(self)
     mongodb_connection = ConnectionToDatabase()
     manageGPSLocation.collection = mongodb_connection.getCollection(
         "steeds")
     self.pubnub_settings = Pubnub(
         publish_key=manageGPSLocation.pubnub_publish_key,
         subscribe_key=manageGPSLocation.pubnub_subscribe_key)
     # Rename to location channel
     self.pubnub_channel = "channel_test"
     self.genericDAO = GenericDAO()
 def __init__(self):
     Thread.__init__(self)
     mongodb_connection = ConnectionToDatabase()
     manageClients.deliveries_collection = mongodb_connection.getCollection(
         "temp_deliveries")
     self.pubnub_settings = Pubnub(
         publish_key=manageClients.pubnub_publish_key,
         subscribe_key=manageClients.pubnub_subscribe_key)
     # Rename to location channel
     self.pubnub_channel = "clients_channel"
     self.genericDAO = GenericDAO()
     self.manageSteeds = manageSteeds()
    def __init__(self):
        Thread.__init__(self)
        mongodb_connection = ConnectionToDatabase()

        self.steeds_collection = mongodb_connection.getCollection("available_steeds")
        self.deliveries_collection = mongodb_connection.getCollection("temp_deliveries")
        self.deliveries_steeds_collection = mongodb_connection.getCollection("temp_deliveries_steeds")

        self.pubnub_settings = Pubnub(publish_key=manageSteeds.pubnub_publish_key,subscribe_key=manageSteeds.pubnub_subscribe_key)
        # Rename to location channel
        self.pubnub_channel = "steeds_channel"

        self.genericDAO = GenericDAO()

        self.scheduler = sched.scheduler() # Instansiate a scheduler
    def __init__(self):
        Thread.__init__(self)
        mongodb_connection = ConnectionToDatabase()

        self.steeds_collection = mongodb_connection.getCollection(
            "available_steeds")
        self.deliveries_collection = mongodb_connection.getCollection(
            "temp_deliveries")
        self.deliveries_steeds_collection = mongodb_connection.getCollection(
            "temp_deliveries_steeds")

        self.pubnub_settings = Pubnub(
            publish_key=manageSteeds.pubnub_publish_key,
            subscribe_key=manageSteeds.pubnub_subscribe_key)
        # Rename to location channel
        self.pubnub_channel = "steeds_channel"

        self.genericDAO = GenericDAO()

        self.scheduler = sched.scheduler()  # Instansiate a scheduler