|
From: will <wi...@bl...> - 2003-01-27 14:56:39
|
On Mon, 27 Jan 2003, Wari Wahab wrote: > > In regards to ignoring things globally, I would think that there are a > > series of directories (and files) that would want to be ignored by > > everything--regardless of the template. So then maybe we shoudl add > > something like this to the ini file: > > ignore = CVS *.tmp > > and then tools.Walk would naturally never return those kinds of files. > > You know, the more I see tools.Walk, the more I agree to myself that we > shouldn't use it. A better way is to have an entry object of some sort, > pass it some parameters when we instantiate it, and it fills itself up > with entry dicts and have methods like getBody or something so that > plugins can use it, the entry object should also probably know about > it's 'neighbours' like the comments for example. I don't know how that > can happen though. Right now, plugins can't do anything with the > contents. This means changing pyblosxom's architecture, and related > plugins. I need to think about how to get this done. Actually, that bit about plugins can't do anything with the contents--that's not true. Before anything gets printed out, it goes through an executeTransform call in printTemplate. So every plugin can adjust the contents of a given entry if it registers with the parseitem callback chain. That's what I implemented when I did the pyfortune plugin. I think you had some issues with it, but it hasn't been removed yet. /will |