XSLTools

examples/CGI/PEP241App.py

178:7e7d9dbcec62
2005-07-22 paulb [project @ 2005-07-22 18:26:38 by paulb] Tidied up the function names and added some API documentation. Added child-element and child-attribute functions for coherent references to potentially non-existent nodes in the form data.
     1 #!/usr/bin/env python     2      3 # NOTE: Path manipulation requires manual customisation.     4      5 import sys     6 sys.path.append("/home/paulb/Software/Python/WebStack")     7 sys.path.append("/home/paulb/Software/Python/XSLTools")     8 sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common")     9 sys.path.append("/home/paulb/Software/Python/libxml2dom")    10     11 from WebStack.Adapters.CGI import deploy    12 import PEP241    13     14 # Get a simple Web site.    15     16 resource = PEP241.get_site()    17     18 # Special magic incantation.    19     20 deploy(resource, handle_errors=0)    21     22 # vim: tabstop=4 expandtab shiftwidth=4