Esempio n. 1
0
 def __init__(self, customer_id, *args, **kwargs):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     super(self.__class__, self).__init__(**kwargs)
     self.id = customer_id
     self.moteur_id = current_user.id
     self.added_via = 'api'
Esempio n. 2
0
 def __init__(self, customer_id, *args, **kwargs):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     super(self.__class__, self).__init__(**kwargs)
     self.id = customer_id
     self.operateur_id = current_user.id
     self.nb_sanctions = 0
     self.added_via = 'api'
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     kwargs['id'] = kwargs.get('id', None)
     if not kwargs['id']:
         kwargs['id'] = str(get_short_uuid())
     super(self.__class__, self).__init__(**kwargs)
     HistoryMixin.__init__(self)
     TaxiRedis.__init__(self, self.id)
Esempio n. 4
0
 def __init__(self, *args, **kwargs):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     kwargs['id'] = kwargs.get('id', None)
     if not kwargs['id']:
         kwargs['id'] = str(get_short_uuid())
     super(self.__class__, self).__init__(**kwargs)
     HistoryMixin.__init__(self)
     TaxiRedis.__init__(self, self.id)
Esempio n. 5
0
 def __init__(self, vehicle_id, added_by):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     self.vehicle_id = vehicle_id
     self.added_by = added_by
Esempio n. 6
0
 def __init__(self, vehicle_id, added_by):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     self.vehicle_id = vehicle_id
     self.added_by = added_by
Esempio n. 7
0
 def __init__(self, *args, **kwargs):
     self.id = str(get_short_uuid())
     self.creation_datetime = datetime.now().isoformat()
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     super(self.__class__, self).__init__(**kwargs)
Esempio n. 8
0
 def __init__(self, *args, **kwargs):
     self.id = str(get_short_uuid())
     self.creation_datetime = datetime.now()
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     super(self.__class__, self).__init__(**kwargs)
Esempio n. 9
0
 def __init__(self):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
Esempio n. 10
0
 def __init__(self, licence_plate=None):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     if licence_plate:
         self.vehicle = licence_plate
Esempio n. 11
0
 def __init__(self, licence_plate=None):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     if licence_plate:
         self.vehicle = licence_plate
Esempio n. 12
0
 def __init__(self):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)