Thanks Michael for your support. I will try to get rid of these issues now.
Thanks again, Vineet. ============================ On Mar 1, 8:14 am, Michael Pedersen <[email protected]> wrote: > On Mon, Feb 28, 2011 at 11:27 AM, Vineet <[email protected]> wrote: > > 1] > > ===================== > > With "colors" --- > > The add & edit links do not work. > > After clicking add or edit, 'default' page is displayed. > > I am unable to reproduce this problem. When I try it, it works correctly for > me entirely. > > > 2] In "class ColorEditForm(EditableForm)", I have specified > > "SingleSelectField(options=act)" for a field "active". > > It displays a "TextField" control. > > It works fine in "class ColorForm(TableForm):" > > I'm not going to have time to spell this one out. It would take more > research, and I have a few things that I *need* to get done tonight. > However, I can at least put you on the path. > > You have the following two lines to define your classes: > > class ColorForm(TableForm): > class ColorEditForm(EditableForm): > > TableForm comes from tw.forms, while EditableForm comes from sprox.formbase. > SingleSelectField also comes from tw.forms. > > I'm 99% certain that the sprox.formbase.EditableForm does not know how to > display a tw.forms.SingleSelectField > > You need to convert the form to the correct base class (one of those two > classes needs to change), and get the SingleSelectField to be the right type > as well. Once you do that, this problem will clear up entirely. > > > and how do I avoid pagination, but instead get an infinitely scrolling > > table. > > For the pagination, the only way to get rid of it is to override the method > get_all in your ColorController. The default decoration for it looks like > this: > > @with_trailing_slash > @expose('tgext.crud.templates.get_all') > @expose('json') > @paginate('value_list', items_per_page=7) > def get_all(self, *args, **kw): > > You need to remove the @paginate bit, and define the rest of your get_all > method. The rest is likely exactly the same. > -- > Michael J. Pedersen > My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171 > Yahoo/pedermj2002, MSN/[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?hl=en.

