What's the 'right' way to construct path with wgbwiki.py
Chris G <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
As you know I'm writing a plugin that works with wgbwiki.py.
I have the following values for a sample file when I set the renderer
to "debug" :-
PATH_INFO -> /wiki/holidays/france2005/part1
wikidir -> /home/chris/webdev/info
pi_bl -> wiki/holidays/france2005/part1
Now the path to the file I'm trying to display is actually:-
/home/chris/webdev/info/holidays/france2005/part1.rst
I.e. I need to remove the "wiki" from the front of pi_bl before
appending it to wikidir to get the full path of the file. Should I
simply the removing the "wiki" (which is the TRIGGER value in
wgbwiki.py) or is there a more elegant/straightforward way of doing
this?
--
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/