Hello Dieter Maurer, Thursday, October 20, 2005, 1:53:35 AM, you wrote:
DM> Victor Safronovich wrote at 2005-10-18 13:18 +0600: >> ... >> May be usefull to add some simple workflow to Persistent class with >> states: >> GHOST >> UPTODATE >> CHANGED >> STICKY >> transitions: DM> Most of the transitions are there (though through strange names) The main idea was to add many hooks to persistent object, for example >>>obj._p_state GHOST >>>obj._p_change_state( UPTODATE ) this call 1.obj._p_before_activate() 2.obj._p_activate() 3.obj._p_after_activate() >>> invalidate DM> I think, this is not easily available, but DM> "obj._p_changed = None" might work What about obj._p_invalidate()? -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev