Am Sonntag, 2. September 2007 18:26 schrieb Markus Leist:
> Hi list,
>
> z3c.form has a very generic, well approach - but at the moment it's to
> complicated to me.
>
> I have an interface defined like:
>
> 100       osList = List (
> 101           title = _("operating systems"),
> 103           value_type = TextLine(
> 105               title = _("Operatingsystem"),
> 107               default = u"",
> 108               required = False),
> 109           required = False)
> [originally from
> http://trac.ict-ok.org/browser/trunk/org/ict_ok/components/host/interfaces.
>py ]
>
> when z3c.form will do his update, i'll get a
>
> ComponentLookupError: (
>   (<zope.schema._field.List object at 0x989054c>,
>    <zope.schema._bootstrapfields.TextLine object at 0x989090c>,
>    <zc.resourcelibrary.publication.Request instance
> URL=http://localhost:8081/cc071bd954f8fd7b3fccf9fab2b1c7b58/add_host.html>)
>, <InterfaceClass z3c.form.interfaces.IFieldWidget>, u'')
> [full trace on http://paste.lisp.org/display/47105 ]

I think I know that one: Your request object hast to be marked with the 
appropriate interface, in this case it's IFormLayer.

I recommend you to have a decent look at z3c.formdemo.

To sum my z3c.form-experience up: In the beginning it's quite hard and 
complicated, although the documentation is good. One has to deeply understand 
the component-based software design (Interfaces, Adapters etc.) and other 
packages (e.g. pagelets). However it pays off later on, because other 
alternatives (e.g. formlib) are too limiting for many use cases.

Best Regards,
Hermann

-- 
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to