Re: Latest CVS on windows
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Wari Wahab wrote: > Yup, anyway, here's the updated plugin :) It covers entry, conf and > data. It's now a cb_prepare() and a cb_story() plugin now. Hope you > guys learned something from this. BTW, as an excercise, the plugin I gave out does contain bugs :) For example, entry will always contain data even when you use dospath2uri() on the footer, and this data could be stale. You can squash this potential bug by just emptying the entry dict after you get the value you want, and then return the value. Also to speed up processing, you could do the get_registry, getData and getConfiguration /after/ doing an entry.has_key(var). That way, you won't call those functions redundantly, every time on a story processing. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01