[Zope3-Users] custom widgets (IDisplayWidget)

2006-11-24 Thread Hassan Alirezaei
Hello guys, I have a custom widget and I cannot manage to have a custom way of displaying it after editing. as far as I know, I should be registering the view for form.interfaces.IDisplayWidget(for display) and form.interfaces.IInputWidget(for editing). I use the following zcml lines:

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-24 Thread Kapil Thangavelu
part of it depends not only registration of the custom display widget, but also how your rendering the display, ie. if your using formlib, just using a displayformbase should do it, if your using zope.app.form directly you'll might also need to specify that you want to specify IDisplayWidget

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread FB
Hi, On Sat, Nov 25, 2006 at 04:17:24AM +0900, Hassan Alirezaei wrote: > Hello guys, > > I have a custom widget and I cannot manage to have a custom way of displaying > it after > editing. > as far as I know, I should be registering the view for > form.interfaces.IDisplayWidget(for display) an

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Hassan Alirezaei
Hello Frank, Thanks for the help. right. it is basically based on your mpgsite.i18n. I think what you do(especially the "I18NWidget") should be a part of standard zope. Thanks for the great package, I learned a lot from it. I downloaded the svn version a couple of days ago but because of the

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Sascha Ottolski
Am Samstag, 25. November 2006 09:46 schrieb Hassan Alirezaei: > I think what you > do(especially the "I18NWidget") should be a part of standard zope. I too think something like this would be a good thing to have as standard. Just thought that anyone might be interested, I stumbled over another pa

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Sascha Ottolski
Am Samstag, 25. November 2006 11:36 schrieb Sascha Ottolski: > Am Samstag, 25. November 2006 09:46 schrieb Hassan Alirezaei: > > I think what you > > do(especially the "I18NWidget") should be a part of standard zope. > > I too think something like this would be a good thing to have as standard. > J

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Hassan Alirezaei
Hi Kapil , Thanks for the reply. part of it depends not only registration of the custom display widget, but also how your rendering the display, ie. if your using formlib, just using a displayformbase should do it, if your using zope.app.form directly you'll might also need to specify that you

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Hassan Alirezaei
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: --

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread FB
Hi, On Sun, Nov 26, 2006 at 01:13:43AM +0900, Hassan Alirezaei wrote: > 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.

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Hassan Alirezaei
Hi Frank. Thanks again! No widget is called. Problem is, there's no schema information contained in "context/homepage". What the template engine does is basically str(context.homepage) I kinda guessed that from what the browser displays. Just one last question. if the template just uses s

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread FB
Hi, On Sun, Nov 26, 2006 at 03:33:06AM +0900, Hassan Alirezaei wrote: [snip] > Just one last question. if the template just uses str() then what does the > following zcml do? it is in the standard zope3 distribution under the > zope/app/form/browser/configure.zcml and I didn't notice any pro

Re: [Zope3-Users] custom widgets (IDisplayWidget)

2006-11-25 Thread Hassan Alirezaei
FB wrote: Hi, On Sun, Nov 26, 2006 at 03:33:06AM +0900, Hassan Alirezaei wrote: [snip] Just one last question. if the template just uses str() then what does the following zcml do? it is in the standard zope3 distribution under the zope/app/form/browser/configure.zcml and I didn't noti