🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #155834

Re: [xpn] : Python-Based News Reader

#155834
From: Nemesis
Date: Sat, 18 Sep 2004 08:56
55 lines
3262 bytes
Mentre io pensavo ad una intro simpatica "Cousin Stanley" scriveva:

>
> Cousin Nemesis ....
>   
>   Sorry for the delay but it took me a couple of days
>   to figure out how I might better explain the confusion
>   I have with the date sorts in xpn .... 

LOL :-)
   
>   In xpn when a group is first selected and the list of headers
>   is presented, they seem to be in chronological order from oldest
>   to newest .... 
>   
>   However, if the header list is re-sorted
>   by clicking on the  Date  label in the header pane,
>   the list no longer seems to be in chronological order,
>   e.g.  the months are mixed up .... 

OK, you are right, I've just checked, and the sorting is not working.
I've to look for the reason.


>   However, common sort algorithms don't adapt quite as easily
>   as a human might and will not render a list of dates 
>   into  *chronological order*  unless presented with data
>   that is pre-formatted in just the right manner .... 
[cut]

You explained the problem very well, however I solved the problem. When
I introduced the Date sorting, in order to avoid such problems like
those you explained I decided to convert every date in "unix time", i.e.
in seconds from a fixed time (on *nix the starting time is 1/1/1970). In
this way I have a single absolute number representing the date, and I
can perform a sort quickly.
I written the code, changed the methods and so on ... but I forgot to
update the line that tells to TreeView wich value it has to use in order
to sort using the dates ^__^;;

If you want to try by yourself open the file xpn_src/Thread_Pane.py
go to the line number 137 and change _id(3) in _id(6)
And now XPN should sort the date correctly :-)
   
>   Hopefully, this better explains that I don't think
>   all of my confusion is totally cultural ....

Yes, thank you very much.

-- 
Early to bed, early to rise makes people suspicious.
 
 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
Technical Details
Message-ID: <b1tgic.d12.ln@orion.homeinvalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
References: <2qkds0FvtaokU1@uni-berlin.de> <v5n4ic.0v1.ln@orion.homeinvalid> <2qoq5fF1138c3U1@uni-berlin.de> <i2h7ic.612.ln@orion.homeinvalid> <2r1cmhF14k7fuU1@uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <b1tgic.d12.ln@orion.homeinvalid>
Subject: Re: [xpn] : Python-Based News Reader
Date: Sat, 18 Sep 2004 08:56:44 GMT
From: Nemesis <nemesis@nowhere.invalid>
References: <2qkds0FvtaokU1@uni-berlin.de> <v5n4ic.0v1.ln@orion.homeinvalid> <2qoq5fF1138c3U1@uni-berlin.de> <i2h7ic.612.ln@orion.homeinvalid> <2r1cmhF14k7fuU1@uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: XPN/0.3.1 (All Good Things...)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Lines: 55
NNTP-Posting-Host: 151.26.60.95
X-Complaints-To: abuse@libero.it
X-Trace: twister1.libero.it 1095497804 151.26.60.95 (Sat,
NNTP-Posting-Date: Sat, 18 Sep 2004 10:56:44 MET DST
Organization: [Infostrada]