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 _______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
