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:
parent
1228fcef3c
commit
b53e8c48df
20 changed files with 67 additions and 25 deletions
|
@ -1,9 +0,0 @@
|
|||
<%inherit file="base.mako" />
|
||||
|
||||
<h1>Hallo</h1>
|
||||
|
||||
<ul id="customers">
|
||||
% for customer in c.customers:
|
||||
<li>${customer.firstname} ${customer.lastname} [${h.link_to('edit', h.url_for(id=customer.id, action="edit"))}]</li>
|
||||
% endfor
|
||||
</ul>
|
9
pyalchemybiz/templates/customer/index.mako
Normal file
9
pyalchemybiz/templates/customer/index.mako
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue