[Abstract]
[Introduction]
[Methods]
[Discussion]
[References]
Figure 1.
The class "web" - an example of the use of some of it's methods.
1. The class instance is invoked.
2. Initialization of an HTML document.
3. Anchoring of a URL.
4. Providing an image. The ALT and ALIGN fields have
defaults that can be altered.
5. Initialization of a form. The method defaults to POST
and may be altered to GET by the invokation.
6. Instant invokation of a submit button.
7. Creating a line input of a form with a default text.
8. Creating an options selection list with a pre-defined
selection.
Written by Benny shomer, The EBI.
bshomer@ebi.ac.uk
1.
>>> from WWW import web
>>> w = web()
2.
>>> w.initialize('This is a test document')
Content-type: text/html
3.
>>> print w.anchor('http://www.ebi.ac.uk/','The EBI home page')
The EBI home page
4.
>>> print w.fig('../icons/spam.gif')
5.
>>> w.form('http://www.ebi.ac.uk/htbin/embl_subs.py')