[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder - FSSync.py:1.1.2.1 configure.zcml:1.8.2.1
Jim Fulton
jim@zope.com
Thu, 10 Oct 2002 00:43:58 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder
In directory cvs.zope.org:/tmp/cvs-serv16171/lib/python/Zope/App/OFS/Content/Folder
Modified Files:
Tag: FileSystemSync-branch
configure.zcml
Added Files:
Tag: FileSystemSync-branch
FSSync.py
Log Message:
Initial exploratory prototype code
=== Added File Zope3/lib/python/Zope/App/OFS/Content/Folder/FSSync.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: FSSync.py,v 1.1.2.1 2002/10/10 04:43:26 jim Exp $
"""
__metaclass__ = type
from Zope.App.FSSync.IObjectDirectory import IObjectDirectory
from Zope.App.FSSync.ObjectEntryAdapter import ObjectEntryAdapter
class ObjectDirectory(ObjectEntryAdapter):
"""Folder adapter to provide a file-system representation
"""
__implements__ = IObjectDirectory
def contents(self):
"See Zope.App.FSSync.IObjectDirectory.IObjectDirectory"
return self.context.items()
__doc__ = ObjectEntryAdapter.__doc__ + __doc__
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/configure.zcml 1.8 => 1.8.2.1 ===
--- Zope3/lib/python/Zope/App/OFS/Content/Folder/configure.zcml:1.8 Fri Oct 4 16:02:02 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/Folder/configure.zcml Thu Oct 10 00:43:26 2002
@@ -103,6 +103,17 @@
</content>
+<adapter
+ factory="Zope.App.OFS.Annotation.AttributeAnnotations."
+ provides="Zope.App.OFS.Annotation.IAnnotations."
+ for=".Folder.IFolder." />
+
+
+<adapter provides="Zope.App.FSSync.IObjectDirectory."
+ for=".Folder.IFolder"
+ factory=".FSSync.ObjectDirectory" />
+
+
<include package=".Views" />
</zopeConfigure>