[Zope3-checkins] CVS: Zope3/src/zope/app/presentation -
presentation.py:1.9
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Mar 13 23:04:01 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/presentation
In directory cvs.zope.org:/tmp/cvs-serv28004/src/zope/app/presentation
Modified Files:
presentation.py
Log Message:
Remove backward-compatibility fixups. They were all way older than 2 months
and backward.zcml was not included anyways. It is not included though.
=== Zope3/src/zope/app/presentation/presentation.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/presentation/presentation.py:1.8 Sat Mar 13 17:02:05 2004
+++ Zope3/src/zope/app/presentation/presentation.py Sat Mar 13 23:03:31 2004
@@ -546,26 +546,3 @@
if not template_usage:
kw["template_usage"] = template_usage
return self.template.render(self.view, *args, **kw)
-
-#BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
-
-from zope.app.event.function import Subscriber
-import persistent
-import sys
-from zope.interface.adapter import ReadProperty
-
-ViewRegistration.required = ReadProperty(lambda self: self.forInterface)
-ViewRegistration.factoryName = ReadProperty(lambda self: self.class_)
-ViewRegistration.name = ReadProperty(lambda self: self.viewName)
-
-class ViewService(persistent.Persistent):
- pass
-
-def fixup(event):
- # We delay this evil hackery until database open to prevent someone
- # successfully importing IBrowserPresentation through a normal import
- sys.modules['zope.app.services.view'] = sys.modules[__name__]
- IBrowserRequest = zope.publisher.interfaces.browser.IBrowserRequest
- zope.publisher.interfaces.browser.IBrowserPresentation = IBrowserRequest
-
-fixup = Subscriber(fixup)
More information about the Zope3-Checkins
mailing list