[Zope3-Users] Using attributes in a nameChooser

2005-08-05 Thread Florian Lindner
Hello, in a Containers chooseName function I want to use a attribute of the created object: def chooseName(self, name, object): return object.name File "/home/florian/Desktop/zope/lib/python/CS/ContentFolder/contentfolder.py", line 15, in chooseName return object.name Attrib

Re: [Zope3-Users] Using attributes in a nameChooser

2005-08-05 Thread Stephan Richter
On Friday 05 August 2005 06:25, Florian Lindner wrote: > in a Containers chooseName function I want to use a attribute of the > created object: > >     def chooseName(self, name, object): >         return object.name > > >   File > "/home/florian/Desktop/zope/lib/python/CS/ContentFolder/contentfold

Re: [Zope3-Users] Using attributes in a nameChooser

2005-08-05 Thread Ruslan Spivak
В Птн, 05/08/2005 в 12:25 +0200, Florian Lindner пишет: > Hello, > in a Containers chooseName function I want to use a attribute of the created > object: > > def chooseName(self, name, object): > return object.name > > > File > "/home/florian/Desktop/zope/lib/python/CS/ContentFol

Re: [Zope3-Users] Using attributes in a nameChooser

2005-08-05 Thread Florian Lindner
Am Freitag, 5. August 2005 15:49 schrieb Ruslan Spivak: > В Птн, 05/08/2005 в 12:25 +0200, Florian Lindner пишет: > > Hello, > > in a Containers chooseName function I want to use a attribute of the > > created object: > > > > def chooseName(self, name, object): > > return object.name >

[Zope3-Users] Re: Using attributes in a nameChooser

2005-08-05 Thread Ruslan Spivak
Florian Lindner <[EMAIL PROTECTED]> writes: [...] > Can this set_before_add behevoir be somehow defined global for the object or > even better be imposed by the container? So that it does not need to be > declared by every addform. > Not sure. Ruslan __