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:

Most of the transitions are there (though through strange names)
>       activate

--> obj._p_changed = 0

>       deactivate

--> obj._p_deactivate() # works unless CHANGED

>       ghostify

this is the same as deactivate

>       unghostify

this is the same as activate

>       changed

--> obj._p_changed = 1

>       invalidate

I think, this is not easily available, but
"obj._p_changed = None" might work

-- 
Dieter
_______________________________________________
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

Reply via email to