[ZODB-Dev] AdaptableStorage and ZClass instances

Rocky Burt rocky.burt@bricsnet.com
Tue, 11 Feb 2003 23:16:43 -0500


Not sure where AdaptableStorage questions/comments should go, but someone 
suggested this list, so here goes.

Starting off, I'd like to mention that the default FS mapping doesn't
allow you to create objects with ID's that start with '.' do to the
metadata prefix mapping.  I've quietly modifed my own FSConnection to use
'.__metadata__' as the prefix instead of '.' which works ok, but of course
I couldn't create a new object with an ID that starts with '__metadata__'.

(note: I couldn't create a plone site on a AS mount point because Plone 
creates items that start with '.'.  But now it works fine.)

But, my real issue is that it seems I can't paste in objects that are derived
from ZClasses.  When I try, I get the following error:
Traceback (innermost last):
  Module ZPublisher.Publish, line 98, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module OFS.CopySupport, line 159, in manage_pasteObjects
  Module Products.AdaptableStorage.patches, line 58, in _getCopy
  Module Products.AdaptableStorage.zodb.utils, line 45, in copyOf
ImportError: No module named *toMgfZwMlJlaeWGbeSiFQw==

After some debugging, this seems to be a unpickling error.  Anyone have
any suggestions to fix or work pass this?

- Rocky (r0ky)

ps. I'm not subscribed to this list, so please at least CC me directly.