Exemple #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'
Exemple #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'
Exemple #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)
Exemple #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)
Exemple #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
Exemple #6
0
 def to_exclude(cls):
     return list(HistoryMixin.to_exclude()) + ['status']
Exemple #7
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
Exemple #8
0
 def to_exclude(cls):
     return list(HistoryMixin.to_exclude()) + ['status']
Exemple #9
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)
Exemple #10
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)
Exemple #11
0
 def __init__(self):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
Exemple #12
0
 def __init__(self, licence_plate=None):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     if licence_plate:
         self.vehicle = licence_plate
Exemple #13
0
 def __init__(self, licence_plate=None):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)
     if licence_plate:
         self.vehicle = licence_plate
Exemple #14
0
 def __init__(self):
     db.Model.__init__(self)
     HistoryMixin.__init__(self)