Re: glossary preformater
Francois Granger <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <a05200f09ba86d31860a9@[192.168.1.20]> |
At 10:10 -0700 01/03/2003, in message Re: [pyblosxom-users] glossary
preformater, Lee Joramo wrote:
>>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.
>
>Wari, I am going to take your and Will's advice on improving
>performance and use a python dict for the glossary. I am a little
>concerned about doing this because it mixes frequently _user_ edited
>data into program code, but it makes sense from a performance point
>of view.
In the PythonCard project, they use pprint.pprint to create the file
and this to read it back:
def readAndEvalFile(filename):
f = open(filename)
txt = f.read().replace('\r\n','\n')
f.close()
return eval(txt)
HTH
I feel a need for your plug, I have been using Radio for some time.
And I have to solve an issue of publishing a bilingual Weblog. This
means having a tag for each lang in each post. Like in this one :
http://www.climbtothestars.org/
--
Hofstadter's Law :
It always takes longer than you expect, even when you take into
account Hofstadter's Law.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf