[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/FSSync - IFSSyncService.py:1.1.2.1 IGlobalFSSyncService.py:1.1.2.1
Jim Fulton
jim@zope.com
Thu, 10 Oct 2002 09:14:23 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/FSSync
In directory cvs.zope.org:/tmp/cvs-serv20112
Added Files:
Tag: FileSystemSync-branch
IFSSyncService.py IGlobalFSSyncService.py
Log Message:
Checked in some tentative synchronization registries and tests.
=== Added File Zope3/lib/python/Zope/App/FSSync/IFSSyncService.py ===
##############################################################################
#
# Copyright (c) 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.
#
##############################################################################
"""
$Id: IFSSyncService.py,v 1.1.2.1 2002/10/10 13:14:22 jim Exp $
"""
from Interface import Interface
class IFSSyncService(Interface):
"""Lookup File-system representation adapters
"""
def querySynchronizer(object):
"""Return an object that implements IObjectEntry for the argument
The return value may be:
- An IDirectoryEntry of the object is represented as a
directory on the file system.
- An IFileEntry of the object is represented as a
file on the file system.
or
- None, if no synchronizser has been registered.
"""
__doc__ = IFSSyncService.__doc__ + __doc__
=== Added File Zope3/lib/python/Zope/App/FSSync/IGlobalFSSyncService.py ===
##############################################################################
#
# Copyright (c) 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.
#
##############################################################################
"""
$Id: IGlobalFSSyncService.py,v 1.1.2.1 2002/10/10 13:14:22 jim Exp $
"""
from IFSSyncService import IFSSyncService
class IGlobalFSSyncService(IFSSyncService):
"""Global registry for File-system representation adapters
"""
def provideSynchronizer(class_, factory):
"""Register a synchronizer
A factory is provides for computing synchronizers for
instances of the class.
"""
__doc__ = IGlobalFSSyncService.__doc__ + __doc__