Re: fortune-like pyblosxom plugin?
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
In general, doing dynamically generated entries like that will make people
who read your blog through a a feed irritated. I would instead stick
dynamically generated text in your head or foot templates.
I had a plugin that did exactly what you're mentioning, but then deleted
it after I discovered the issues involved. It was something along these
lines:
%<------------------------------------
import commands, time
from Pyblosxom.entries.base import generate_entry
def cb_prepare(args):
request = args["request"]
data = request.getData()
entry_list = data["entry_list"]
output = commands.getstdout("/usr/bin/fortune")[1]
entry = generate_entry(req, {}, output, time.localtime()
entry_list.insert(0, entry)
%<------------------------------------
/will
On Thu, 20 May 2004, gabor wrote:
>
> i have a textfile with random quotes from different people (like a
> fortune file)...
>
> i'd like to have one randomly taken from it and displayed as the first
> entry in my blog...is that possible somehow? are there any plugins for
> that?
-------------------------------------------------------
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