Re: Renderer plugins
Ross Burton <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <1107188022.28574.35.camel@localhost> |
On Mon, 2005-01-31 at 14:25 +0100, Steven Armstrong wrote: > As of my understanding the callback chain is as follows: > ... > def cb_start(args): pass > def cb_handle(args): pass > def cb_renderer(args): pass # here the renderer gets created > def cb_pathinfo(args): pass > ... > > So you should be fine if you rename your cb_start to cb_pathinfo. > I think ... Hm, still doesn't work. renderers/blosxom.py in render(), line 212 data['content-type'] = self.flavour['content_type'].strip() KeyError: 'content_type' It appears that I can't use the default renderer and just throw data into it, like the source says I can. :( > ps: I thought the content-type for rdf was application/rdf+xml, is it not? Yep, that's a typo in my code-refactoring when I was trying to find the bug... -- Ross Burton mail: [email protected] jabber: [email protected] www: http://www.burtonini.com./ PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl