Re: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter

2009-07-08 Thread Roger Ineichen
Hi Gerhard Betreff: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter Hi, some widgets may require a valid context to work properly. one such widget is z3c.formquery. The attached patch passes the current widget's context to the sub widgets during data conversion

Re: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter

2009-07-08 Thread Gerhard Weis
Hi Roger, Roger Ineichen wrote: Hi Gerhard Betreff: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter Hi, some widgets may require a valid context to work properly. one such widget is z3c.formquery. The attached patch passes the current widget's context to the

Re: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter

2009-07-08 Thread Roger Ineichen
Hi Gerhard Betreff: Re: AW: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter [...] If this makes sense, the patch should probably do soemthing like: if not widget.ignoreContext widget.context = widget.form.context This whould prevent to set an ignored

Re: [Zope-dev] z3c.form pass context to multi widgets in MultiConverter

2009-07-08 Thread Gerhard Weis
Hi Roger, Roger Ineichen wrote: I'm really not sure if this is working, but does this make sense to you? Regards Roger Ineichen Thanks for the comment. For this particular use case it won't work without the context,. The context is used to look up further