Re: A simple question about ordering of posts
Chris G <[email protected]> Sun, 31 Jan 2010 10:33:23 +0000
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <20100131103323.GC3466@chris> |
On Sun, Jan 31, 2010 at 10:09:54AM +0000, Chris G wrote:
> I know it's probably totally back to front for a blog but how easy
> would it be to get pyblosxom to display posts in increasing date
> order? Is the ordering set at just one place in the code? I'm quite
> happy to just patch my installed pyblosxom code as I realise this
> won't be a common requirement.
>
> For what it's worth I want to create a [not]blog where the story
> template will just display the date and title so one sees just a list
> of entries - in increasing date order.
>
Taking to myself - sign of madness - but still.....
Is this the relevant bit, from pyblosxom.py :-
entrylist = [(e._mtime, e) for e in entrylist]
entrylist.sort()
entrylist.reverse()
entrylist = [e[1] for e in entrylist]
If I take the entrylist.reverse() will I get what I want, with no
serious untoward consequences?
--
Chris Green
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com