Re: Nested Flavour question

"Nathan R. Yergler" <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Will --

Attached is a diff to renderers/blosxom.py which makes it walk up the 
path from the sub-category (however deep it may be) to the root_datadir 
when looking for a flavour.  Hope this helps; thanks for all your help.

Nathan


will guaraldi wrote:

>Oh...  I could add support for that as well.  Right now pyblosxom only
>check the directory and then the datadir.  Pyblosxom doesn't check the
>directories in between.
>
>I'll try to add it this weekend.
>
>/will
>
>
>On Fri, 30 Apr 2004, Nathan R. Yergler wrote:
>  
>
>>OK, here's a related question.  If I define a new flavour in a category,
>>shouldn't any sub-categories also pick it up?  I'm running into the same
>>problem I had before, except now it's like
>>
>>http://.../foo/bar.html
>>
>>works, but
>>
>>http://.../foo/blah/bar.html
>>
>>complains that it doesn't know about the flavour when .html (in this
>>example) is defined in the foo category.  If I copy the definition into
>>the blah sub-category, everything works.  Thoughts?
>>
>>Nathan
>>    
>>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g
>Get certified on the hottest thing ever to hit the market... Oracle 10g. 
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>_______________________________________________
>pyblosxom-users mailing list
>pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>
>
>  
>
blosxom.py.diff (text/x-patch, 373 B)
77c77,83
<         template_files = tools.Walk(self._request, dirname, 1, pattern)
---
>         template_files = None
>         while (not template_files ) and (dirname != config['datadir']):
>               template_files = tools.Walk(self._request, dirname, 1, pattern)
> 
>               if not template_files:
>                  dirname = os.path.split(dirname)[0]
>
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.