from twisted.python import usage, log
from twisted.web2 import channel
-from apt_dht import AptDHT
-from apt_dht_conf import config, version
+from apt_dht.apt_dht import AptDHT
+from apt_dht.apt_dht_conf import config, version
config_file = []
else:
return None, ()
-# if len(name) > 1:
- return FileDownloader(self.directory, self.manager), segments[0:]
-# else:
-# return self, ()
+ if len(name) > 1:
+ return FileDownloader(self.directory, self.manager), segments[0:]
+ else:
+ return self, ()
if __name__ == '__builtin__':
# Running from twistd -y
200,
{'content-type': http_headers.MimeType('text', 'html')},
"""<html><body>
- <h2>Statistics</h2>
+ <h2>P2P Download</h2>
<p>TODO: eventually this will cause a P2P lookup.</body></html>""")