Re: An HTML Entry Parser
Robert Leftwich <robert-NuYOPsrVWqAk+I/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
At 05:27 AM 11/09/2003, you wrote:
>Wari, based on what you sent me, these few tweaks do the trick for me in
>terms of providing the entryData. However, the effect on my main blog page
>is rather disastrous. I suspect that the parser is finding the
>{comment,foot,head.html} files and trying to render them as blog entries?
>(I always thought it was odd that those "config" files existed in the
>content directory). Or are the excepted somewhere?
I had a similar problem when adding an html entry parser, so I added the
ability to specify the flavour directory in the config file. To accommodate
this I made the following change to Pyblosxom/renderers/blosxom.py (around
line 73):
flavourlist = tools.Walk(data['root_datadir'], 1, pattern)
if not flavourlist:
flavour_dir = config.get('flavourdir', '') # added
if not flavour_dir : # added
flavour_dir = config['datadir'] # added
flavourlist = tools.Walk(flavour_dir, 1, pattern) # modified
to use flavour_dir instead of config['datadir']
which reads the config file looking for py['flavourdir'] = "a/flavour/dir
and eliminates the problem you are seeing.
Robert
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf