Calum Lind
9aed7a7f0c
[AutoAdd] Handle AddTorrentError exceptions
2017-03-21 20:21:28 +00:00
Calum Lind
c8d084c563
[AutoAdd] Fixes for adding magnets
...
* Combines three commits from 1.3-stable that fixed splitting magnets from file.
b52de1549e
, 8a3f15e5c0
, 2d4dec669e
2017-03-21 20:08:34 +00:00
Calum Lind
7e04abd1e5
[AutoAdd] Minor cody tidyup
2017-03-21 20:08:34 +00:00
Calum Lind
e2e13103b8
[Core] Catch keyerror in add torrent alert
2017-03-21 18:47:31 +00:00
Calum Lind
d8e5cbe689
[ #2928 ] [GTKUI] Fix missing name and trackers adding magnets
2017-03-21 18:47:31 +00:00
Calum Lind
19fdd2f88c
[Core] Fix saving torrent info metadata
...
* Unicode dict entry should be bytes.
2017-03-21 18:46:40 +00:00
Calum Lind
e5e49f68ba
[GTKUI] Fix adding from clipboard
2017-03-20 22:53:37 +00:00
Calum Lind
5a3625f6cd
Add systemd service files to packaging dir
2017-03-20 19:16:50 +00:00
Calum Lind
bc50f6e5f6
[ #2913 ] [Notifications] Fix webui passing string for port value
2017-03-20 18:46:36 +00:00
Calum Lind
8ff1bfc0b2
[Console] Add time_added to info status keys
2017-03-20 11:48:55 +00:00
Calum Lind
744ab08dfb
[GTKUI] Reduce default size of prefs dialog
2017-03-20 11:32:59 +00:00
Calum Lind
d01100a258
[GTKUI] Implement multi-torrent support in Options Tab
2017-03-20 08:39:09 +00:00
Calum Lind
722ca41584
[GTKUI] Cleaup/refactor mainwindow
2017-03-20 08:39:09 +00:00
Calum Lind
1637da84e4
[GTKUI] Refactor torrent details Tabs code
...
* Move common code into Tab parent class
* The Tab init now accepts creation with name, child_widget and tab_label but
will still accept the 'oldstyle' contructor to keep backwards compatibility
with 3rd-party plugins.
* Create namedtuple TabWidget with widget, format func and status_keys. The
TabWidget are stored in a tab_widgets dict making it easier to create, save
and update large numbers of gtk widgets.
2017-03-20 08:39:09 +00:00
Calum Lind
6d28f2c885
[GTKUI] Refactor connect_signals to use 'self'
...
* If the handler method names match the signal names then it is possible
to refactor out the mappings and simply pass 'self' to connect_signals.
2017-03-20 08:39:09 +00:00
Calum Lind
482606d80a
[ #2990 ] [Core] Fix torrent priorities mismatch
...
* The old priorities instead of updated call to lt were being saved to self.options.
2017-03-20 08:28:10 +00:00
Calum Lind
73ea123f1a
[ #2966 ] [Tests] Rename deprecated method aliases
2017-03-19 22:15:07 +00:00
Calum Lind
d09df063a5
[Stats] Remove blanket try..excepts and stop timers correctly
2017-03-18 11:54:01 +00:00
Calum Lind
676574ff19
[Stats] Update gtkui from libglade to gtkbuilder
...
- Additionally fixes #2977 num_connections KeyError and #2947 AttributeError.
2017-03-18 11:34:40 +00:00
Calum Lind
665c047541
[Label] Update gtkui from libglade to gtkbuilder
2017-03-17 23:35:03 +00:00
Calum Lind
939835cef1
Fix warning with label glade files
2017-03-17 16:44:23 +00:00
Calum Lind
9e303b58a0
Refactor common magnet funcs
2017-03-17 10:26:17 +00:00
Calum Lind
112a872bc1
[ #2716 ] [Common] Update magnet funcs for tracker tiers tr.x
2017-03-17 10:26:17 +00:00
Calum Lind
6424333c35
[GTKUI] Refactor adding list of trackers
2017-03-17 10:26:17 +00:00
Calum Lind
267d331fac
[ #2476 ] [GTKUI] Fix adding mistyped trackers urls
2017-03-17 10:26:17 +00:00
Calum Lind
d1daeb4cb0
[Trans] Fix unicode issue in msgfmt
...
- The offset was being calculated on unicode rather than byte strings lengths.
2017-03-17 01:05:58 +00:00
Calum Lind
7c6c9eae7f
[WebUI] Fix error displaying tracker icons
2017-03-16 23:22:58 +00:00
Calum Lind
036154fc36
[ #2417 ] [UI] Add Last Transfer to torrent status and torrentview columns
...
- Create new status entry `time_since_transfer` and getter that is
calculated from lt time_since_upload and time_since_download.
- Add/update all UIs and formatters.
- Included update to console layout to match other uis
2017-03-16 23:22:58 +00:00
Calum Lind
e3abdf9901
Use super class call where possible
2017-03-16 23:20:57 +00:00
Calum Lind
af7e83bc76
Replace/remove usage of dict.keys()
2017-03-16 23:20:56 +00:00
Calum Lind
4a274466ac
Add python 3 section to tox
2017-03-16 23:20:56 +00:00
Calum Lind
eb38e0ffff
[Py2to3] Large set of changes for Python 3 compat
...
- Preparation work for using six or future module for Py2/3 compat. The
code will be written in Python 3 with Python 2 fallbacks.
- Added some Py3 imports with Py2 fallbacks to make it easier to remove
Py2 code in future.
- Replace xrange with range (sort out import as top of files in future).
- Workaround Py2to3 basestring issue with inline if in instances. This means
every usage of basestring is more considered.
- Replace iteritems and itervalues for items and values. There might be a
performance penalty on Py2 so might need to revisit this change.
2017-03-16 23:20:56 +00:00
Calum Lind
321677e05a
[WebUI] Return 404.html for files not found
...
- This ensures a proper request response is returned.
2017-03-15 23:12:36 +00:00
Kyle Neideck
960f3a6552
[WebUI] Check render template files exist and raise 404 if not
...
- Check render/* requests match to .html files in the 'render' dir
- Protects against directory (path) traversal
2017-03-15 23:12:36 +00:00
Calum Lind
35c78eee41
Update to 1.1.2 libtorrent requirement
2017-03-15 09:56:19 +00:00
Calum Lind
5348465e60
Fix 1d1bb2a2a
issue by defining init in DelugeRPCProtocol
2017-03-14 19:29:45 +00:00
Calum Lind
1d1bb2a2a7
[ #2964 ] Fix RPC TypeError using namedtuple
2017-03-14 18:02:33 +00:00
Calum Lind
767503ad88
[ #2979 ] Fix Deluge start error with missing entrypoints
...
- An ImportError is raised if a module is listed in the entrypoint
but is not actually installed. The code will now catch this and
will de-list the ui module that failed.
2017-03-14 17:22:58 +00:00
Calum Lind
1e696fe6ca
Fix type in manpage
2017-03-14 17:21:38 +00:00
Calum Lind
90631cca88
Fix console test
2017-03-14 15:48:20 +00:00
Calum Lind
50c476c41d
Update man pages to reflect ui arg changes
...
- Also fixup help output details
2017-03-14 14:58:59 +00:00
Calum Lind
8232505961
[ #2996 ] [Console] Fix duplicate commands in help output
...
- The duplicate entries were actually the aliases for commands
but the command name not the alias was being returned.
2017-03-14 14:57:53 +00:00
Calum Lind
966678196e
[WebUI] Use error logging and add exception message detail
2017-03-01 14:47:42 +00:00
Calum Lind
11e8957dea
[WebUI] Only accept application/json content-type requests
...
- Protects against CSRF (Cross-site request forgery)
2017-03-01 14:47:42 +00:00
Calum Lind
ec5c8bafb6
[ #2815 ] [Console] Fix 'add' cmd path inconsistency on windows
...
When adding a torrent with a download location from command prompt
2017-02-23 19:30:42 +00:00
Calum Lind
fb8dc42acf
[Core] Catch None type country in get_peers
2017-02-23 19:16:04 +00:00
Calum Lind
4df88c0df3
[UI] Refactor appdata.xml code and markup translatable text
2017-02-23 19:02:32 +00:00
Matthias Mailänder
3529036f55
[UI] Add an appdata.xml file
...
For Linux software gallery integration.
2017-02-23 19:01:44 +00:00
Calum Lind
f2b77c8635
[WebUI] Linting trailing comma
2017-02-23 16:52:06 +00:00
Calum Lind
49e5611f65
Remove unicode_literal from plugins setup.py
...
There is a bug in Py2 setuptools where the build fails if unicode dict keys
are passed to package_data:
`package_data must be a dictionary mapping package names to lists of wildcard patterns`
The easiest workaround is to remove unicode_literals use in setup.py as it is not that important.
2017-02-23 16:48:05 +00:00