pyalchemybiz/pyalchemybiz/model/person.py
Jan Dittberner b53e8c48df model cleanup
* add __repr__() to all current module objects (fixes #10)
 * pep8 fixes in all Python files (addresses #9)
 * create subdirectory for customer templates (addresses #2)


git-svn-id: file:///var/www/wwwusers/usr01/svn/pyalchemybiz/trunk@8 389c73d4-bf09-4d3d-a15e-f94a37d0667a
2008-10-05 22:32:59 +00:00

12 lines
308 B
Python

t_person = None
class Person(object):
def __repr__(self):
if self.id is None:
return "<Person: new %s %s>" % (self.firstname, self.lastname)
else:
return "<Person: %d %s %s>" % (self.id, self.firstname,
self.lastname)