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

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to