Re: line count plugin
emf <i-IT4L295iNO/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Wari Wahab wrote: > 1. Plugins that can read entries before caching, so metadata produced by > plugins are not called on demand anymore when cached. Your proposed > plugin fits this description, why count again when the resulting > number is going to stay the same?) > > 2. Entry reading plugins that may not what data to be cached, therefore > calculated every time. Plugins that does this would include comment > counts, google api queries (sorry, that's a bad one), but yeah you > get the idea. This sounds neat. > So, for now, what are your options? You could wait for 0.7 or if this > is important (for your site design, etc), you could either hack 0.6 or > get your plugin to read the files itself, getting values of the filename > from the entryList list of dicts. I ended up making a preformatter that did what I want. It's not ideal, because the wc info gets injected directly into the story, but it will hold me for now. The plugin have to be done in such a > way that when $wc is called, a counter increases to know which entry you > are looking at. You can look at the dotComments plugin code to see how > this is done: > http://roughingit.subtlehints.net/code/pyblosxom-dotComments.tar.gz I think what I need to do is pull the CVS code; it seems clear that the new version is very different from the prior. ~mindlace ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf