[Zope3-checkins] CVS: Zope3/src/zope/app/presentation -
presentation.py:1.12
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Mar 29 10:09:28 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/presentation
In directory cvs.zope.org:/tmp/cvs-serv21396/src/zope/app/presentation
Modified Files:
presentation.py
Log Message:
Ripped out more usage code.
=== Zope3/src/zope/app/presentation/presentation.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/presentation/presentation.py:1.11 Mon Mar 22 19:23:10 2004
+++ Zope3/src/zope/app/presentation/presentation.py Mon Mar 29 10:08:58 2004
@@ -502,10 +502,6 @@
dependents = IDependable(template)
objectpath = zapi.getPath(self)
dependents.addDependent(objectpath)
- # Also update usage, if supported
- adapter = IRegistered(template, None)
- if adapter is not None:
- adapter.addUsage(objectpath)
class PageRegistrationRemoveSubscriber:
@@ -523,10 +519,6 @@
dependents = IDependable(template)
objectpath = zapi.getPath(self)
dependents.removeDependent(objectpath)
- # Also update usage, if supported
- adapter = IRegistered(template, None)
- if adapter is not None:
- adapter.removeUsage(zapi.getPath(self))
class TemplateViewFactory:
@@ -560,7 +552,5 @@
self.template = template
self.view = view
- def __call__(self, template_usage=u'', *args, **kw):
- if not template_usage:
- kw["template_usage"] = template_usage
+ def __call__(self, *args, **kw):
return self.template.render(self.view, *args, **kw)
More information about the Zope3-Checkins
mailing list