1
0
Fork 0
gnuviechadmin-historic/testdb/gnuviechadmin/entities.py
Jan Dittberner dea15a6c4f - repository reorganization
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@242 a67ec6bc-e5d5-0310-a910-815c51eb3124
2008-01-12 22:24:08 +00:00

46 lines
1.3 KiB
Python

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)