Re: contrib plugins pack, todo list, blah blah blah

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On Tue, 9 May 2006, Carol Spears wrote:
>
> actually, my biggest problem with this web log maker is that i think i 
> have consistently misspelled it on my web site.
> 
> it might be nice if you could make a $app_name to handle this seemingly 
> unavoidable problem i am unable to stop having.

The problem here is that we (PyBlosxom main code) can't replace variables 
inside entry bodies--only in templates.  In order to manipulate the entry 
body, one needs to write a plugin that implements cb_story callback.

I started writing a silly plugin to convert $app_name to PyBlosxom, but 
then decided that to be backwards compatible with your existing content, 
it'd be better if it caught as many existing mispelled instances and fixed 
those, too.

So then I wrote the new wbgpyblfilter plugin:

    http://bluesock.org/~willg/cgi-bin/pybltrac.cgi/wiki/wbgpyblfilter

It's super.  Fixed mispellings in my blog very nicely.  It's also the 
first plugin I've written that has some unit testing code in it.  Yay for 
unit testing!

Hope that helps--

/will


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.