473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HTMLgen error

I received an error when i try htmlgen on winxp, apapche, mysql, mod_python
THIS IS THE ERROR

Mod_python error: "PythonHandler mod_python.publisher"
Traceback (most recent call last):
File "C:\PROGRA~1\PYTHON~1\lib\site-packages\mod_python\apache.py", line
193, in Dispatch
result = object(req)
File "C:\PROGRA~1\PYTHON~1\lib\site-packages\mod_python\publisher.py", line
171, in handler
result = apply(object, (), args)
File "c:/programmi/apache/pub\test-pub.py", line 10, in pippo
doc = HTMLgen.BasicDocument(title=title)

NameError: global name 'HTMLgen' is not defined
THIS IS THE CODE

""" Publisher example """

import HTMLgen
def pippo(req) :
title = "try title"
doc = HTMLgen.BasicDocument(title=title)
doc.append(HTMLgen.Center(HTMLgen.Heading(1, title)))
doc.append(HTMLgen.Paragraph(
"""(Try paragraph, Try paragraph, Try paragraph, Try paragraph,
Try paragraph, Try paragraph, Try paragraph, Try paragraph, Try paragraph,
Try paragraph, Try paragraph, Try paragraph, Try paragraph, Try paragraph,
Try paragraph, Try paragraph, Try paragraph, Try paragraph, Try
paragraph.)"""))

return doc
Jul 18 '05 #1
0 1071

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: user | last post by:
Checking out HTMLgen, I find the manual to be quite terse, and difficult to crack. Are there any examples or tutorials available for this package? Thanks, Tobiah
1
by: dont bother | last post by:
Hi, I have downloaded the HTMLgen for generating web pages with python. However I untared and unzipped it. I tried to link it with my path like this: Heres my .bashrc file...
1
by: Andre van der Vlies | last post by:
Hi, I've made some (minor) adjustments to HTMLgen. I added a 'style' option for (form)buttons and a 'valign' option for table(cells).... I tried to send this to the author of HTMLgen but e-mail...
2
by: adeger | last post by:
For use of CSS how do I do something like insert a 'class' attribute into an HTML tag like: <TABLE class='standard'></TABLE> I've really made a good faith effort to find this in the...
0
by: C. Titus Brown | last post by:
Hi all, I spent a little bit of time today working on Robin Friedrich's HTMLgen, and made it work more like a modern Python package, with a Python package directory & distutils-based setup.py. ...
5
by: Cappy2112 | last post by:
Does anyone know if the table align property is available in HTMLgen.Table? The docs don't show it, but I find it hard to believe that it is not available. I want to center the table. Only the...
4
by: kgmuller | last post by:
Does anybody know whether htmlGen, the Python-class library for generating HTML, is still being maintained? Or from where it can be downloaded? The Starship site where it used to be hosted is dead....
4
by: Joshua J. Kugler | last post by:
I realize that in today's MVC-everything world, the mere mention of generating HTML in the script is near heresy, but for now, it's what I ened to do. :) That said, can someone recommend a good...
5
by: econtreras.bantech | last post by:
Good day Mr. Guido, excuse my poor english. I am looking for HTMLgen module but not to find this, the link referenced in www.python.org it does not exist. I have need to develop in cgi and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.