[Moin-devel] Handling a form submission
Michael P. Soulier
msoulier at digitaltorque.ca
Fri Feb 4 19:59:29 EST 2005
On 24/01/05 Thomas Waldmann said:
> Stuff using forms in moin is e.g. in userform.py and in AttachFile.py.
>
> Often a combination of an action with a macro (processor, parser) is
> used for processing (or generating) forms. Form values can be retrieved
> from request.form, maybe grep for that.
Question. When I use an action to display a form as the content of the page,
then the form is embedded in the page with the standard headers and footers.
However, when I do the same thing with the action code as a result of a form
submission, it appears that I'm supposed to supply the http headers myself,
and there's no navibar, title or footer. How would you normally provide those?
I found the http_headers method in the request object, but I'm not sure of the
rest.
For example, I have a submission form populated via an action here
http://opag.ca/wiki/MichaelSoulier?action=OpagNews&do=show_form
When you click on preview, I had to supply the http headers myself, and
there's no page header or footer.
Help?
Thanks,
Mike
--
Michael P. Soulier <msoulier at digitaltorque.ca>
http://www.digitaltorque.ca
http://opag.ca python -c 'import this'
Jabber: msoulier at digitaltorque.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/moin-devel/attachments/20050204/ed4661b8/attachment.sig>
More information about the Moin-devel
mailing list