Re: glossary preformater

Wari Wahab <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Lee Joramo wrote:

> I have created a preformatter that does glossary substitutions 
> similar  to "shortcuts" in Radio Userland. 

Hey that's cool, the developers have set up a plugin registry on the 
wiki site, I hope you could package up your plugin with instructions 
(maybe a page on your website would be great) and 'register' it in the 
registry. I'll make it public soon it my blog. The registry is located @ 
http://wiki.subtlehints.net/moin/PyBlosxom_2fPyBlosxomPluginRegistry and 
editable by anyone.

> Question: in glossary.py, I use a full file spec for glossary.txt. Is  
> there a better way to do this? Where would be the best location to  
> store the glossary.txt file in pyblosxom's directory?

In the future I might make a standard variable in config.py for plugins 
to either dump stuff or read from a particular directory if defined. 
Also reading the glossary file, if you find it slow on your system, you 
could increase the speed by making glossaries a python dict, or actually 
compile your glossary file into a pickle.

> I also don't  quite understand the preformatter mechanism. Can there 
> only be one  formatter specified in the pyblosxom configuration? I 
> wrote this code   while offline, so I suppose if I was online, a quick 
> search would  answer this question.... 

There's only one preformatter running on a particular entry at one time. 
If you did not configure py['parser'] in config.py, then the default 
would always be the plain preformatter (which works like blosxom do).



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
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.