10 Jan
2001
10 Jan
'01
10:09 p.m.
Chris Withers writes:
Martijn Pieters wrote: Now I think I know the answer to this one, but I'll ask just to be sure:
class MyClass(Persistent Acquisition.Explicit):
def _set_your_attribute (self,value): self._v_your_attribute = value
def _get_your_attribute (self): return self._v_your_attribute
your_attribute = ComputedAttribute(_get_your_attribute)
....with this class, your_attribute isn't going to play in Persistence, is it? (so I can update it lots without worrying about ZODB size growing... :-) But, as I understand it, it is only updated in the thread that did the update. Your next request may get a different thread and see a different value.
Dieter