[Zope-dev] product refresh and random number generation.

2003-01-28 Thread Romain Slootmaekers
hi, I'm having problems with random number generation and product refreshes. To illustrate the problem, consider the following product code: class RandomNumberGenerator(SimpleItem.SimpleItem): ... def __init__(self,id): initialize an instance self.id = id

Re: [Zope-dev] product refresh and random number generation.

2003-01-28 Thread Toby Dickenson
On Tuesday 28 January 2003 11:31 am, Romain Slootmaekers wrote: I'm having trouble understanding what is happening: You are storing an instance of the Random class in ZODB, but not telling ZODB about changes to its internal state. def next(self): returns next