[apt-proxy-devel] r584 - people/halls/rework/apt_proxy
Chris Halls
halls at costa.debian.org
Thu Sep 15 12:32:27 UTC 2005
Author: halls
Date: Thu Sep 15 12:32:26 2005
New Revision: 584
Modified:
people/halls/rework/apt_proxy/fetchers.py
Log:
Remove old apDataReceived
Modified: people/halls/rework/apt_proxy/fetchers.py
==============================================================================
--- people/halls/rework/apt_proxy/fetchers.py (original)
+++ people/halls/rework/apt_proxy/fetchers.py Thu Sep 15 12:32:26 2005
@@ -132,26 +132,6 @@
self.status_message = message
# TODO: notify cacheEntry?
- def apDataReceived(self, data):
- """
- Should be called from the subclasses when data is available for
- streaming.
-
- Keeps all transfered data in 'self.transfered' for requests which arrive
- later and to write it in the cache at the end.
-
- Note: self.length if != None is the amount of data pending to be
- received.
- """
- if self.length != None:
- self.transfered.append(data[:self.length])
- for req in self.requests:
- req.write(data[:self.length])
- else:
- self.transfered.append(data)
- for req in self.requests:
- req.write(data)
-
def apDataEnd(self, data, saveData=True):
"""
Called by subclasses when the data transfer is over.
More information about the apt-proxy-devel
mailing list