Re: zope.app.form and zope.formlib

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization Clark Consulting & Research
Message-ID <[email protected]>
Am 30.12.2009, 19:06 Uhr, schrieb Martijn Faassen <[email protected]>:

> To do sane functional tests I need a form library. I can't use
> zope.formlib in zope.formlibwidget as that would create a circular
> dependency (at least for tests, but that's ugly enough).
> So my conclusion is to move zope.app.form's widget stuff into
> zope.formlib, so that the functional tests can be po

Hi Maartijn,

this does sound like a sensible approach - from the work I've done with  
formlib I can confirm that I never understood what was formlib and what  
was zope.app.form. One small question - what do I need to do to get this  
work with Zope 2.12? Currently I have to peg to < 4.0.0 Otherwise I get  
the following error:


zope.configuration.config.ConfigurationConflictError: Conflicting  
configuration actions
   For: ('adapter', (<InterfaceClass zope.formlib.interfaces.IAction>,),  
<InterfaceClass zope.browserpage.namedtemplate.INamedTemplate>, u'render')
     File  
"/Users/charlieclark/Sites/zurich/eggs/zope.formlib-4.0-py2.6.egg/zope/formlib/configure.zcml",  
line 19.2-19.64
         <adapter factory=".form.render_submit_button" name="render" />
     File  
"/Users/charlieclark/Sites/zurich/eggs/Zope2-2.12.2-py2.6-macosx-10.6-i386.egg/Products/Five/formlib/configure.zcml",  
line 6.2-9.8
         <adapter
             factory=".form.render_submit_button"
             name="render"
             />
   For: ('adapter', (<class 'zope.interface.exceptions.Invalid'>,  
<InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>),  
<InterfaceClass zope.formlib.interfaces.IWidgetInputErrorView>, '')
     File  
"/Users/charlieclark/Sites/zurich/eggs/zope.formlib-4.0-py2.6.egg/zope/formlib/configure.zcml",  
line 22.2-25.8
         <adapter
             factory=".errors.InvalidErrorView"
             permission="zope.Public"
             />
     File  
"/Users/charlieclark/Sites/zurich/eggs/Zope2-2.12.2-py2.6-macosx-10.6-i386.egg/Products/Five/formlib/configure.zcml",  
line 12.2-17.8
         <adapter
             for="zope.interface.Invalid
                  zope.publisher.interfaces.browser.IBrowserRequest"
             factory=".errors.InvalidErrorView"
             permission="zope.Public"
             />

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.