Re: cb_prepare plugin question
Chris G <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 06, 2007 at 09:29:55AM -0400, Will Guaraldi wrote: > On 9/6/07, Chris G <[email protected]> wrote: > > > > 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? > > Yes, that's pretty much how it works. data["entry_list"] holds a list > of entries. > > I have a bunch of plugins that create entries. Maybe these would be > useful to look at: > Further (hopefully last) question, if I have a 'ready made' file that I want to use as the thing that pyblosxom will display I can presumably do something like:- entrylist = [] e = FileEntry(request, ourfile, data['root_datadir']) entrylist.append((e._mtime, e)) data["entry_list"] = entrylist ... and pyblosxom will display the file specified by "ourfile". You might well ask why don't I simply put "ourfile" in the right place and get pyblosxom to sort it out from scratch - you might well be right! I'll go back and think about that! -- 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/