[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - fsregistry.py:1.3

Guido van Rossum guido@python.org
Thu, 15 May 2003 14:45:33 -0400


Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv15938

Modified Files:
	fsregistry.py 
Log Message:
Comment cleanup and repair; whitespace normalization.


=== Zope3/src/zope/app/fssync/fsregistry.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/fssync/fsregistry.py:1.2	Mon May  5 14:01:01 2003
+++ Zope3/src/zope/app/fssync/fsregistry.py	Thu May 15 14:45:33 2003
@@ -13,6 +13,8 @@
 ##############################################################################
 """Filesystem synchronization registry.
 
+This acts as a global (placeless) service.
+
 $Id$
 """
 
@@ -29,15 +31,16 @@
 
     def __init__(self):
         self._class_factory_reg = {}
-        
+
     def __call__(self):
         return self.__init__()
 
     def getSynchronizer(self, object):
         """Return factory method for a given class.
 
-        The factory is returned of the object if None of the 
-        Factory method is present return default factory.
+        If no factory is registered for the given class, return the
+        default factory, if one has been registered.  If no default
+        factory has been registered, raise NotFoundError.
         """
 
         factory = self._class_factory_reg.get(object.__class__)