> Christian Scholz wrote:
> > root_mapper, conns = createMapper(fspath)
> > ei=ExportImport(root_mapper,conns)
> > ei.exportObject(object)
> Ah-ha, I just realized what went wrong. You need to tell exportObject()
> where to export. PathKeychainGenerator refused to guess. Try changing
> the last line to:
> ei.exportObject(object, keychain=('some/path/under/fspath',))
I now tested it and had the following results:
- the last item of the path needs to be the same id as the object has
- only objects derived from Objectmanager in the end can be serialized.
- they are not written to disk as long as I don't do
After that it worked quite well :)
I now did the import the other way round with
and then using _setObject with that object in order to store it again
in the usual ZODB (Data.fs). Is this ok? Or do I again need to do some copy?
> It's still obtuse. I'll think about how to make that cleaner.
Well, for me the whole thing actually is magic. But maybe it helps
if there is an example of usage in the docstring.
But it seems working now, so fine :-)
communication & design [EMAIL PROTECTED]
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -