gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] Programming gnumed for ADHD


From: David Guest
Subject: [Gnumed-devel] Programming gnumed for ADHD
Date: Fri, 09 Apr 2004 08:09:55 +1000
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Karsten / Ian / Guys / Liz

I have had a niggling thought about gnumed development in the last few
days. I am probably the least qualified person on this list to run
with it but, as we say in Australia, "bugger it", so here goes.

Like most on this list I have zero time and struggle to keep up with
the mailing list let alone spend a lot of time in CVS. I am also not
much of a coder. Recently on OpenHealth, Tim Churches posted a
critique of Adrian Midgley's python snippet which I found illuminating
(http://www.mail-archive.com/address@hidden/msg10898.html)
and has spurred me to return to paddling around in python.

I also have been hanging out on the BitTorrent lists in the last month
or two. As most will know, BitTorrent is a swarming file sharing
program written in python. The mailing list is the venue for the usual
arguments about direction and general development. However, Bram
Cohen, the lead developer, also includes his python CVS diffs with the
explanatory accompanying log message. (e.g. see below)

I wondered if doing the same on gnumed would be helpful. For those of
us with short attention spans, snippets like this have a way of
refocussing the mind. I also wondered if it would make the documenters
job easier.

Anywho, just a passing thought.

David


- ----------------------------------------------------------------------

Update of /cvsroot/bittorrent/BitTorrent/BitTorrent
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30007/BitTorrent

Modified Files:
~    track.py
Log Message:
fixed bug where if you resumed a tracker on a dstate file which
included a torrent which didn't get a single request before
expire_downloaders got called it would not expire anything.


Index: track.py
===================================================================
RCS file: /cvsroot/bittorrent/BitTorrent/BitTorrent/track.py,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** track.py    14 Mar 2004 01:16:44 -0000    1.91
- --- track.py    20 Mar 2004 09:01:12 -0000    1.92
***************
*** 453,457 ****
~              for myid, t in self.times[x].items():
~                  if t < self.prevtime:
!                     if self.becache1[x].has_key(myid):
~                          del self.becache1[x][myid]
~                          del self.becache2[x][myid]
- --- 453,457 ----
~              for myid, t in self.times[x].items():
~                  if t < self.prevtime:
!                     if self.becache1.get(x, {}).has_key(myid):
~                          del self.becache1[x][myid]
~                          del self.becache2[x][myid]



- --
PGP public key 0x24606D9C at pgp.mit.edu
56D7 3608 6D73 0E11 064E  79C8 AC8E 6CAE 2460 6D9C


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAdc2zrI5sriRgbZwRAkwgAJ47cZlL335zqVo6j/DDCQHHxk3e8ACdEkWM
P4uHmBL3uuNiF01j+Nq3BsM=
=iG9G
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]