where __changed__() method defined ?
Greetings, I'm making a Zope product imitating some sample products. I encountered codes like "self.__changed__(1)", notifying ZODB that this object has changed. I wornder where the method __changed__() defined ? I greped Zope source code under lib/python/, but not found. --- Chihiro Kuraya
Hi, On Sat, 04 Oct 2003 22:07:32 +0900 Chihiro Kuraya <kuraya@s-cradle.com> wrote:
I encountered codes like "self.__changed__(1)", notifying ZODB that this object has changed.
See INSTANCE_HOME/lib/python/ZODB/cPersistence.c. obj.__changed__(x) is a method in 'Persistent' or that's subclass. The method is obsolete. Use obj._p_changed. http://zope.org/Wikis/ZODB/FrontPage/guide/node3.html ---------------------------------------- Atsushi Shibata (Webcore Corp.) shibata@webcore.co.jp http://www.webcore.co.jp/ (written in Japanese) http://coreblog.org/ (written in Japanese,too ;-) ) ----------------------------------------
participants (2)
-
Atsushi Shibata -
Chihiro Kuraya