Re: Handling a form submission

"Michael P. Soulier" <[email protected]> Fri, 4 Feb 2005 22:58:59 -0500
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 24/01/05 Thomas Waldmann said:

> Stuff using forms in moin is e.g. in userform.py and in AttachFile.py.
>=20
> Often a combination of an action with a macro (processor, parser) is=20
> used for processing (or generating) forms. Form values can be retrieved=
=20
> 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=
=2E=20

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 tho=
se?
I found the http_headers method in the request object, but I'm not sure of =
the
rest.=20

For example, I have a submission form populated via an action here

http://opag.ca/wiki/MichaelSoulier?action=3DOpagNews&do=3Dshow_form

When you click on preview, I had to supply the http headers myself, and
there's no page header or footer.=20

Help?

Thanks,
Mike

--=20
Michael P. Soulier <[email protected]>
http://www.digitaltorque.ca
http://opag.ca      python -c 'import this'
Jabber: [email protected]

--huq684BweRXVnRxX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCBESBKGqCc1vIvggRApHrAJ9aaW7y31ISjYnQfo/+CjCJntjXzACgmFCU
ejuu6LrhTwhYJ3XJvfkvmyo=
=JF+G
-----END PGP SIGNATURE-----

--huq684BweRXVnRxX--


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl