Re: interactions between plugins and static rendering?
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
I'm pretty sure static rendering calls cb_start and cb_end, so I'm a bit puzzled by Michael's assertion. It'd be interesting to know what versions of things he's using and why he thinks that cb_start isn't getting called. I haven't looked at the code in a while, but I was pretty sure I had both made sure it did call cb_start and tested it. But that was probably a year ago so my memory is a bit fuzzy. /will On Mon, 20 Nov 2006, Ryan Barrett wrote: > > hi all! i've gotten a report (below) of plugins and static rendering not > playing nice together. > > i looked through the code, and everything looks ok. PyBlosxom.run() > calls cb_start and cb_end correctly when static=True, and the code in > PyBlosxom.runStaticRenderer() and tools.render_url() look right. still, > i figured i'd ping you all just in case anyone knew something. > > -Ryan > > -- > http://snarfed.org/ > > ---------- Forwarded message ---------- > Date: Sun, 19 Nov 2006 10:28:43 +0100 > From: Michael Welle <welle-+w6djL/[email protected]> > To: public-6sb6M7qyT/[email protected] > Subject: Plugin hardcodedates.py > > Hi Ryan, > > I discovered some problems with hardcodedates.py and static > rendering. If static rendering is requested the callback cb_start (and > maybe others) is not called. That implies that some global attributes > in hardcodedates are nil. An ad hoc solution may be to call something > like 'if (!all_timestamps): cb_start' in cb_filestat. But I'm not very > familiar with the architecture of pyblosxom. There may be better > solutions. > > Thank you > Michael > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV