Hi! We have a python script which updates a property. When we go to see the property management form we see the correct values, but when we reload it we get sometimes the new values, sometimes the previous values and sometimes even older values. The same happened with an python script we made to display the property values we need to change. Is it some kind of object caching? Is there a way to stop Zope from using old values of an updated property? Miguel Lara Alday
how do you update the properties? -aj --On Mittwoch, 16. Juli 2003 15:13 Uhr +0300 Miguel Lara Alday <miguel.lara@uiah.fi> wrote:
Hi!
We have a python script which updates a property. When we go to see the property management form we see the correct values, but when we reload it we get sometimes the new values, sometimes the previous values and sometimes even older values. The same happened with an python script we made to display the property values we need to change. Is it some kind of object caching?
Is there a way to stop Zope from using old values of an updated property?
Miguel Lara Alday
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Miguel Lara Alday wrote at 2003-7-16 15:13 +0300:
We have a python script which updates a property. When we go to see the property management form we see the correct values, but when we reload it we get sometimes the new values, sometimes the previous values and sometimes even older values. The same happened with an python script we made to display the property values we need to change. Is it some kind of object caching?
Is there a way to stop Zope from using old values of an updated property?
Apparently, you modify property values in an unofficial way. The official (and working) way is to use the "PropertyManager" API (or the related "PropertySheet" API). Dieter
Hi! Yes we did modify property values in an unofficial way. So we used the following procedure: mypropertymanager.manage_changePorperties({"myproperty":"something"}) and it works ok. Thank you very much, Miguel Lara Alday -------------------
Miguel Lara Alday wrote at 2003-7-16 15:13 +0300:
We have a python script which updates a property. When we go to see the property management form we see the correct values, but when we reload it we get sometimes the new values, sometimes the previous values and sometimes even older values. The same happened with an python script we made to display the property values we need to change. Is it some kind of object caching?
Is there a way to stop Zope from using old values of an updated property?
Apparently, you modify property values in an unofficial way. The official (and working) way is to use the "PropertyManager" API (or the related "PropertySheet" API).
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Andreas Jung -
Dieter Maurer -
Miguel Lara Alday