[Tutor] globbing and sorting and dating, oh my!
Daniel Ehrenberg
littledanehren at yahoo.com
Wed Feb 4 15:13:10 EST 2004
Kirk Bailey wrote:
> Ok, I want to write a WHAT'S NEW function for
> wikinehesa the
> wikiwikiweb system I wrote in python. This is
> something to sort
> through available pages, organize/sort according to
> date, chop off
> that portion of the list which is older than FOO
> days old, and concert
> the date to something mere normals will comprehend,
> then print each
> item as a line in a web page- as a link of course.
> NATURALLY I grok
> the html part. converting data data to calendar is a
> little odd to me,
> and I am considering several ways to organize the
> data- and as arrays
> are not inherent to python, I am going to use
> several parallel lists
> instead. I throw open the front door to discussion,
> suggestions, ON
> TOPIC BAUDY HUMOR, and anything else that fits in
> through the door.
>
> If the dates are a list, and I sort the list, the
> corresponding list
> of filenames no longer corresponds. THIS is an issue
> which looms large
> in my army surplus used brain.
> --
>
>
> end
>
>
> think http://www.tinylist.org/ - $FREE$
> software for liberty
> +-------+ http://www.pinellasintergroupsociety.org/
> - In Her Service
> | BOX | http://www.listville.net/ - $FREE$ list
> hosting services
> +-------+ http://www.howlermonkey.net/ - $FREE$
> email service
> kniht http://www.sacredelectron.org/ - My
> personal SCREED pit
> (C)2004 Kirk D Bailey, all rights
> reserved- but ask!
Try zipping the lists together and then sorting it. Be
sure that the one you want to sort by is first.
Daniel Ehrenberg
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
More information about the Tutor
mailing list