CoreWD does not seam to translate to any turbogear.widget

2 views
Skip to first unread message

Raju Subban

unread,
Jan 22, 2007, 9:56:08 PM1/22/07
to turbo...@googlegroups.com
Hi,
 The code below goes on controllers.py.
This is an example piece from tg-admin toolbox -> Widgets -> Sample.
Dont' know how to really use this.
Is there a simple example template where we can plug this and learn
Thank you
Raju
----------------------------
class SingleSelectFieldDesc(CoreWD):
    name = "Single Select Field"
    for_widget = SingleSelectField("your_single_select_field",
                                   options=[(1, "Python"),
                                            (2, "Java"),
                                            (3, "Pascal"),
                                            (4, "Ruby")],
                                   default=2)
--------------------------

--
Hemanttharaju Subbanna
408-857-9414(cell)

Roger Demetrescu

unread,
Jan 23, 2007, 4:32:22 AM1/23/07
to turbo...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages