Re: Some plugins and stuff
Jesse Lawrence <lawrence_jesse-FFYn/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
--- Wari Wahab <[email protected]> wrote: > On Wed, 2004-01-07 at 00:27, Jesse Lawrence wrote: > > Hello all, > > I've been busy coding some different Pyblosxom > > goodies. I wanted to show them to everyone before > I > > put them in the registry. > > Heh, cool > > > acronym.py is a plugin which replaces acronyms > with > > <acronym title="definition">acronym</acronym>. It > > reads the defined acronyms and their definitions > from > > a file in your datadir. > > > http://mdev.sourceforge.net/jesse/pyblosxom/acronym.py > > Nice, I've always wanted to do this but too lazy to > implement. Anyway, > this should be done as a postformat plugin instead > of a preformat one. > Then every preformatter plugin can benefit from it, > IMO. You can see a > few examples of a postformat plugin in the contrib. > > > m3u.py is an entryparser which renders m3u > playlists > > as an html list. Very handy when you want to > display > > a list of songs. > > http://mdev.sourceforge.net/jesse/pyblosxom/m3u.py > > Simple and effective I guess. > > > atom.tar.gz is a plugin (atom.py) and collection > of > > atom flavour files for producing Atom 0.3 feeds. > I'd > > like very much to make this plugin as good as > > possible, anyone who has suggestions, feel free to > > contribute. > > > http://mdev.sourceforge.net/jesse/pyblosxom/atom.tar.gz > > > > entrybsddb.py is a caching mechanism. I'm not > sure of > > it's worth, and it's probably slower than > entrypickle > > or entryshelve. I just wanted to see what I could > > come up with. > > > http://mdev.sourceforge.net/jesse/pyblosxom/entrybsddb.py > > >From your source: > # So if it's not atom, we're going to return > None. > # Is there a better way of doing this? > if not form.has_key('flav') and not > path_info.endswith('.atom'): > return None > > if not(form.get('flav') is 'atom' or > path_info.endswith('.atom')): > return None # Warning, logic not tested, as usual > > Clear, concise, and most importantly, in english :), > actually, this is > demorgan's law if I'm not wrong, that is: > _ _ _____ > A x B === A + B > > > I'd like peoples input and thoughts on these > plugins. > > Please feel free to tell me if they suck, or if > and > > how they can be made better. > > Don't think they sucked :P > > ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click