[Env: Turbogears 0.5, running on Windows XP]
I have a template containing a form, which posts back to the same URL.
My controller looks like this:
@turbogears.expose(html="yadda")
def showStuff(self, **kwargs):
if 'submit' in kwargs:
# [ Update the db ]
turbogears.flash('DB Updated')
return dict(...yadda...)
This works fine--the db gets updated every time, but the flash message
is only displayed on every _other_ try. In other words, if I just
bounce on the Submit button, I see the flash message on one view, then
nothing the next view, then I see the flash message on the third view,
etc.
Am I misusing flash here?
If not, I'll cobble up a minimal example to show the problem.
Thanks!
--
Tim Lesher <[EMAIL PROTECTED]>