[Zope-Checkins] CVS: Zope/lib/python/Zope - ClassFactory.py:1.3 __init__.py:1.29

Andreas Jung andreas@digicool.com
Thu, 7 Feb 2002 13:16:02 -0500


Update of /cvs-repository/Zope/lib/python/Zope
In directory cvs.zope.org:/tmp/cvs-serv27720

Modified Files:
	ClassFactory.py __init__.py 
Log Message:
replaced string module calls by string methods


=== Zope/lib/python/Zope/ClassFactory.py 1.2 => 1.3 ===
 """Zope Framework Class Finder
 """
-from string import strip
 import OFS.Uninstalled
 
 def ClassFactory(jar, module, name,


=== Zope/lib/python/Zope/__init__.py 1.28 => 1.29 ===
 sys.modules['Main']=sys.modules['Zope']
 
-import ZODB.POSException, ZPublisher, string, ZPublisher
+import ZODB.POSException, ZPublisher,  ZPublisher
 import ExtensionClass
 from zLOG import LOG, WARNING, INFO, BLATHER, log_time
 conflict_errors = 0
@@ -179,13 +179,13 @@
 
     def recordMetaData(self, object, request,
                        # Optimize global var lookups:
-                       hasattr=hasattr, join=string.join, getattr=getattr,
+                       hasattr=hasattr, getattr=getattr,
                        get_transaction=get_transaction,
                        LOG=LOG, WARNING=WARNING,
                        ):
         request_get = request.get
         if hasattr(object, 'getPhysicalPath'):
-            path = join(object.getPhysicalPath(), '/')
+            path = '/'.join(object.getPhysicalPath())
         else:
             # Try hard to get the physical path of the object,
             # but there are many circumstances where that's not possible.
@@ -206,7 +206,7 @@
                 object = getattr(object, 'aq_parent', None)
 
             if object is not None:
-                path = join(object.getPhysicalPath() + to_append, '/')
+                path = '/'.join(object.getPhysicalPath() + to_append)
             else:
                 # As Jim would say, "Waaaaaaaa!"
                 # This may cause problems with virtual hosts
@@ -228,7 +228,7 @@
                     % str(type(auth_user)))
                 auth_path = request_get('AUTHENTICATION_PATH')
             else:
-                auth_path = join(auth_folder.getPhysicalPath()[1:-1], '/')
+                auth_path = '/'.join(auth_folder.getPhysicalPath()[1:-1])
                 
             T.setUser(auth_user, auth_path)