Re: cb_prepare plugin question

Chris G <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Wed, Sep 05, 2007 at 05:40:24PM -0400, Will Guaraldi wrote:
> On 9/5/07, Chris G <[email protected]> wrote:
> > If I wanted to create a page on the fly in cb_prepare what would
> > actually be necessary to make it work?
> >
> > E.g. if data["entry_list"] is empty what is the minimum one would
> > need to put into data["entry_list"] and anywhere else to get the
> > rendered to display something?
> >
> data["entry_list"] needs to be a list of entry items.  You could
> create a FileEntry, or you could extend EntryBase and create your own
> Entry class.
> 
> I thought we had this documented somewhere, but I'm not seeing where
> it would be.
> 
> See if the documentation for EntryBase and FileEntry is what you need.
>  If not, poke me and I'll drum up some more.
> 
I think that should get me started (even if only to decide that what I
want to do is too much like hard work!).  Presumably data["entry_list"]
in the simplest case can have just one item so the minimum I need to
do is to create a single FileEntry. If I feed that into the renderer
pyblosxom will display the page described by that FileEntry - yes?

-- 
Chris Green

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
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.