[Zope-dev] z3c.form 2.0
Laurent Mignon
laurent.mignon at softwareag.com
Tue Feb 10 12:17:14 EST 2009
Stephan Richter wrote:
> On Tuesday 10 February 2009, Laurent Mignon wrote:
>> BUT I wonder if the way that z3c.form compute resource url stay
>> compatible with zope2
>>
>> from zope.site import hooks
>> class ImageButtonAction(image.ImageWidget, ButtonAction):
>> zope.component.adapts(interfaces.IFormLayer, interfaces.IImageButton)
>>
>> def __init__(self, request, field):
>> action.Action.__init__(self, request, field.title)
>> submit.SubmitWidget.__init__(self, request)
>> self.field = field
>>
>> @property
>> def src(self):
>> site = hooks.getSite()
>> src = zope.traversing.api.traverse(
>> site, '++resource++' + self.field.image,
>> request=self.request)()
>> return src
>
> Zope 2 guys, is that a problem for you? If so, how can we make this work? Also
> a 2.0 show stopper.
>
> Regards,
> Stephan
I don't use ImageButton so I don't kow if it's a real problem. For my
part, I thing it's not a 2.0 show stopper since we already have the
possibility to override the widget if it don't work...
Regards
Laurent
More information about the Zope-Dev
mailing list