Re: A wgbwiki.py clarification may be required

Chris G <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Mon, Jul 16, 2007 at 04:35:48PM -0400, Will Guaraldi wrote:
> On 7/16/07, Chris G <[email protected]> wrote:
> > I have just realised that the wgbwiki.py plugin requires that the
> > 'wiki' directory as specified by wikidir in the config.py file starts
> > with "/wiki".  Maybe this should be made more explicit in the
> > documentations.  And/or maybe it could be made configurable.
> 
> I'm not sure that's true.  The wikidr property is a directory on your
> disk.  The /wiki trigger is a url path_info thing.  The two aren't the
> same and there shouldn't be any overlap.
> 
Ah, I hadn't realised this, the URL must start with /wiki but the
directory on disk can be something else completely.

> At a minimum, it shouldn't be true.  The wikidr and the trigger should
> be fully independent of one another.  If that's not the case, let me
> know--I'll have to look into it.
> 
No, you're right, as I said I hadn't realised this.  I'll need to fix
my code somewhat to take account of this.

> 
> > I suppose if the code was clever it could actually use the first level
> > directory of the wikidir as the TRIGGER value.
> 
> Mmm....  I don't really want to code that.  If you want that kind of
> functionality, send me a patch and I'll toss it around.  Since I'm the
> one who maintains it and provides support, the fewer moving targets
> involved in configuration and behavior, the better off my life is.
> 
No, it's fine as it is, the only thing I *might* suggest is to make
the TRIGGER value a config.py variable so that one can set the 'start
of URL' to whatever one fancies.

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