Em Quarta 26 Abril 2006 07:31, Michele Cella escreveu:
>
> IMHO member_widgets should just act as a special classifier for a
> params.

Sorry, but why a "special classifier"?  Aren't they going to be replaceable as 
it is today in, e.g., AutoCompleteField?  I believe that the fact that they 
are widgets instead of a common parameter should be stated at the widget 
documentation.

I like the idea of having those explicit, but I don't like the idea of having 
them without docs just because they are widgets.

> Anyway personally I can't see how is inconsistent that some params work
> differently since they are listed in member_widgets, to me is quite the
> contrary, they aren't suddenly working inconsistently but they are
> working in this way because you're *explicitly* stating this:

And I hope that "this" was stated at the documentation for those parameters. 

> "Ok, my widgets has 5 params, 2 of them are special since they hold
> references to member widgets that the Widget class should know about
> for the schema, for css/js and to make them immutable after
> construction hence I'm marking those 2 inside member_widgets."

(...)

> "This is a CompoundWidget, if one or more of your params are holding
> references to other widgets you need to list them in member_widgets,
> keep in mind that params listed
> here are immutable at display time."

And why can't we say that today?  (And also add a note about how to add 
validation schemas for those compound widgets, how to retrieve and update 
their data, etc. :-) This will be needed even though we say it is a 
dictionary...)

> TO NOTE: no backward incomp, if a widget is only listing it at
> member_widgets I will issue a Deprecation and say "Ehy, please list
> these parameters in params also to make things clear.".

+1 here.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
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