Beispiel #1
0
 def __init__(self, username, password):
     """
     创建管理员对象
     :param username:
     :param password:
     :return:
     """
     self.nid = identifier.AdminNid(Admin.db_path)
     self.username = username
     self.password = password
     self.create_time = time.strftime('%Y-%m-%d')
Beispiel #2
0
 def __init__(self, username, password):
     """
     管理员创建对象
     :param username:用户名
     :param password:密码
     :return
     """
     # nid是唯一id,随机字符串
     self.nid = identifier.AdminNid(Admin.db_path)
     self.username = username
     self.password = password
     self.create_time = time.strftime('%Y-%m-%d')
Beispiel #3
0
 def __init__(self, username, password):
     """
     创建管理员对象
     :param username:
     :param password:
     :return:
     """
     # nid唯一ID,随机字符串
     #
     self.nid = identifier.AdminNid(Admin.db_path)  # 实例化对象时,返回__str()__函数
     self.username = username
     self.password = password
     self.create_time = time.strftime('%Y-%m-%d')
Beispiel #4
0
 def __init__(self, username, password):
     self.nid = identifier.AdminNid()
     self.username = username
     self.password = password
     self.create_time = time.strftime('%Y-%m-%d')