pyalchemybiz/pyalchemybiz/model/customer.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

13 lines
302 B
Python

"""Customer related model elements."""
t_customer = None
class Customer(object):
"""Customer model class."""
def __repr__(self):
if self.id is None:
return "<Customer: new %s>" % (self.person)
else:
return "<Customer: %d %s>" % (self.id, self.person)