Re: hardcoding mtimes for stories in their metadata section

seanh <[email protected]> Mon, 1 Nov 2010 19:49:23 +0000
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <20101101194923.GG10863@kisimul>
On Mon, Nov 01, 2010 at 12:13:26PM +0100, Dieter Plaetinck wrote:
> Hi all,
> is it possible to hardcode the mtime for a story in its metadata
> section?
> I.e. something like:
> 
> $ cat entries/post.txt
> Title of the post
> # mtime 2010-10-30 12:00:00
> hello, (..)


My metadate plugin does exactly that:

http://github.com/seanh/PyBlosxom-metadate

I did ask for it to be put in the plugin registry ages ago. Looking at
the code now, I do wonder if there is a shorter way to implement it,
without all that code for parsing entry files (which obviously
duplicates code that exists somewhere in pyblosxom itself).

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev