Re: plugin/python question re: pyblosxom

Chris G <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Mon, Jul 09, 2007 at 05:29:07PM -0400, Will Guaraldi wrote:
> On 7/9/07, Chris G <[email protected]> wrote:
> > When running plugin code or some python code embedded in a page (using
> > <% code code code %> is there any way to find out where one is 'now'
> > as it were?
> >
> > I.e. if the code is being run while displaying a file:-
> >
> >     /wiki/info/software/mymods.txt
> >
> > what is the simplest way of getting the value /wiki/info/software into
> > a python variable and then using it?
> 
> Everything that's available in the request object is available in the
> code blocks.
> 
>    http://bluesock.org/~willg/cgi-bin/devtrac.cgi/wiki/wbgwiki
> 
OK, thanks, I'll experiment some further.

-- 
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.