[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - Catalog.py:1.112

Tres Seaver tseaver@zope.com
03 Jul 2003 13:53:39 -0400


On Thu, 2003-07-03 at 13:36, Jeremy Hylton wrote:
> Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
> In directory cvs.zope.org:/tmp/cvs-serv21237
> 
> Modified Files:
> 	Catalog.py 
> Log Message:
> Remove deprecated __changed__() but leave comment "why?".
> 
> 
> === Zope/lib/python/Products/ZCatalog/Catalog.py 1.111 => 1.112 ===
> --- Zope/lib/python/Products/ZCatalog/Catalog.py:1.111	Tue May 27 00:47:43 2003
> +++ Zope/lib/python/Products/ZCatalog/Catalog.py	Thu Jul  3 13:36:27 2003
> @@ -209,7 +209,7 @@
>          # new column? update the brain
>          self.updateBrains()
>  
> -        self.__changed__(1)    #why?
> +        self._p_changed = 1 # why?

Just in case you really wanted to know :)....

'addColumn' mutates 'self.schema', which is a dict;  it therefore has to
mark 'self' as changed to get the persistence machinery to save the
changes.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com