Пример #1
0
 def __init__(self,
              username,
              password=None,
              group_uid=None,
              email=None,
              first_area_id=None,
              first_area_level=None,
              second_area_id=None,
              second_area_level=None):
     self.username = username
     self.password = encrypt(password)
     self.group_uid = group_uid
     self.email = email
     self.first_area_id = first_area_id
     self.first_area_level = first_area_level
     self.second_area_id = second_area_id
     self.second_area_level = second_area_level
Пример #2
0
 def __init__(
     self,
     username,
     password=None,
     group_uid=None,
     email=None,
     first_area_id=None,
     first_area_level=None,
     second_area_id=None,
     second_area_level=None
 ):
     self.username   = username
     self.password   = encrypt(password)
     self.group_uid  = group_uid
     self.email = email
     self.first_area_id=first_area_id
     self.first_area_level=first_area_level
     self.second_area_id=second_area_id
     self.second_area_level=second_area_level
Пример #3
0
 def set_password(self, new_password):
     self.password = encrypt(new_password)
Пример #4
0
 def set_password(self, new_password):
     self.password = encrypt(new_password)