[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - syncer.py:1.25
Fred L. Drake, Jr.
fred@zope.com
Fri, 18 Jul 2003 00:18:31 -0400
Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv1558
Modified Files:
syncer.py
Log Message:
ramble about an appearant limitation of how we serialize annotations
=== Zope3/src/zope/app/fssync/syncer.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/fssync/syncer.py:1.24 Mon Jun 9 14:48:52 2003
+++ Zope3/src/zope/app/fssync/syncer.py Fri Jul 18 00:18:25 2003
@@ -118,6 +118,17 @@
annotation_dir = os.path.join(annotation_dir, name)
if not os.path.exists(annotation_dir):
os.mkdir(annotation_dir)
+
+ # XXX This doesn't allow an interface that's implemented as an
+ # adapter that uses annotations to store data to affect the
+ # serialized representation of the data. Case in point: the
+ # IAnnotatable --> ZopeDublinCore adapter
+ # (zope.app.dublincore.annotatableadapter.ZDCAnnotationAdapter)
+ # uses a PersistentDict as the storage format, but could
+ # benefit by storing the data as RDF encoded in XML (for
+ # example). Perhaps marker interfaces could be used on in
+ # PersistentDict instance to support this?
+
for key in annotations:
annotation = annotations[key]
toFS(annotation, key, annotation_dir)