[Zope-CMF] Re: CMFUid isn't generating real uids

Dieter Maurer dieter at handshake.de
Tue Aug 17 15:08:54 EDT 2004


Chris Withers wrote at 2004-8-17 09:01 +0200:
>Dieter Maurer wrote:
>> Importing is a kind of copying.
>
>Not always... what if you're using it to move data between Zope 
>instances or just between ZODB's?

Then you abuse "export/import":

  Both "export" as well as "import" create copies.
  You may later delete them but they are copies in the first place
  and there is nothing that forces you to delete all copies (but one).

  A safe implementation must reassign UUIDs.

  UIDs may be preserved provided the complete CMF instance
  is copied as a whole.

>> However, it is quite likely that importing will break
>> all references (due to the creation of new UIDs).
>
>Indeed, which effectively makes import/export useless, right?

Rafael already told you how to fix this...

-- 
Dieter


More information about the Zope-CMF mailing list