Thanks Michael,
 There is indeed something missing :
 ComponentLookupError: ((
  zope.schema._bootstrapfields.Int object at 0x01A83610 , 
  zope.publisher.browser.TestRequest instance URL= ), 
  InterfaceClass , u'')
 My problem has nothing to do with containers, since my interface is
 not a container. It seems that zope can't find the adapters for the shema 
fields, even when 
 I register them by code. I really don't know what to do from now.
 The fact is I use AJAX, so I don't need to register my views, I just
 call them from code to use the generated html as a response to a
 javascript call that then update my page.

----- Message d'origine ----
De : Michael Howitz <[EMAIL PROTECTED]>
À : Stéphane Brault <[EMAIL PROTECTED]>
Cc : user-list zope <>
Envoyé le : Mardi, 18 Avril 2006, 3h40mn 16s
Objet : Re: [Zope3-Users] formlib problem

Stéphane Brault wrote:
> Hi,
>  I can't use formlib, when I run the example in the form.txt I get this error:
>  Traceback (most recent call last):
>    File "<pyshell#29>", line 1, in -toplevel-
>      print MyForm(None, request)()
>    File "<pyshell#26>", line 6, in __call__
>      widgets = form.setUpWidgets(self.form_fields, 'form', self.context, 
> self.request, ignore_request= ignore_request)
>    File "C:\Python24\Lib\site-packages\zope\formlib\", line 255, in 
> setUpWidgets
>      IInputWidget)
>    File "C:\Python24\Lib\site-packages\zope\component\", line 154, 
> in getMultiAdapter
>      raise ComponentLookupError(objects, interface, name)
>  ComponentLookupError: ((,>), , u'')

There seems to be something missing before ", http..." ... did you copy 
it form the browser output?

>  It happens when setUpWidgets is called in the first example, do I need to 
> import something or to configure a component for formlib to work ?
>  Any hint ?

Guess out of the dust: does the interface of the object you want to 
display have a directive?

This thread seems similar to your problem.


Zope3-users mailing list

Reply via email to