[Zope3-Users] custom widgets (IDisplayWidget)
Hassan Alirezaei
hassan at isi.imi.i.u-tokyo.ac.jp
Sat Nov 25 11:13:43 EST 2006
Sascha Ottolski wrote:
> the above seems to build upon an interesting
> looking package z3c.language:
>
> http://svn.zope.org/z3c.language/trunk/src/z3c/language/
Thanks for mentioning.
Back to the source of the problem. Maybe I am getting all this wrong.
Alright, one simple question:
--------------------------------------------------
what happens when you add an object which uses a widget:
homepage =
URI(title=_("HomePage"),required=False)
and then call that widget by the following line of zpt :
<span
tal:content="context/homepage">some</span>
Isn't it that a view that is registered for the zope.schema.URI like
the following should be called????
<view
type="zope.publisher.interfaces.browser.IBrowserRequest"
for="zope.schema.interfaces.IURI"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".textwidgets.URIDisplayWidget"
permission="zope.Public"
/>
namely, the .textwidgets.URIDisplayWidget class's __call__() method
should be called.
----------------------------------------------------
please correct me if I am wrong?
Thank you so much for any help
More information about the Zope3-users
mailing list