Setting depth with the flav_config plugin

Stuart Langridge <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
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).

sil


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