Hi,
Using TG 1.9.7a4, TG rookie. After submitting a form, I redirect back
to the same page to allow another entry.

raise redirect("new_ai")

There are SingleSelectField widgets whose values could change as a
result of the previous submission.  What is the best way to force the
SingleSelectFields to reload?

    def new_ai(self, **kw):
        """Form to add new record"""
        pylons.c.form = create_aitracker_form
        return dict(modelname='Action Item')

The TableForm class for the page has these lines:

people = DBSession.query(Person.id, Person.fullname).order_by
(Person.fullname).all()
assigned_by_id = SingleSelectField("Person_by", options = people,
default = 0, label_text = "Assigned by")

Thanks,
Eric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to