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.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list

Reply via email to