[Zope3-Users] Re: Using attributes in a nameChooser
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Aug 28 17:50:08 EDT 2005
On Saturday 06 August 2005 07:55, Florian Lindner wrote:
> Let me explain why I want to do that. I still have the problem that I want
> to enable to user to enter the __name__ of the object on creation (in the
> addform).
> Now it's working more or less. In the chooseName function I read out name
> attribute and return this name. One problem of this method is that I can
> not really return an validation error of the name field if the name is
> already taken. AFAIK I can't develop a custom schema field that validates
> it before, because fields do not have access to their objects.
>
> What do you think is the best solution of the problem above? Simply that
> the user could choose a name of the object.
Just write your custom view class, overriding the update() method.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list