1
0
Fork 0
gnuviechadmin-historic/testdb/gnuviechadmin/entities.py

47 lines
1.3 KiB
Python
Raw Normal View History

class Client(object):
def __repr__(self):
return "%s(clientid=%s,firstname=%s,lastname=%s)" % \
(self.__class__.__name__,
self.clientid,
self.firstname,
self.lastname)
class PopAccount(object):
def __repr__(self):
return "%s(%s,%d,%d,%d,%s,%s,%s)" % \
(self.__class__.__name__,
self.id,
self.domainid,
self.uid,
self.gid,
self.home,
self.cryptpass,
self.clearpass)
class SysUser(object):
def __repr__(self):
return "%s(%d,%s,%d,%s,%s,%s,%d,%d,%s,%d)" % \
(self.__class__.__name__,
self.sysuserid,
self.name,
self.type,
self.home,
self.shell,
self.password,
self.clientid,
self.toupdate,
self.md5pass,
self.sysuid)
class Domain(object):
def __repr__(self):
return "%s(%d,%s,%s,%s,%s,%s,%s)" % \
(self.__class__.__name__,
self.id,
self.name,
self.master,
self.last_check,
self.type,
self.notified_serial,
self.account)