def __init__(self, queue): Database.__init__(self) self.queue = queue self.dispatcher = None self.name = config.client.name self.id_stop = ObjectID(u"id_stop", None) self.id_start = ObjectID(u"id_start", None) self.id_current = ObjectID(u"id_current", None) self.id_nextstart = ObjectID(u"id_nextstart", None) self.id_nextstop = ObjectID(u"id_nextstop", None) self.get_ids() self.requested = False
def __init__(self): Database.__init__(self, config.server.database) print "Connected to database at", config.server.database