Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     for key, value in kwargs.items():
         if key in self.schema["fields"]:
             setattr(self, key, value)
     if not hasattr(self, "deleted"):
         self.deleted = False #todo: throw WTF at lorenzo
     encrypted_data = encrypt_notification(self)
     super(Mail, self).__init__(data = encrypted_data)
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     for key, value in kwargs.items():
         if key in self.schema["fields"]:
             setattr(self, key, value)
     encrypted_data = encrypt_notification(self)
     super(Graph, self).__init__(data = encrypted_data)