def test_function_namespaces_return_secured_proxies(self):
     # See https://bugs.launchpad.net/zope3/+bug/98323
     from zope.component import provideAdapter
     from zope.traversing.interfaces import IPathAdapter
     from zope.pagetemplate.engine import _Engine
     from zope.proxy import isProxy
     provideAdapter(DummyNamespace, (None,), IPathAdapter, name='test')
     engine = _Engine()
     namespace = engine.getFunctionNamespace('test')
     self.failUnless(isProxy(namespace))
 def test_function_namespaces_return_secured_proxies(self):
     # See https://bugs.launchpad.net/zope3/+bug/98323
     from zope.component import provideAdapter
     from zope.traversing.interfaces import IPathAdapter
     from zope.pagetemplate.engine import _Engine
     from zope.proxy import isProxy
     provideAdapter(DummyNamespace, (None, ), IPathAdapter, name='test')
     engine = _Engine()
     namespace = engine.getFunctionNamespace('test')
     self.failUnless(isProxy(namespace))
Example #3
0
def clear():
    Engine.__init__()
    _Engine(Engine)
    TrustedEngine.__init__()
    _TrustedEngine(TrustedEngine)
Example #4
0
def clear():
    Engine.__init__()
    _Engine(Engine)
    TrustedEngine.__init__()
    _TrustedEngine(TrustedEngine)