|
From: will kahn-g. <wi...@bl...> - 2010-02-02 14:42:33
|
On 02/02/2010 05:20 AM, chombee wrote: > > So it looks like to change the template for every entry that is about to > be rendered you'd have to iterate over entries, something like: > > def cb_prepare(args): > request = args['request'] > data = request.get_data() > if data['bl_type'] == 'dir': > entrylist = data['entry_list'] > for entry in entrylist: > entry['template_name'] = 'story-index' > > (Assuming the entries come as dictionaries like that, but you get the > idea.) Entries are not necessarily dicts, but they are dict-like! See Pyblosxom.entries.base and Pyblosxom.entries.fileentry. /will |