[Zope-Checkins] CVS: Zope/lib/python/Zope - ClassFactory.py:1.4 __init__.py:1.31
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 18:10:39 -0400
Update of /cvs-repository/Zope/lib/python/Zope
In directory cvs.zope.org:/tmp/cvs-serv21103
Modified Files:
ClassFactory.py __init__.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/Zope/ClassFactory.py 1.3 => 1.4 ===
--- Zope/lib/python/Zope/ClassFactory.py:1.3 Thu Feb 7 13:16:02 2002
+++ Zope/lib/python/Zope/ClassFactory.py Wed Aug 14 18:10:38 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# Copyright (c) 2001 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
-#
+#
##############################################################################
"""Zope Framework Class Finder
"""
=== Zope/lib/python/Zope/__init__.py 1.30 => 1.31 ===
--- Zope/lib/python/Zope/__init__.py:1.30 Mon Jun 10 16:20:44 2002
+++ Zope/lib/python/Zope/__init__.py Wed Aug 14 18:10:38 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# Copyright (c) 2001 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
-#
+#
##############################################################################
"""Initialize the Zope Package and provide a published module
"""
@@ -43,7 +43,7 @@
else:
DB=m.Storage
DB=ZODB.DB(DB)
-
+
Globals.BobobaseName = DB.getName()
sys.modules['Zope.custom_zodb']=m
@@ -97,7 +97,7 @@
return apply(ZPublisher.test,('Zope',)+args, kw)
class RequestContainer(ExtensionClass.Base):
- def __init__(self,r): self.REQUEST=r
+ def __init__(self,r): self.REQUEST=r
def zpublisher_exception_hook(
published, REQUEST, t, v, traceback,
@@ -161,7 +161,7 @@
f(client, REQUEST, t, v, traceback)
-
+
finally: traceback=None
@@ -194,12 +194,12 @@
# Try hard to get the physical path of the object,
# but there are many circumstances where that's not possible.
to_append = ()
-
+
if hasattr(object, 'im_self') and hasattr(object, '__name__'):
# object is a Python method.
to_append = (object.__name__,)
object = object.im_self
-
+
while object is not None and \
not hasattr(object, 'getPhysicalPath'):
if not hasattr(object, '__name__'):
@@ -233,9 +233,9 @@
auth_path = request_get('AUTHENTICATION_PATH')
else:
auth_path = '/'.join(auth_folder.getPhysicalPath()[1:-1])
-
+
T.setUser(auth_user, auth_path)
-
+
zpublisher_transactions_manager = TransactionsManager()