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 -- Stephan Richter Web Software Design, Development and Training Google me. "Zope Stephan Richter"