[Zope] Processing form data.

Andreas Kostyrka andreas@mtg.co.at
Wed, 1 Sep 1999 12:10:30 +0200 (CEST)


On Wed, 1 Sep 1999, Fredrick Rybarczyk - LUB NetLab wrote:

> Terrel Shumway wrote:
> 
> > >3: I will also need to url encode my data. Can Zope handle that / is
> > >there a module for it somewhere?
> >
> > Does the standard python module urllib do what you want?
> > http://www.python.org/doc/current/lib/module-urllib.html
Well, what about 
<dtml-var testvar url_quote>
?

> You're quite right, but what I really meant was that I'm writing a module
> that offers shorthands for html formatting which I use when I write external
Well, CGI parsing support is in the standard library.

HTML generating can be done either over one long string with formatting:
"""
<html>
<head>
...
...
<IMG SRC="%(imgurl)s">
...
</html>""" % {'imgurl':'someurl', ...}

Alternativly, one can use the way you sketched out. For this I would use
the HTMLgen library, which comes with a complete OO design to makeing
HTML documents. ;)

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA