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
This commit is contained in:
Jan Dittberner 2008-10-05 22:32:59 +00:00
parent 1228fcef3c
commit b53e8c48df
20 changed files with 67 additions and 25 deletions

View file

@ -1,9 +0,0 @@
<%inherit file="base.mako" />
<h1>Hallo</h1>
<ul id="customers">
% for customer in c.customers:
<li>${customer.firstname}&nbsp;${customer.lastname} [${h.link_to('edit', h.url_for(id=customer.id, action="edit"))}]</li>
% endfor
</ul>

View file

@ -0,0 +1,9 @@
<%inherit file="/base.mako" />
<h1>Hallo</h1>
<ul id="customers">
% for customer in c.customers:
<li>${h.escape_once(customer)} [${h.link_to('edit', h.url_for(id=customer.id, action="edit"))}]</li>
% endfor
</ul>