Jorge Godoy <[EMAIL PROTECTED]> writes:

> Where can I find information on how to pass information for a specific
> subwidget outside of its definition?  I've tried the following keywords:
>
>           - options
>           - attrs
>           - text
>           - textfield
>           - options_for
>           - metodologia (the name I used for the AutoCompleteField)
>
> And I tried them inside and outside of dictionaries...  I'm probably missing
> the key combination to make it work.  
>
> Any hints?

OK, it was solved with patch "take3" from ticket #654 that will soon be
commited.  Thanks Michele.

The syntax, then, is more intuitive:


#!/usr/bin/python
from turbogears import widgets
from turbogears import validators
form = widgets.TableForm(fields = [ 
widgets.AutoCompleteField(name='metodologia',
     search_controller="/analises/search_metodologia",
     search_param="metodologia",
     result_name="metodologias",
     text_field = widgets.TextField(attrs = {'size':51},
                name = "text",
                label = u'Metodologia',
                css_classes = ['required'],
                validator = validators.UnicodeString(not_empty = True),
                ),
     )])
form.render()

The other field is "hidden_field".  You can apply restrictions and style
individually to any of them and things will simply work. 


Thanks Michele for your help and your patch.


Be seeing you,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to