Re: hello: new URI-scheme plugin + comment age threshold patch

Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]> Sun, 27 Jan 2008 12:14:15 -0800 (PST)
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
thanks for the contributions!

On Sun, 27 Jan 2008, Jon Dowland wrote:

> I also want permalinks for my posts but I'm not too attached to the
> categories, so I've written a plugin which lets me have date-based
> permalinks (/YYYY/MM/DD/post-name). The current state of this is attached.

sure, understandable. there are a number of existing plugins that do similar 
things, pycalendar in particular. does that one not do what you want? see:

http://pyblosxom.svn.sourceforge.net/viewvc/pyblosxom/trunk/contrib/plugins/calendar/pycalendar.py?revision=944&view=markup

we've been thinking about this a fair amount for 2.0. it's a little trickier 
than it seems at first. blake winton has written up the issues and a proposed 
design, below. feel free to check that out and contribute:

http://pyblosxom.sourceforge.net/wiki/index.php/Archive_access_specification


> I'm thinking about comments support now and one thing I want is to stop
> comments on old posts. I've made a first stab at patching comments.py as
> supplied in contrib-1.3.3 to support an age threshold option (also
> attached).

cool, thanks! this makes sense. it should be a comment spam plugin that 
implements the cb_reject() callback, though, not a direct patch to 
comments.py. see these examples:

http://pyblosxom.svn.sourceforge.net/viewvc/pyblosxom/trunk/contrib/plugins/comments/plugins/check_javascript.py?view=markup

http://pyblosxom.svn.sourceforge.net/viewvc/pyblosxom/trunk/contrib/plugins/comments/plugins/akismetcomments.py?view=markup

-Ryan

--
http://snarfed.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/