Alberto Valverde wrote:
> On 26/04/2006, at 12:31, Michele Cella wrote:
> > I can't see the problem with inheritance, there are no changes needed
> > at meta.py.
>
> Yep, there is... every parameter listed at params gets a descriptor
> to access it to handle automatic calling, *at least* you would have
> to make a check so these "params/member_widgets" don't get called
> when passed to the template.
>
> Regarding to inheritance:
>
> class A(Widget):
>       params = ["a", "b", "c]
>       member_widgets = ["a", "b"]
>
> class B(Widget):
>       params = ["b"]
>

If you're subclassing A you already know b is used to hold member
widgets.

But apart from that thanks for pointing out the callable things that I
forgot about, this will be a problem yes since a Widget is callable.

Anyway as I said to Kevin and now to you, discussion is useful to clear
things so I now also believe this is not a good idea.

Thanks guys and sorry again.

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to