What's the easiest way to change the page not available message?

Chris G <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I'd quite like to be able to 'hook' into the code that displays the
page saying "The page you are looking for is not available" so that I
can change it (and even create some 'dynamic' content) for my wiki
menu system.

I can see where the text is generated in pyblosxom.py but there
doesn't seem to be any easy way to change it using plugins or similar.

I suppose one could write a complete renderer which sees the above
content and changes it but this seems a rather clumsy way of doing it.
Is there a neater way of doing it already available or would the
easiest way be simply to modify pyblosxom.py itself?

One could either add some conditional code to pyblosxom.py or,
probably better, make the message[s] customisable from config.py.
The need to change the content dynamically means that the message
would have to be copied into the request data dictionary.  A plugin
could then just change the value to get a different message for a
non-existent page.

-- 
Chris Green

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.