Re: Setting depth with the flav_config plugin
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 3 Dec 2004, Stuart Langridge wrote:
>
> I've been fiddling with the flav_config plugin in order to set specific
> config variables in one directory (and subdirs) but not others.
> Specifically, I'd like to set the recurse depth to 1 in this directory
> (/photos) so pyblosxom doesn't show all the photos in all subdirs. The
> documentation in the plugin implies that this ought to work:
>
> Thus a sample configuration file might look like this:
> py = {}
> py["depth"] = 0
> py["num_entries"] = 10
>
> but limiting "depth" doesn't seem to work. I think that this is because
> flav_config is called in cb_prepare, and at that point Pyblosxom has
> *already* recursed down the list of directories (using the default "depth"
> setting) to get a list of entries (and thus setting it after that happens has
> no effect). So, I have a few points:
>
> 1. Am I right in my assumption for why it doesn't work?
> 2. It is really annoying that the example in there is actually bogus :)
> 3. Is there anything I can do to limit depth on a directory-by-directory
> basis? I tried changing flav_config to use an earlier callback (cb_start) but
> at that point there doesn't appear to be enough stuff set up to actually do
> it (it dies because "form" is empty).
Hey Sil,
I don't know anything about the flav_config plugin. You should probably
get in touch with the author of the plugin and ask him/her. You should
also let him/her know what version of PyBlosxom you're using.
If you don't get any response, I can toss it on my queue of things to look
into.
/will
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/