[Zope3-Users] Re: Books example

Kim L. Jacobsen klj at dgc.dk
Sat Sep 9 19:28:18 EDT 2006


Philipp,

Regarding this subject... When I try the examples from chapter 7 in your book, I get the following error, when I try to add a Recipe. I simple can't figure out, how to resolve it. Any suggestions?

I'm using Zope 3.2.1

Regards,
Kim

---------------------------

Traceback (innermost last):
  Module zope.publisher.publish, line 138, in publish
    result = publication.callObject(request, object)
  Module zope.app.publication.zopepublication, line 161, in callObject
    return mapply(ob, request.getPositionalArguments(), request)
  Module zope.publisher.publish, line 113, in mapply
    return debug_call(object, args)
   - __traceback_info__: <bound method +.action of <zope.app.publisher.browser.viewmeta.+ object at 0xb58c54ac>>
  Module zope.publisher.publish, line 119, in debug_call
    return object(*args)
  Module zope.app.container.browser.adding, line 128, in action
    name=view_name) is not None:
  Module zope.component, line 165, in queryMultiAdapter
    return sitemanager.queryMultiAdapter(objects, interface, name, default)
  Module zope.component.site, line 75, in queryMultiAdapter
    default)
  Module zope.interface.adapter, line 475, in queryMultiAdapter
    return factory(*objects)
  Module zope.app.form.browser.editview, line 64, in __init__
    self._setUpWidgets()
  Module zope.app.form.browser.add, line 49, in _setUpWidgets
    setUpWidgets(self, self.schema, IInputWidget, names=self.fieldNames)
  Module zope.app.form.utility, line 153, in setUpWidgets
    context=context)
  Module zope.app.form.utility, line 101, in setUpWidget
    widget = widget(field.bind(context), view.request)
  Module zope.app.form, line 120, in __call__
    return self._create(args)
  Module zope.app.form, line 102, in _create
    instance = self._widget_factory(*args)
TypeError: __init__() takes exactly 3 arguments (4 given)

 

> -----Oprindelig meddelelse-----
> Fra: zope3-users-bounces at zope.org 
> [mailto:zope3-users-bounces at zope.org] På vegne af Philipp von 
> Weitershausen
> Sendt: 10. september 2006 00:28
> Til: zope3-users at zope.org
> Emne: [Zope3-Users] Re: Books example
> 
> Sébastien VINOT wrote:
> > Hello,
> > 
> > I'm using both books to learn Zope3 :
> > - Web component Development with Zope 3 (Philipp Von Weitershausen)
> > - Zope 3 (Stephan Ritcher)
> > 
> > I read somewhere that examples are updated somewhere on the 
> web but I 
> > can't find out where (I have to admit I did not dig into 
> the second at 
> > the moment). Does someone know where example are available ?
> 
> There will be a second edition of my book available later 
> this year at which point I will also provide a new set of examples.
> 
> Philipp
> 
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 
> 
> 


More information about the Zope3-users mailing list