This commit is contained in:
Marcos Pinto 2007-11-25 02:04:04 +00:00
parent 8730830470
commit 715e3ce463
65 changed files with 19275 additions and 21051 deletions

File diff suppressed because it is too large Load Diff

View File

@ -41,10 +41,10 @@ namespace error
system_category = ASIO_WIN_OR_POSIX(0, 0), system_category = ASIO_WIN_OR_POSIX(0, 0),
/// Error codes from NetDB functions. /// Error codes from NetDB functions.
netdb_category = ASIO_WIN_OR_POSIX(_system_category, 1), netdb_category = ASIO_WIN_OR_POSIX(system_category, 1),
/// Error codes from getaddrinfo. /// Error codes from getaddrinfo.
addrinfo_category = ASIO_WIN_OR_POSIX(_system_category, 2), addrinfo_category = ASIO_WIN_OR_POSIX(system_category, 2),
/// Miscellaneous error codes. /// Miscellaneous error codes.
misc_category = ASIO_WIN_OR_POSIX(3, 3), misc_category = ASIO_WIN_OR_POSIX(3, 3),

View File

@ -1,13 +1,18 @@
from __future__ import with_statement from __future__ import with_statement
import os import os
import re import re
template_dir = '~/prj/WebUi/templates/deluge' template_dirs = ['~/prj/WebUi/templates/deluge',
template_dir = os.path.expanduser(template_dir ) '~/prj/WebUi/templates/advanced']
template_dirs = [os.path.expanduser(template_dir ) for template_dir in template_dirs]
files = [os.path.join(template_dir,fname) files = []
for fname in os.listdir(template_dir) for template_dir in template_dirs:
if fname.endswith('.html')] files += [os.path.join(template_dir,fname)
for fname in os.listdir(template_dir)
if fname.endswith('.html')]
all_strings = [] all_strings = []
for filename in files: for filename in files:

View File

@ -1,5 +1,6 @@
_('# Of Files') _('# Of Files')
_('About') _('About')
_('Add')
_('Add Torrent') _('Add Torrent')
_('Add torrent') _('Add torrent')
_('Apply') _('Apply')
@ -13,6 +14,7 @@ _('Delete .torrent file')
_('Delete downloaded files.') _('Delete downloaded files.')
_('Details') _('Details')
_('Disable') _('Disable')
_('Down')
_('Down Speed') _('Down Speed')
_('Download') _('Download')
_('Downloaded') _('Downloaded')
@ -27,19 +29,20 @@ _('Next Announce')
_('Off') _('Off')
_('Password') _('Password')
_('Password is invalid,try again') _('Password is invalid,try again')
_('Pause')
_('Pause all') _('Pause all')
_('Peers') _('Peers')
_('Pieces') _('Pieces')
_('Progress') _('Progress')
_('Queue Down') _('Queue Down')
_('Queue Position')
_('Queue Up') _('Queue Up')
_('Queue pos:')
_('Ratio') _('Ratio')
_('Reannounce') _('Reannounce')
_('Refresh page every:') _('Refresh page every:')
_('Remove') _('Remove')
_('Remove %s ') _('Remove torrent')
_('Remove %s?') _('Resume')
_('Resume all') _('Resume all')
_('Seeders') _('Seeders')
_('Set') _('Set')
@ -47,11 +50,13 @@ _('Set Timeout')
_('Share Ratio') _('Share Ratio')
_('Size') _('Size')
_('Speed') _('Speed')
_('Start')
_('Submit') _('Submit')
_('Torrent list') _('Torrent list')
_('Total Size') _('Total Size')
_('Tracker') _('Tracker')
_('Tracker Status') _('Tracker Status')
_('Up')
_('Up Speed') _('Up Speed')
_('Upload') _('Upload')
_('Upload torrent') _('Upload torrent')

View File

@ -221,7 +221,7 @@ def get_torrent_status(torrent_id):
url = urlparse(status.tracker) url = urlparse(status.tracker)
if hasattr(url,'hostname'): if hasattr(url,'hostname'):
status.category = url.hostname status.category = url.hostname or 'unknown'
else: else:
status.category = 'No-tracker' status.category = 'No-tracker'
@ -265,7 +265,7 @@ def get_torrent_status(torrent_id):
return status return status
def get_categories(torrent_list): def get_categories(torrent_list):
trackers = [torrent['category'] for torrent in torrent_list] trackers = [(torrent['category'] or 'unknown') for torrent in torrent_list]
categories = {} categories = {}
for tracker in trackers: for tracker in trackers:
categories[tracker] = categories.get(tracker,0) + 1 categories[tracker] = categories.get(tracker,0) + 1

693
po/ar.po

File diff suppressed because it is too large Load Diff

661
po/ast.po

File diff suppressed because it is too large Load Diff

719
po/bg.po

File diff suppressed because it is too large Load Diff

617
po/bs.po

File diff suppressed because it is too large Load Diff

746
po/ca.po

File diff suppressed because it is too large Load Diff

703
po/cs.po

File diff suppressed because it is too large Load Diff

709
po/da.po

File diff suppressed because it is too large Load Diff

713
po/de.po

File diff suppressed because it is too large Load Diff

709
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

617
po/eo.po

File diff suppressed because it is too large Load Diff

717
po/es.po

File diff suppressed because it is too large Load Diff

713
po/et.po

File diff suppressed because it is too large Load Diff

653
po/eu.po

File diff suppressed because it is too large Load Diff

703
po/fi.po

File diff suppressed because it is too large Load Diff

739
po/fr.po

File diff suppressed because it is too large Load Diff

711
po/gl.po

File diff suppressed because it is too large Load Diff

695
po/he.po

File diff suppressed because it is too large Load Diff

617
po/hi.po

File diff suppressed because it is too large Load Diff

707
po/hr.po

File diff suppressed because it is too large Load Diff

698
po/hu.po

File diff suppressed because it is too large Load Diff

653
po/id.po

File diff suppressed because it is too large Load Diff

709
po/is.po

File diff suppressed because it is too large Load Diff

713
po/it.po

File diff suppressed because it is too large Load Diff

645
po/ja.po

File diff suppressed because it is too large Load Diff

707
po/ka.po

File diff suppressed because it is too large Load Diff

685
po/ko.po

File diff suppressed because it is too large Load Diff

693
po/ku.po

File diff suppressed because it is too large Load Diff

617
po/la.po

File diff suppressed because it is too large Load Diff

699
po/lt.po

File diff suppressed because it is too large Load Diff

715
po/lv.po

File diff suppressed because it is too large Load Diff

617
po/mk.po

File diff suppressed because it is too large Load Diff

769
po/ms.po

File diff suppressed because it is too large Load Diff

754
po/nb.po

File diff suppressed because it is too large Load Diff

685
po/nds.po

File diff suppressed because it is too large Load Diff

741
po/nl.po

File diff suppressed because it is too large Load Diff

717
po/pl.po

File diff suppressed because it is too large Load Diff

820
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

742
po/ro.po

File diff suppressed because it is too large Load Diff

739
po/ru.po

File diff suppressed because it is too large Load Diff

617
po/si.po

File diff suppressed because it is too large Load Diff

707
po/sk.po

File diff suppressed because it is too large Load Diff

731
po/sl.po

File diff suppressed because it is too large Load Diff

724
po/sr.po

File diff suppressed because it is too large Load Diff

737
po/sv.po

File diff suppressed because it is too large Load Diff

621
po/ta.po

File diff suppressed because it is too large Load Diff

617
po/tlh.po

File diff suppressed because it is too large Load Diff

699
po/tr.po

File diff suppressed because it is too large Load Diff

617
po/uk.po

File diff suppressed because it is too large Load Diff

693
po/vi.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@
NAME = "deluge" NAME = "deluge"
FULLNAME = "Deluge BitTorrent Client" FULLNAME = "Deluge BitTorrent Client"
VERSION = "0.5.6.95" VERSION = "0.5.6.96"
AUTHOR = "Zach Tibbitts, Alon Zakai, Marcos Pinto, Andrew Resch, Alex Dedul" AUTHOR = "Zach Tibbitts, Alon Zakai, Marcos Pinto, Andrew Resch, Alex Dedul"
EMAIL = "zach@collegegeek.org, kripkensteiner@gmail.com, marcospinto@dipconsultants.com, alonzakai@gmail.com, rotmer@gmail.com" EMAIL = "zach@collegegeek.org, kripkensteiner@gmail.com, marcospinto@dipconsultants.com, alonzakai@gmail.com, rotmer@gmail.com"
DESCRIPTION = "A GTK BitTorrent client written in Python and C++" DESCRIPTION = "A GTK BitTorrent client written in Python and C++"

View File

@ -32,7 +32,7 @@ import os
import xdg.BaseDirectory import xdg.BaseDirectory
PROGRAM_NAME = "Deluge" PROGRAM_NAME = "Deluge"
PROGRAM_VERSION = "0.5.6.95" PROGRAM_VERSION = "0.5.6.96"
CLIENT_CODE = "DE" CLIENT_CODE = "DE"
CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.'))) CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.')))

View File

@ -516,7 +516,7 @@ def show_file_open_dialog(parent, title=None):
chooser.set_select_multiple(True) chooser.set_select_multiple(True)
if not common.windows_check(): if not common.windows_check():
chooser.set_icon(common.get_logo(32)) chooser.set_icon(common.get_logo(32))
chooser.set_property("skip-taskbar-hint", True) chooser.set_property("skip-taskbar-hint", True)
response = chooser.run() response = chooser.run()
if response == gtk.RESPONSE_OK: if response == gtk.RESPONSE_OK:
@ -532,7 +532,7 @@ def show_directory_chooser_dialog(parent, title):
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))
if not common.windows_check(): if not common.windows_check():
chooser.set_icon(common.get_logo(32)) chooser.set_icon(common.get_logo(32))
chooser.set_property("skip-taskbar-hint", True) chooser.set_property("skip-taskbar-hint", True)
config = pref.Preferences() config = pref.Preferences()
chooser.set_current_folder(config.get("choose_directory_dialog_path")) chooser.set_current_folder(config.get("choose_directory_dialog_path"))
if chooser.run() == gtk.RESPONSE_OK: if chooser.run() == gtk.RESPONSE_OK:

View File

@ -168,23 +168,9 @@ class DelugeGTK:
if self.manager.unique_IDs[unique_ID].uploaded_memory: if self.manager.unique_IDs[unique_ID].uploaded_memory:
self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \ self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \
self.manager.unique_IDs[unique_ID].uploaded_memory self.manager.unique_IDs[unique_ID].uploaded_memory
try: if self.manager.unique_IDs[unique_ID].trackers_changed:
if self.manager.unique_IDs[unique_ID].trackers_changed: self.manager.replace_trackers(unique_ID, \
try: self.manager.unique_IDs[unique_ID].trackers)
self.manager.replace_trackers(unique_ID, \
self.manager.unique_IDs[unique_ID].trackers)
except:
pass
except AttributeError:
try:
if self.manager.unique_IDs[unique_ID].trackers:
try:
self.manager.replace_trackers(unique_ID, \
self.manager.unique_IDs[unique_ID].trackers)
except:
pass
except AttributeError:
pass
except AttributeError: except AttributeError:
pass pass

View File

@ -61,9 +61,13 @@ class PluginManager:
mod = __import__(modname, globals(), locals(), ['']) mod = __import__(modname, globals(), locals(), [''])
if 'deluge_init' in dir(mod): if 'deluge_init' in dir(mod):
if modname != "TorrentPieces": if modname != "TorrentPieces":
print "Initialising plugin",modname print "Initialising plugin", modname
mod.deluge_init(path) try:
self.available_plugins[mod.plugin_name] = mod mod.deluge_init(path)
except:
print "Cant init plugin", modname
else:
self.available_plugins[mod.plugin_name] = mod
def get_available_plugins(self): def get_available_plugins(self):
return self.available_plugins.keys() return self.available_plugins.keys()