Author: johnnyg

Revision: 6092

Log:
        Fix typo. Remove obselete function.

Diff:
Modified: branches/1.2_RC/deluge/scripts/create_plugin.py
===================================================================
--- branches/1.2_RC/deluge/scripts/create_plugin.py     2010-01-12 17:21:00 UTC 
(rev 6091)
+++ branches/1.2_RC/deluge/scripts/create_plugin.py     2010-01-14 12:32:04 UTC 
(rev 6092)
@@ -289,7 +289,7 @@
     The client-side javascript code for the %(name)s plugin.
 
 Copyright:
-    (C) %(author_name)s 2009 <[email protected]>
+    (C) %(author_name)s 2009 <%(author_email)s>
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 3, or (at your option)

Modified: branches/1.2_RC/deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- branches/1.2_RC/deluge/ui/gtkui/addtorrentdialog.py 2010-01-12 17:21:00 UTC 
(rev 6091)
+++ branches/1.2_RC/deluge/ui/gtkui/addtorrentdialog.py 2010-01-14 12:32:04 UTC 
(rev 6092)
@@ -653,15 +653,6 @@
         d.addCallback(on_download_success)
         d.addErrback(on_download_fail)
 
-    def _download_from_url(self, url):
-        import urllib
-        import tempfile
-        import os.path
-        tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1])
-        filename, headers = urllib.urlretrieve(url, tmp_file)
-        log.debug("filename: %s", filename)
-        self.add_from_files([filename])
-
     def _on_button_hash_clicked(self, widget):
         log.debug("_on_button_hash_clicked")
         dialog = self.glade.get_widget("dialog_infohash")

Modified: trunk/deluge/scripts/create_plugin.py
===================================================================
--- trunk/deluge/scripts/create_plugin.py       2010-01-12 17:21:00 UTC (rev 
6091)
+++ trunk/deluge/scripts/create_plugin.py       2010-01-14 12:32:04 UTC (rev 
6092)
@@ -289,7 +289,7 @@
     The client-side javascript code for the %(name)s plugin.
 
 Copyright:
-    (C) %(author_name)s 2009 <[email protected]>
+    (C) %(author_name)s 2009 <%(author_email)s>
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 3, or (at your option)

Modified: trunk/deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- trunk/deluge/ui/gtkui/addtorrentdialog.py   2010-01-12 17:21:00 UTC (rev 
6091)
+++ trunk/deluge/ui/gtkui/addtorrentdialog.py   2010-01-14 12:32:04 UTC (rev 
6092)
@@ -653,15 +653,6 @@
         d.addCallback(on_download_success)
         d.addErrback(on_download_fail)
 
-    def _download_from_url(self, url):
-        import urllib
-        import tempfile
-        import os.path
-        tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1])
-        filename, headers = urllib.urlretrieve(url, tmp_file)
-        log.debug("filename: %s", filename)
-        self.add_from_files([filename])
-
     def _on_button_hash_clicked(self, widget):
         log.debug("_on_button_hash_clicked")
         dialog = self.glade.get_widget("dialog_infohash")


-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to