[Zope-dev] Broken objects

Victor Safronovich vsafronovich at naumen.ru
Thu Sep 29 06:45:59 EDT 2005


Hello Victor Safronovich,

Thursday, September 29, 2005, 4:03:17 PM, you wrote:

VS> I think __setattr__ and __setstate__ overriden by ExtensionClass, but needfully
VS> must be from Persistent. Or classFactory must return
VS> ZODB.broken.{Persistent}Broken objects
  I changed BrolenClass.__bases__ from Acquisition.Explicit, SimpleItem.Item, Persistence.Overridable
  to   Persistence.Overridable,  Acquisition.Explicit, SimpleItem.Item, but this
  is not helped to load state.

  BUT the code below works :))

  shed = app.portal.portal_scheduler # 'shed' is broken object
  con = shed._p_jar
  con._setstate( shed ) # this load state successfully

-- 
Best regards,
 Victor Safronovich
 NauMen.NauDoc.SoftwareDeveloper  http://www.naumen.ru



More information about the Zope-Dev mailing list