In this thread,
http://groups.google.com/group/pylons-discuss/t/ede16f830f41fa1
I raised the issue with ToscaWidgets and the handling of an undefined
variable of ${asdf} which would return Internal Server Error and
Pylons would generate the error trackback on the console.
While I had assumed it was ToscaWidgets, and a patch was created to
deal with the removal of buffet from Pylons 1.0, the error persisted
for a few other people. The issue also appeared with the @nocache
decorator for another person.
http://groups.google.com/group/pylons-discuss/msg/672ea3c58291ec25
and
http://groups.google.com/group/pylons-discuss/msg/80bbab0036399e80
propose workarounds. The first post actually discovers that the error
is:
We get a None there when the function is a closure, or a returned
function
that dynamically generated, which is the case with most decorators.
I have tested both patches and both result in the mako trackback being
displayed in the browser as it is expected. Both suggested solutions
take different approaches, but, the issue appears to be identified.
http://groups.google.com/group/toscawidgets-discuss/msg/f40676043e4134e0
contains the exact instructions used to reproduce the problem with
ToscaWidgets.
http://groups.google.com/group/toscawidgets-discuss/msg/e35d625097d71c04
includes a sample project with the bare minimum and the modified
pylonshf.py file required for ToscaWidgets to work in 1.0rc1/0.10rc1.
--
You received this message because you are subscribed to the Google Groups "Mako Templates for Python" group.
To post to this group, send email to
mako-d...@googlegroups.com.
To unsubscribe from this group, send email to
mako-discuss...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mako-discuss?hl=en.