[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate -
viewpagetemplatefile.py:1.8.18.1
Christian Zagrodnick
cvs-admin at zope.org
Sat Dec 6 13:29:51 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv16289/src/zope/app/pagetemplate
Modified Files:
Tag: gotcha-usage-branch
viewpagetemplatefile.py
Log Message:
finished the support of 'usage' in page templates (or better views)
- repaired editForm
- added to addForm
- added <usage name=.. /> zcml directive
- directives that rely on usage check for existing usages
- asserting that a usage can only be defined once
- tried use of usage in container/add.pt
=== Zope3/src/zope/app/pagetemplate/viewpagetemplatefile.py 1.8 => 1.8.18.1 ===
--- Zope3/src/zope/app/pagetemplate/viewpagetemplatefile.py:1.8 Thu Jul 31 12:48:38 2003
+++ Zope3/src/zope/app/pagetemplate/viewpagetemplatefile.py Sat Dec 6 13:29:20 2003
@@ -46,6 +46,7 @@
def __call__(self, instance, template_usage=u'', *args, **keywords):
# parameter template_usage needed such as the publisher machinery
# can find it and extract it from the request
+
if not template_usage:
template_usage = self.usage or getattr(instance, 'usage', u'')
keywords["template_usage"] = template_usage
More information about the Zope3-Checkins
mailing list