[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - interfaces.py:1.1 configure.zcml:1.6 fsregistry.py:1.6

Philipp von Weitershausen philikon at philikon.de
Mon Mar 1 08:07:48 EST 2004


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

Modified Files:
	configure.zcml fsregistry.py 
Added Files:
	interfaces.py 
Log Message:
Moved the zope.app.browser.fssync package to zope.app.fssync.browser,
and the zope.app.interfaces.fssync module to zope.app.fssync.interfaces.


=== Added File Zope3/src/zope/app/fssync/interfaces.py ===
##############################################################################
#
# 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.
#
##############################################################################
"""Interfaces for filesystem synchronization.

$Id: interfaces.py,v 1.1 2004/03/01 13:07:16 philikon Exp $
"""

from zope.interface import Interface


class IFSSyncService(Interface):
    """Lookup file-system representation adapters."""

    def getSynchronizer(object):
        """Return an object that implements IObjectEntry for the argument.

        The return value may be:

        - An IDirectoryEntry adapter for the object is returned if the
          object is represented as a directory on the file system.

        - An IFileEntry adapter for the object is returned if the
          object is represented as a file on the file system.

        or

        - Default, if no synchronizser has been registered.
        """


class IGlobalFSSyncService(IFSSyncService):
    """Global registry for file-system representation adapters."""

    def provideSynchronizer(class_, factory):
        """Register a synchronizer.

        A factory for a Synchronization Adapter is provided to create
        synchronizers for instances of the class.
        """


=== Zope3/src/zope/app/fssync/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/fssync/configure.zcml:1.5	Tue Feb 24 11:51:01 2004
+++ Zope3/src/zope/app/fssync/configure.zcml	Mon Mar  1 08:07:16 2004
@@ -5,14 +5,21 @@
 
   <serviceType
       id="FSRegistryService"
-      interface="zope.app.interfaces.fssync.IGlobalFSSyncService"/>
+      interface="zope.app.fssync.interfaces.IGlobalFSSyncService"
+      />
   
   <service
       serviceType="FSRegistryService"
-      component="zope.app.fssync.fsregistry.fsRegistry"/>
+      component="zope.app.fssync.fsregistry.fsRegistry"
+      />
 
   <fssync:adapter
       factory="zope.fssync.server.entryadapter.DefaultFileAdpater"
       />
+
+
+  <!-- Include browser package -->
+
+  <include package=".browser" />
 
 </configure>


=== Zope3/src/zope/app/fssync/fsregistry.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/fssync/fsregistry.py:1.5	Thu Jan 15 14:47:14 2004
+++ Zope3/src/zope/app/fssync/fsregistry.py	Mon Mar  1 08:07:16 2004
@@ -18,9 +18,9 @@
 $Id$
 """
 
-from zope.app.interfaces.fssync import IGlobalFSSyncService
 from zope.exceptions import DuplicationError, NotFoundError
 from zope.interface import implements
+from zope.app.fssync.interfaces import IGlobalFSSyncService
 
 class FSRegistry(object):
     """Registry Wrapper class.




More information about the Zope3-Checkins mailing list