[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/xmlrpc - metaconfigure.py:1.1.2.3
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:42 -0500
Update of /cvs-repository/Zope3/src/zope/app/publisher/xmlrpc
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/publisher/xmlrpc
Modified Files:
Tag: NameGeddon-branch
metaconfigure.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py:1.1.2.2 Tue Dec 24 07:51:13 2002
+++ Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py Tue Dec 24 21:20:42 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""XMLRPC configuration code
@@ -48,7 +48,7 @@
if for_ is not None:
for_ = _context.resolve(for_)
self.for_ = for_
-
+
if ((allowed_methods or allowed_interface)
and ((name is None) or not permission)):
raise ConfigurationError(
@@ -71,7 +71,7 @@
permission = permission or self.permission
# make a copy of the factory sequence, sinc ewe might modify it
# specifically for this method.
- factory = self.factory[:]
+ factory = self.factory[:]
# if a specific permission was specified for this method we have to
# apply a new proxy.
@@ -105,7 +105,7 @@
def _proxyFactory(self, factory, checker):
- factory = factory[:]
+ factory = factory[:]
def proxyView(context, request,
factory=factory[-1], checker=checker):
@@ -135,7 +135,7 @@
if permission:
if permission == 'zope.Public':
permission = CheckerPublic
-
+
if ((not allowed_methods) and (allowed_interface is None)
and (not self.methods)):
allowed_methods = self.default_allowed_methods
@@ -177,5 +177,4 @@
self.for_.__module__+'.'+self.for_.__name__, self.for_)
)
)
- return actions
-
+ return actions