0.3 template base and subdirectories

Bug #224354 reported by Doc Yes
2
Affects Status Importance Assigned to Milestone
web.py
Fix Released
Undecided
Anand Chitipothu

Bug Description

overview:
template chokes with base on nested directories.

directory tree:
templates/
               layout/
                         main.html
               mymodule/
                          helloworld.html

python:
def GET(self):
  renderObj = web.template.render('templates', base='layout/main')
  return renderObj.mymodule.helloworld()

issue:
'function' object has no attribute helloworld

resolution:
remove base key works fine.

Original email thread:
http://groups.google.com/group/webpy/browse_thread/thread/b808156f003533ba

Changed in webpy:
assignee: nobody → anandology
milestone: none → 0.3
status: New → Fix Committed
Changed in webpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.