Hi,
Got version 0.01 of my first every web application working after lurking
on this list for a long time. Crediting Quixote and hiding my head in
the bushes this is the first framework that I could actually understand
enough to get to a working, though rudimentary, application. This list
and A.M. Kuchling's PyCon submission system's source proved to be
invaluable assets in this endeavor :)
However, I am having a very hard time understanding the difference
between the ways that medusa and scgi/apache work. The immediate problem
I have right now is that in order to set up scgi on a live server I
couldn't let it grab the web root, so I set it up with location
directive and used a prefix in the driver script. It works, thanks to
Dave Kuhlman for excellent instructions on both medusa and scgi/apache,
but in order to make navigational href links work I have to change them
from /page1, /page2, /page3 in the medusa variant to /prefix/page1,
/prefix/page2, etc. in the scgi variant. Is there a portable way to set
navigational href links in my 'standard.ptl', so that they could be used
under either medusa or scgi/apache?
Thank you,
Alex.
standard.ptl
The prefix is "tbc"
from quixote.html import href
def header [html] (title):
""
title
" \n"
''
"\n"
"%s
" % title
'| ' href("/tbc", "[Home]") ' | ' '' href("/tbc/volumes", "[Volume names]") ' | ' '' href("/tbc/fullvolumes", "[Volume descriptions]") ' | ' '' href("/tbc/backups", "[Backups]") ' | ' '' href("/tbc/check", "[Check backups]") ' | ' '
" """
""" -- The lyf so short, the craft so long to lerne. -- Chaucer Life's not fair, but the root password helps. -- BOFH