Re: [Zope3-Users] set_before_add

2005-10-14 Thread gnotari
On Fri, 14 Oct 2005 15:36:09 +0200, gnotari wrote I'm at loss: I'm replicating the example at cap. 14.3 of Philipp's (Worldcookery) book. It's all about auto-assigning names to object being added to containers. After much tinkering, it does seem to me that this directive

Re: [Zope3-Users] set_before_add

2005-10-14 Thread mats.nordgren
On Fri, 14 Oct 2005 16:36:45 +0200, gnotari wrote On Fri, 14 Oct 2005 15:36:09 +0200, gnotari wrote I'm at loss: I'm replicating the example at cap. 14.3 of Philipp's (Worldcookery) book. It's all about auto-assigning names to object being added to containers. After much

RE: [Zope3-Users] set_before_add

2005-10-14 Thread Guido Notari
I checked your code, and indeed I implemented the same way. Indeed, my code works if I make it generate arbitrary names. It just does not work if I try to name a new object after one of its attributes because: - the attribute value is not set at the time the object is created - I