#15025: Different template rendering semantics since r14992 -----------------------------+---------------------------------------------- Reporter: donspaulding | Owner: nobody Status: new | Milestone: Component: Template system | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- Changeset [14992] fixed Ticket #7153, but I believe it also changed the way callable context variables are resolved in the Django template language in a subtle (and backwards-incompatible) way.
Consider the following view, which raises an unhandled exception while trying to render the debug 500 template: {{{ def view(request): def innocent_callable(): raise Exception("Should not have been called") raise Exception("This exception should trigger a debug 500 page") }}} I've already found two regressions in my own code, but they were simple workarounds. This example appears to be a regression in the django source itself. I'm not sure if this change in behavior was anticipated or intended, but at the very least I think it should be noted in the release notes as a backwards-incompatibility. -- Ticket URL: <http://code.djangoproject.com/ticket/15025> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.