113 Commits

Author SHA1 Message Date
Calum Lind
f96f47e463 [#2705] [WebUI] Fix hostlist not being created 2015-09-25 14:02:12 +01:00
Calum Lind
8dd918f2a4 [WebUI] Fix i18n issue in Connection Manager
The status strings were incorrectly marked for translation which when combined with
some translations using 'connected' and 'online' as the same word resulted in
users being unabe to connect to running daemon.

 * Removed translation markup from json_api but left as original capitalised word in
case other third-party scripts do comparison on these status strings.
 * Added translation markup prior to displaying ConnectionManager using template.
 * Reworded password prompt and added translation markup.
 * Update gettext.js
2015-08-20 13:59:02 +01:00
Calum Lind
6a5982f3ce Small fixes for Travis and isort 2014-09-25 14:25:03 +01:00
bendikro
66f2739be7 Added .travis.yml (for travis-ci) and tox.ini files
Targets:

* Runs the unit-tests for python 2.7
* Tests unit-test coverage
* Try to build docs
* Code style checks:
  * flake8
  * isort

Codes changes:
* Fixed tests for httpdownloader (using tmp dir)
* Implemented a couple of tests for Stats plugin but they fail to run on travis

Issues:
* Can't get py26 to work because of installing libtorrent through apt and
  the option system_site_packages fails for 2.6.
2014-09-25 14:11:51 +01:00
Calum Lind
2f68092740 Flake8 add global __request__ to config 2014-09-22 12:46:17 +01:00
Calum Lind
9a801b4b93 Fix docstring errors raised by spinx docs build 2014-09-20 20:46:03 +01:00
Calum Lind
30a0f3c9ed Flake8 pass of entire codebase
* Use the inline '# NOQA' to supress N802 lower-case warnings
2014-09-19 19:10:14 +01:00
Calum Lind
fbcddff6ea [WebUI] Replace func_globals with __globals__ for Py3 compat 2014-09-19 13:39:50 +01:00
Calum Lind
5167e93d12 Flake8 core and common files
* Added N802 to flake8 ignore as certain inherited funcs cannot be changed
   to lowercase and this unresolved warning hides other errors/warnings.
 * Include new header
2014-09-03 23:48:34 +01:00
Calum Lind
b5dcfc6f9e Sort/prettify imports with isort 2014-09-03 18:27:32 +01:00
Calum Lind
1e6c811768 [Python-Modernize] lib2to3.fixes.fix_except
* Use 'ex' instead of 'e' to conform with pylint
 * Minimal Flake8 on some files
2014-09-03 17:22:38 +01:00
Calum Lind
a2c3fb3d5e [WebUI] Flake8 files
* Does not pass cleanly due to camelcase function names and __request__ global.
2014-08-19 13:01:18 +01:00
Calum Lind
7b53486821 Use stdlib json
Some flake8 changes and DEPENDS tidyup
2014-07-19 11:32:17 +01:00
Calum Lind
624f2f66cf Replace deprecated session.num_connections with session_status.num_peers
This commit removes get_num_connections() from core and updates UIs
to use get_session_status with num_peers key.

Extra noise is from Flake8 changes
2014-01-17 12:21:08 +00:00
Calum Lind
9d48d04f0f Fix #2338 : Spelling mistake with occurred 2013-06-09 02:30:26 +01:00
Chase Sterling
8f34e2abdb Clean up some json api code. refs #2125 2012-12-21 13:19:14 -05:00
Calum Lind
6b9ae264ff Fix typo in json_api docstring 2012-11-28 23:36:23 +00:00
Calum Lind
6fe350fa52 Fix #2110 : Accept magnet uris with xt param anywhere within them 2012-11-27 23:18:12 +00:00
baconseed
b34e38df57 Fix #2112 : World readable tmp directory in json_api 2012-09-29 17:02:52 +01:00
Andrew Resch
6422f11971 Fix autoconnecting to the default host 2012-07-17 17:23:39 -07:00
Calum Lind
f1ddd236ce Fix #2038 : Chrome 17 disconnecting from webui 2012-03-02 13:10:35 +00:00
Calum Lind
f897f03227 Add magnet uri support to Add Url in Webui 2012-02-23 00:49:55 +00:00
Calum Lind
a01f45cc7a Fix #1936 : Referenced before assignment error in json_api 2012-01-09 23:20:48 +00:00
Damien Churchill
117d50b728 fix a bug when the host_id doesn't exist 2011-05-07 13:20:04 +01:00
John Garland
32b41fabd6 Handle redirection when adding a torrent by url 2011-03-09 00:44:42 +11:00
John Garland
a0f9689664 Handle partial downloads due to incorrect headers (fixes #1517) 2011-03-09 00:40:15 +11:00
Damien Churchill
f52e3c4aa0 add a check to ensure that the events loop doesn't continue indefinitely 2010-10-10 19:52:08 +01:00
Damien Churchill
8f7e307f33 wrap client.disconnect() call with a check to see if its classic mode 2010-10-07 00:14:21 +01:00
Damien Churchill
9f992ec40d fix the system.listMethods json call when running in classic mode 2010-08-14 16:05:40 +01:00
Damien Churchill
46a967fb8c a couple of fixes to stop the webui crashing when running within the gtkui 2010-07-18 23:11:02 +01:00
John Garland
504751424f Use basestring instead of str and unicode 2010-07-02 15:19:42 +10:00
Damien Churchill
7053163f88 use FileTree2 in the TorrentInfo class when specified
adjust the filetree walking functions to match the server side code
2010-03-31 15:40:39 +01:00
Damien Churchill
76de427b96 remove a needless loop in the update_ui() method call 2010-03-30 00:21:37 +01:00
Damien Churchill
7b84f54974 make greater use of the SessionProxy 2010-03-29 20:22:15 +01:00
Damien Churchill
4ca14d68c1 make use of the sessionproxy 2010-03-29 20:12:08 +01:00
Damien Churchill
73ec9b0338 Fix the progress bars for directories, was calculating the progress incorrectly 2010-03-23 23:45:52 +00:00
Damien Churchill
f7071b4428 fix the sidebar and torrent filtering (Closes: #1176) 2010-03-16 22:42:52 +00:00
Damien Churchill
a011d6d659 Merge branch 'master' of deluge-torrent.org:deluge
Conflicts:
	libtorrent
2010-02-19 00:39:11 +00:00
Damien Churchill
1d2a6f7f0e implement a better remote events system 2010-02-17 01:50:05 +00:00
Damien Churchill
caed5accea use get_host() in connect() 2010-01-29 15:35:51 +00:00
Damien Churchill
25b282fdb8 add the full path to the info returned by the file tree 2010-01-26 18:20:43 +00:00
Damien Churchill
447cb52bf1 add .x-mixed-download to the priorities css
fix the way the directory stats are updated (parent directories weren't being updated)
2010-01-26 13:25:44 +00:00
Damien Churchill
2afd0a4e97 fix the progressbar renderer for the file tree
add a new file priority "Mixed"
add progress bars and priorities for directories using the new tree format
2010-01-26 13:18:16 +00:00
Damien Churchill
0d069d0fe8 change the queue number server side 2010-01-24 03:27:43 +00:00
Damien Churchill
76fcfa498d add gzip encoding to responses that are just text 2010-01-22 12:39:33 +00:00
Andrew Resch
ec9564d0c1 #496: Remove deprecated functions in favour of get_session_status() 2009-12-25 21:29:47 +00:00
Andrew Resch
ffb241a4de Strip lines/spaces 2009-12-25 21:27:07 +00:00
Damien Churchill
b69e25e308 disconnect the client if getting information fails 2009-12-13 21:50:16 +00:00
Damien Churchill
a126081d2c implement installing plugins via the webui 2009-12-10 15:40:37 +00:00
Damien Churchill
1ba3955025 add tooltips to the statusbar items
add disk free space to the statusbar
2009-12-10 00:06:34 +00:00