On Dec 31 2009, 6:13 pm, "Diez B. Roggisch" <[email protected]> wrote:
> casibbald schrieb:
>
>
>
>
>
> > Hi All,
>
> > I have something strange going on with my forms, they seem to
> > misbehave and i don't know if its my code, or something with forms.
>
> > The strange thing is, if i get Turbogears to reload anything by adding
> > a comment to a file, i can visit the page and the form works again.
> > but the forms vanish again.
>
> > The following is a form rendered correctly:
> >http://prontoapps.com/images/formItemShowing.png
>
> > The following is the form if the page is refreshed, or visited from
> > another browser tab/machine:
> >http://prontoapps.com/images/formItemsVanish.png
>
> > The application does not have a DB, and is designed to manipulate
> > files on the filesystem.
>
> > Looking forward to someone shedding light on this.
>
> You want your @validate-decorator have the applicationControl-action as
> error_handler.
>
> Diez
Hi Diez,
Thanks for your response.
I have updated as below, but still have the same problem. Could there
be another parameter missing?
@expose('webdeploy.templates.applicationControl')
def applicationControl(self, **kw):
"""Handle the 'applicationControl' page."""
tmpl_context.form = create_applicationControlForm
return dict(page='applicationControl',
control_options='controlApplicationOptions',
control_actions='controlAction')
@validate(create_applicationControlForm,
error_handler=applicationControl)
@expose()
def executeForm(self, **kw):
"""Handle the 'applicationControl' page."""
tmpl_context.form = create_applicationControlForm
redirect("index")
Regards
Charles
--
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.