Hello, i've tried out diffenrent parts of z3c.formdemo, but there is noch schema.List from schema.Textline example in the demo.
when omitting the osList-attribute by: > 109 fields = field.Fields(IHost).omit(*HostDetails.omit_editfields) > [see > http://trac.ict-ok.org/browser/trunk/org/ict_ok/components/host/browser/host.py > ] > with HostDetails.omit_editfields = ['osList'] z3c.form work great, so accordingly the request must be ok, right? form registration is in line 44 of http://trac.ict-ok.org/browser/trunk/org/ict_ok/components/host/browser/configure.zcml you can see my IFormLayer in http://trac.ict-ok.org/browser/trunk/org/ict_ok/skin/interfaces.py line 27 the widget from z3c.form are "too sharp for me". I think, there is my problem. Thanx so far Markus Am Montag 03 September 2007 um 10:39 Uhr schrieb Hermann Himmelbauer <[EMAIL PROTECTED]>: > 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 > _______________________________________________ Zope3-users mailing list Zope3firstname.lastname@example.org http://mail.zope.org/mailman/listinfo/zope3-users