]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Change how widgets are included
authorEvan Broder <broder@mit.edu>
Tue, 15 Jul 2008 16:08:49 +0000 (16:08 +0000)
committerEvan Broder <broder@mit.edu>
Tue, 15 Jul 2008 16:08:49 +0000 (16:08 +0000)
The <%namespace> tag changes the semantics of function cals

bluechips/templates/spend/index.mako

index 390199d80c5d37e997524cd6464557192002cc4f..297172f6a5c6ea0dec49ee9fc503d4b4ffc5b3fa 100644 (file)
@@ -1,7 +1,8 @@
 <%inherit file="/base.mako"/>
 
 <%def name="title()">${parent.title()} :: Add a New Expenditure</%def>
-
-<%namespace name="forms" module="bluechips.widgets.spend" />
+<%!
+import bluechips.widgets.spend as forms
+%>
 
 ${forms.new_spend_form(action=h.url_for(action='new'))}