pyztk/zk/user.py

16 lines
429 B
Python
Raw Normal View History

2016-05-25 16:28:55 +07:00
# -*- coding: utf-8 -*-
class User(object):
def __init__(self, uid, name, privilege, password='', group_id='', user_id=''):
self.uid = uid
self.name = name
self.privilege = privilege
self.password = password
self.group_id = group_id
self.user_id = user_id
2016-06-12 16:35:02 +07:00
def __repr__(self):
2016-05-25 16:28:55 +07:00
return self.name
2016-06-12 16:35:02 +07:00
def __repr__(self):
return '<User>: {}'.format(self.name)