[Zope-Checkins] SVN: Products.Five/branches/1.4/pythonproducts.py
Fixed up the placement of global statements for _zope_app.
Rocky Burt
rocky at serverzen.com
Sun Mar 26 15:30:30 EST 2006
Log message for revision 66189:
Fixed up the placement of global statements for _zope_app.
Changed:
U Products.Five/branches/1.4/pythonproducts.py
-=-
Modified: Products.Five/branches/1.4/pythonproducts.py
===================================================================
--- Products.Five/branches/1.4/pythonproducts.py 2006-03-26 20:25:40 UTC (rev 66188)
+++ Products.Five/branches/1.4/pythonproducts.py 2006-03-26 20:30:29 UTC (rev 66189)
@@ -33,12 +33,12 @@
from OFS.Application import Application
+ global _zope_app
if isinstance(appOrContext, Application):
_zope_app = appOrContext
else:
_zope_app = appOrContext._ProductContext__app
- global _zope_app
applyPatches(_zope_app)
@@ -87,8 +87,8 @@
"""
from App.FactoryDispatcher import FactoryDispatcher, ProductDispatcher
+ global _original__bobo_traverse__
_original__bobo_traverse__ = ProductDispatcher.__bobo_traverse__
- global _original__bobo_traverse__
def __bobo_traverse__(self, REQUEST, name):
product=self.aq_acquire('_getProducts')()._product(name)
@@ -115,8 +115,8 @@
from App import Extensions, FactoryDispatcher
from Products.ExternalMethod import ExternalMethod
+ global _originalGetPath
_originalGetPath = Extensions.getPath
- global _originalGetPath
def getPath(prefix, name, checkProduct=1, suffixes=('',)):
"""Make sure to check paths of all registered product packages.
More information about the Zope-Checkins
mailing list