GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Archive

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — Programmatic

View as Markdown

Programmatic¶

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Programmatic presentation systems (see DataRepresentation) use Python program units to produce output for Web application “screens” and other purposes. The simplest form of such systems is the traditional “print to standard output” technique used in the earliest days of the Web and probably in numerous CGI (Common Gateway Interface) programs to this day:

print "<table>"
for item in items:
    print "<tr>"
    print "<th>Name</th>"
    print "<td>%s</td>" % item.name
    print "</tr>"
print "</table>"

More recent programmatic presentation systems are very likely to employ more sophisticated approaches including the direct inclusion of HTML text within the Python code - a technique reminiscent of various SQL-based environments which embed SQL statements in other programming languages to supposedly reduce the complexity of the resulting source code.

Previous
Processo Programma
Next
Project File and Directory Layout
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.