[z3-checkins] r11422 - z3/Five/trunk
jw at codespeak.net
jw at codespeak.net
Mon Apr 25 15:51:14 CEST 2005
Author: jw
Date: Mon Apr 25 15:51:14 2005
New Revision: 11422
Modified:
z3/Five/trunk/resource.py
Log:
Fix for the situation where publishing a template resource would fail.
Publising a template resource returns the rendered template now. Since
PageTemplateResource now does not override the __call__ method anymore, its
behaviour is like for other resources.
Modified: z3/Five/trunk/resource.py
==============================================================================
--- z3/Five/trunk/resource.py (original)
+++ z3/Five/trunk/resource.py Mon Apr 25 15:51:14 2005
@@ -55,9 +55,10 @@
#implements(IBrowserPublisher)
def __browser_default__(self, request):
- return self, ()
+ return self, ('render', )
- def __call__(self):
+ def render(self):
+ """Rendered content"""
pt = self.context
return pt(self.request)
More information about the z3-checkins
mailing list