[Zope3-dev] possible fix in fssync?
Markus Leist
ml_zope3_dev at ikom-online.de
Sat Mar 19 02:10:08 EST 2005
markus at brom:/opt/ikom/Zope3/src/zope/app/file/fssync> svn diff adapter.py
Index: adapter.py
===================================================================
--- adapter.py (revision 29570)
+++ adapter.py (working copy)
@@ -18,9 +18,10 @@
__docformat__ = 'restructuredtext'
from zope.interface import implements
-from zope.fssync.server.entryadapter import ObjectEntryAdapter
+from zope.fssync.server.entryadapter import ObjectEntryAdapter, AttrMapping
from zope.fssync.server.interfaces import IObjectFile
class FileAdapter(ObjectEntryAdapter):
"""ObjectFile adapter for file objects.
"""
------------------------
because of:
2005-03-19T07:55:57 ERROR SiteError http://localhost:8080/o1/@@toFS.snarf
Traceback (most recent call last):
File "/opt/ikom/Zope3/src/zope/publisher/publish.py", line 138, in publish
result = publication.callObject(request, object)
File "/opt/ikom/Zope3/src/zope/app/publication/zopepublication.py", line 155, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/opt/ikom/Zope3/src/zope/publisher/publish.py", line 113, in mapply
return debug_call(object, args)
File "/opt/ikom/Zope3/src/zope/publisher/publish.py", line 119, in debug_call
return object(*args)
File "/opt/ikom/Zope3/src/zope/app/fssync/browser/__init__.py", line 57, in show
dirname)
File "/opt/ikom/Zope3/src/zope/app/fssync/syncer.py", line 41, in toFS
return syncer.toFS(obj, name, location)
File "/opt/ikom/Zope3/src/zope/fssync/server/syncer.py", line 62, in toFS
self.dumpTree(ob, name, path, mdmanager)
File "/opt/ikom/Zope3/src/zope/fssync/server/syncer.py", line 127, in dumpTree
self.dumpTree(cob, cname, cpath, mdmanager)
File "/opt/ikom/Zope3/src/zope/fssync/server/syncer.py", line 87, in dumpTree
extra = adapter.extra()
File "/opt/ikom/Zope3/src/zope/app/file/fssync/adapter.py", line 36, in extra
return AttrMapping(self.context, ('contentType',))
NameError: global name 'AttrMapping' is not defined
please fix in SVN
Markus
More information about the Zope3-dev
mailing list