Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Darryl Cousins
Hi, On Wed, 2007-05-02 at 15:07 +0200, Hermann Himmelbauer wrote: Hi, I'd like to know how to arrange (e.g. group) widgets in a form with formlib. One way would be to create a custom template file, where each widget is placed via HTML. However, this is quite some work. I've often done

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Maciej Wisniowski
One way would be to create a custom template file, where each widget is placed via HTML. However, this is quite some work. I've often done this and it doesn't seem like too much work. But I don't dispute your evaluation. I've used my own templates as well. It is more work than

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Fred Drake
On 5/3/07, Maciej Wisniowski [EMAIL PROTECTED] wrote: AFAIK for textarea html fields you can't set something like maxlength. You have to use javascript for that. That's correct; maxlength is for input with type=text or type=password. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Chaos

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Fred Drake
On 5/3/07, Darryl Cousins [EMAIL PROTECTED] wrote: My approach is different to Fred's because I rarely call setUpWidgets in my form code. I have a bunch of custom widgets in a known place and use custom_widget. Some widgets are for special fields or needs and some are as simple as this one. I

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Hermann Himmelbauer
Am Donnerstag, 3. Mai 2007 08:57 schrieb Darryl Cousins: Hi, On Wed, 2007-05-02 at 15:07 +0200, Hermann Himmelbauer wrote: Hi, I'd like to know how to arrange (e.g. group) widgets in a form with formlib. One way would be to create a custom template file, where each widget is placed

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Fred Drake
On 5/3/07, Hermann Himmelbauer [EMAIL PROTECTED] wrote: Well, when looking at the template, I roughly have to write this for every widget: Another approach is to use a template that uses a view on each widget; that view can be whatever it needs to be, and let's you have per-field bits

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Maciej Wisniowski
In my case, I have several forms with e.g. 10-15 fields, so this adds up and in the end the templates are quite complex. If there were some shortcut or macro which generates the above HTML-code, it would be a lot easier, perhaps there's a decent solution? If it would looke something like

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Tom Dossis
Hermann Himmelbauer wrote: I'd like to know how to arrange (e.g. group) widgets in a form with formlib. One way would be to create a custom template file, where each widget is placed via HTML. However, this is quite some work. I've often done this and it doesn't seem like too much work. But

[Zope3-Users] Ch 7, lookup error in getMultiAdapter

2007-05-03 Thread Robert Norman
Working through Web Component Development with Zope 3 Second Edition, I'm stuck just at the point it gets more interesting. In the interactive debug session looking at a basic view, I get a lookup error at... view = getMultiAdapter((lasagne, request), name=u'index.html') I've confirmed that