[or-cvs] r17936: {projects} Update to actually send the file. (projects/gettor)
ioerror at seul.org
ioerror at seul.org
Mon Jan 5 23:46:28 UTC 2009
Author: ioerror
Date: 2009-01-05 18:46:28 -0500 (Mon, 05 Jan 2009)
New Revision: 17936
Modified:
projects/gettor/gettor.py
projects/gettor/gettor_responses.py
Log:
Update to actually send the file.
Modified: projects/gettor/gettor.py
===================================================================
--- projects/gettor/gettor.py 2009-01-05 23:33:51 UTC (rev 17935)
+++ projects/gettor/gettor.py 2009-01-05 23:46:28 UTC (rev 17936)
@@ -154,7 +154,7 @@
package = rmail.getPackage()
if package != None:
log.info(_("Package: %s selected.") % str(package))
- resp.sendPackage(srcEmail, replyTo, packageList[package])
+ resp.sendPackage(srcEmail, replyTo, packageList[package], package)
else:
resp.sendPackageHelp(packageList, srcEmail, replyTo)
log.info(_("We issued some help about proper email formatting."))
Modified: projects/gettor/gettor_responses.py
===================================================================
--- projects/gettor/gettor_responses.py 2009-01-05 23:33:51 UTC (rev 17935)
+++ projects/gettor/gettor_responses.py 2009-01-05 23:46:28 UTC (rev 17936)
@@ -82,14 +82,14 @@
return status
- def sendPackage(self, source, destination, filelist):
+ def sendPackage(self, source, destination, filelist, package):
""" Send a message with an attachment to the user interacting with us """
self.setLang(self.mailLang)
message = _("""
Here's your requested software as a zip file. Please unzip the
package and verify the signature.
""")
- package = self.constructMessage(source, destination, filelist)
+ package = self.constructMessage(message, source, destination, filelist, package)
try:
status = self.sendMessage(package, source, destination)
except:
More information about the tor-commits
mailing list