I've added a few small modules to my Subversion repository, and generally tried to clean it all up. They are located at svn://colorstudy.com/home/ianb/ or http://colorstudy.com/svn/home/ianb. Here's description of them all:
htmlstream is a bit more complex, and knows about the structure of HTML. So it kind of validates your HTML as you go along. Unlike html and similar modules, it implements a stream, so you don't have to have valid HTML at all points in your module. Here's an example of creating a SELECT with both html and htmlstream:
select_name = 'month' data = [(1, 'Jan'), (2, 'Feb'), ...] from html import html ops =  for value, desc in data: ops.append(html.option(value=value, c=desc)) select = html.select(name=select_name, c=ops) from htmlstream import HTMLStream s = HTMLStream() s.select.start() for value, desc in data: s.option(value=value, c=desc) s.select.end() select = s.finish()
I had to change line 67 to make indexer.cgi work for me (Apache, running as CGI from .htaccess):
#path_url = os.environ['SCRIPT_URL']
path_url = os.environ['REQUEST_URI']
There was no SCRIPT_URL key. Other than that, works great. :)
On my system it must be SCRIPT_URL or it won't work
I concur with Roberto, REQUEST_URI works for me; SCRIPT_URL does not. I'm using Apache 2.# Jim
Funny, no SCRIPT_URL? I'm running it under Apache 1.3. I also can't figure out how to really tell what directory the indexer is supposed to be indexing; instead I have to fake it, and it might not work with aliases and whatnot. Which seems like an oversight on Apache's part. Maybe some of this is changed in Apache 2.# Ian Bicking
I am using Apache 2.0 btw.
I'm using Apache 2 also, but with a few hacks for my Pyblosxom setup that could be the culprit.
sqlbuilder wants to import a non-existent 'converters', which is presumably in the original sqlobject.# Hamish Lawson