Jorge Vargas wrote:
I'm not exactly sure what you mean by not having everything on the
widget browser you want a TextField to show ALL atributes of all it's
parent classes? isn't that a huge waste of space? any suggestions on
how this can be improved? maybe add links on each widgets to each one
of their parents be a better solution. if you want to peak at the code
adding that should be a no brainer.
I'm new to TG and have found the widget browser great for finding the
widget name, but the code provides is useless for me. I think the
issue for me is that the source code and template do not follow the
methods promoted in the tutorials.
For example, following the fooball tutorial, I just switch the DataGrid
widget to FileField with
file_widget = widgets.FileField(name="test",attrs=dict(size="60")) in
the controller and returning
return dict(file_widget=file_widget). Then in the template add
${file_widget(action="sample")}
From the widget browser it seems to use the widget one level closer to
the template:
<input xmlns:py="http://purl.org/kid/ns#"
type="file"
name="${name}"
class="${field_class}"
id="${field_id}"
py:attrs="attrs"
/>
And after some looking I understand the source code (from here:
http://groups.google.com/group/turbogears/browse_thread/thread/35aefef01b4e1975/3fb7275ac2a60501?lnk=st&q=CoreWD&rnum=2&hl=en#3fb7275ac2a60501)
but really only use the for_widget line.
For a suggestion, I'd like to see more consistency with the tutorials.
Feel free to say, "ummm, you don't get it all", because I might not.
But this is what I've gathered as a first time (one week) TG user.
BTW, the experience has been oh-so-refreshing compared to
Django...probably another topic of discussion though.
The widgets browser could make development really quick and really
cool. Nice work so far.
Nate
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---