[Checkins]
SVN: zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py
forgot to use the layer argument in the else-case.
Christian Zagrodnick
cz at gocept.com
Fri Aug 10 05:13:41 EDT 2007
Log message for revision 78742:
forgot to use the layer argument in the else-case.
Changed:
U zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py
-=-
Modified: zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py
===================================================================
--- zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py 2007-08-10 05:42:07 UTC (rev 78741)
+++ zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py 2007-08-10 09:13:41 UTC (rev 78742)
@@ -77,7 +77,8 @@
# of the original class
def proxyView(context, request, class_=class_):
view = class_(context, request)
- view.__Security_checker__ = getCheckerForInstancesOf(original_class)
+ view.__Security_checker__ = getCheckerForInstancesOf(
+ original_class)
return view
class_ = proxyView
class_.factory = original_class
@@ -104,10 +105,10 @@
'__call__': getattr(class_, name)}
new_class = type(class_.__name__, (class_,), cdict)
_context.action(
- discriminator = ('view', for_, name, IXMLRPCRequest),
+ discriminator = ('view', for_, name, layer),
callable = handler,
args = ('registerAdapter',
- new_class, (for_, IXMLRPCRequest), Interface, name,
+ new_class, (for_, layer), Interface, name,
_context.info)
)
More information about the Checkins
mailing list