Re: [Zope3-Users] Using building blocks for forms

2005-09-11 Thread Stephan Richter
On Friday 02 September 2005 10:56, Florian Lindner wrote:
> It would be nice if I can reuse parts of the auto generated form. For
> example the error reporting of the fields. Is that possible? Or do I need
> to redo everything when using a template?

For more pythonic and flexible forms use zc.formlib.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Using building blocks for forms

2005-09-02 Thread Adam Groszer
Hello Florian,

Have a look at \src\zope\app\form\browser\add.pt.
There are several slots defined and macros used.

Another way is to define a 'fake' schema for the input and store the
data to the real object in the createAndAdd method.

Friday, September 2, 2005, 4:56:07 PM, you wrote:

> Hello,
> probably now one knows what I mean with this subject but it was the best that
> came into my mind. ;-)

> I'm using a customized addform (by setting the template and view attributes).
> My template looks exactly like the auto-generated addform but adds another
> input field and compute the values of that in the view class.

> It would be nice if I can reuse parts of the auto generated form. For example
> the error reporting of the fields. Is that possible? Or do I need to redo
> everything when using a template?

> Thanks,

> Florian
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users 



-- 
Best regards,
 Adammailto:[EMAIL PROTECTED]
--
Quote of the day:
You can not discover new oceans unless you have the courage to lose sight of 
the shore. 
- Unknown 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Using building blocks for forms

2005-09-02 Thread Florian Lindner
Hello,
probably now one knows what I mean with this subject but it was the best that 
came into my mind. ;-)

I'm using a customized addform (by setting the template and view attributes). 
My template looks exactly like the auto-generated addform but adds another 
input field and compute the values of that in the view class.

It would be nice if I can reuse parts of the auto generated form. For example 
the error reporting of the fields. Is that possible? Or do I need to redo 
everything when using a template?

Thanks,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users