[Debtorrent-commits] r82 - in /debtorrent/branches/http-listen/DebTorrent: BT1/HTTPDownloader.py BT1/track.py ConnChoice.py download_bt1.py

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Sat Jun 2 05:45:31 UTC 2007


Author: camrdale-guest
Date: Sat Jun  2 05:45:31 2007
New Revision: 82

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=82
Log:
Fix some problems with the documentation.

Modified:
    debtorrent/branches/http-listen/DebTorrent/BT1/HTTPDownloader.py
    debtorrent/branches/http-listen/DebTorrent/BT1/track.py
    debtorrent/branches/http-listen/DebTorrent/ConnChoice.py
    debtorrent/branches/http-listen/DebTorrent/download_bt1.py

Modified: debtorrent/branches/http-listen/DebTorrent/BT1/HTTPDownloader.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/HTTPDownloader.py?rev=82&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/HTTPDownloader.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/HTTPDownloader.py Sat Jun  2 05:45:31 2007
@@ -269,7 +269,7 @@
         Update the rate measures, pass the data to the storage, mark the piece
         as complete.
         
-        @rtype: C[boolean}
+        @rtype: C{boolean}
         @return: whether the data was good
         
         """

Modified: debtorrent/branches/http-listen/DebTorrent/BT1/track.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/track.py?rev=82&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/track.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/track.py Sat Jun  2 05:45:31 2007
@@ -6,7 +6,7 @@
 
 """Tools to track a download swarm.
 
- at type defaults: C{list} of (C[string}, C{unknown}, C{string})
+ at type defaults: C{list} of (C{string}, C{unknown}, C{string})
 @var defaults: the parameter names, default values, and descriptions
 @type alas: C{string}
 @var alas: the message to send when the data is not found
@@ -285,7 +285,7 @@
         directory or file, and the lists of allowed and banned IPs
     @type favicon: C{string}
     @ivar favicon: file containing x-icon data
-    @type rawserver: L{DebTorrent.RawServer}
+    @type rawserver: L{DebTorrent.RawServer.RawServer}
     @ivar rawserver: the server to use for scheduling
     @type cached: unknown
     @ivar cached: unknown
@@ -312,11 +312,12 @@
     @ivar downloads: unknown
     @type completed: unknown
     @ivar completed: unknown
-    @type becache: C{dictionary}
-    @ivar becache: keys are the infohashes, values are the sets of peers.
+    @type becache: C{list} of C{list} of C{dictionary}
+    @ivar becache: keys are the infohashes, values are the cached peer data.
+    
         peer set format::
             [[l0, s0], [l1, s1], ...]
-                l,s   = lists of leechers and seeders
+                l,s   = dictionaries of leechers and seeders (by peer ID)
                 l0,s0 = compact representation, don't require crypto
                 l1,s1 = compact representation, support crypto
                 l2,s2 = [compact representation, crypto_flag], for all peers
@@ -381,7 +382,7 @@
         
         @type config: C{dictionary}
         @param config: the configuration parameters
-        @type rawserver: L{DebTorrent.RawServer}
+        @type rawserver: L{DebTorrent.RawServer.RawServer}
         @param rawserver: the server to use for scheduling
         
         """

Modified: debtorrent/branches/http-listen/DebTorrent/ConnChoice.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/ConnChoice.py?rev=82&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/ConnChoice.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/ConnChoice.py Sat Jun  2 05:45:31 2007
@@ -6,7 +6,7 @@
 """Sets the connection choices that are available.
 
 @type connChoices: C{list} of C{dictionary}
- at var connChoiceList: Details for each type of connection. Includes limits
+ at var connChoices: Details for each type of connection. Includes limits
     for each type on the upload rate and number of connections.
 @type connChoiceList: C{list} of C{string}
 @var connChoiceList: the names of the connections that are available

Modified: debtorrent/branches/http-listen/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/download_bt1.py?rev=82&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/download_bt1.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/download_bt1.py Sat Jun  2 05:45:31 2007
@@ -551,7 +551,7 @@
     @ivar infohash: the hash of the info from the response data
     @type myid: C{string}
     @ivar myid: the peer ID to use
-    @type rawserver: L{Rawserver.Rawserver}
+    @type rawserver: L{RawServer.RawServer}
     @ivar rawserver: the server controlling the program
     @type port: C{int}
     @ivar port: the port being listened to
@@ -662,7 +662,7 @@
         @param infohash: the hash of the info from the response data
         @type id: C{string}
         @param id: the peer ID to use
-        @type rawserver: L{Rawserver.Rawserver}
+        @type rawserver: L{RawServer.RawServer}
         @param rawserver: the server controlling the program
         @type port: C{int}
         @param port: the port being listened to




More information about the Debtorrent-commits mailing list