Pedro Algarvio
9fa8748432
Fix some clean config dir issues.
...
Moved some auth stuff to `deluge.common` because they're also used on the GTK UI.
Now, if a user starts deluge in classic mode and tries to change it to client/daemon mode, he see's a dialog stating that the current session will be stopped. If he answers no, nothing is done, the classic mode pref is set back as it was. If he answers yes, all components are stopped and client is disconnected. At this stage the user can open the connection manager to start the daemon and connect.
If the user starts in client/daemon mode and switches to classic mode he see's a dialog stating that deluge must be restarted.
The GTK UI connection manager now loads it's default config with the localclient username and password. If not present in the auth file, the auth file will be recreated.
2011-04-27 22:06:13 +01:00
Pedro Algarvio
3b00a7de59
Swhiched the old style logging, ie, a single logger for all logging output to several loggers. This brings the ability to tweak the logging levels for each of the loggers, ie, we can have the "deluge" logger be at the ERROR level while having "deluge.core" at the DEBUG level, meaning we will only see log message for all of the deluge loggers above the ERROR level while still having all messages above the DEBUG level for the "deluge.core" logger and it's children. This kind of tweak can be achieved by adding a file named "logging.conf" to deluge's config dir and this is explained on the deluge.log.tweak_logging_levels function.
...
Passing `-r` to the cli's while also passing `-l` will make the logfile rotate when reaching 5Mb in size. Three backups will be kept at all times.
All deluge's code is now using this new style logging along with the git hosted plugins. For other plugins not hosted by deluge, which still imports `LOG` as the logger, a deprecation warning will be shown explaining the required changes needed to use the new style logging. New plugins created by the `create_plugin` script will use the new logging facilities.
2010-12-06 11:20:22 +00:00
John Garland
ff7ff8eac7
Move decode_string/utf8_encoded to common
2010-10-03 18:12:42 +11:00
John Garland
f21dd242f6
Fix renaming files in add torrent dialog
2010-04-12 00:07:50 +10:00
Damien Churchill
af17346ac6
return a valid version 2 filetree
2010-03-31 20:35:44 +01:00
Damien Churchill
387ea4a911
fix when there is only 1 file
2010-03-31 17:42:46 +01: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
dd8400558c
use a platform agnostic way of combining paths in the FileTree
2010-03-28 12:16:35 +01:00
Damien Churchill
7727a98c45
add a second FileTree class that stores everything as a dict within the tree so information can be stored for directories
2010-01-26 13:12:32 +00:00
Andrew Resch
ac66f305e7
Fix displaying root folder when using the 'path.utf-8' keys in torrents
2010-01-08 21:26:33 +00:00
Andrew Resch
9e53e33c24
Fix #1104 , #735 use path.utf-8 if available
2009-12-18 04:36:42 +00:00
Andrew Resch
e6135aa2a9
Fix some accidental reverts
2009-11-25 01:00:25 +00:00
Pedro Algarvio
0723a77214
First notifications plugin commit.
...
Working when not in classic mode. In classic mode, needs some more coding.
2009-11-22 02:34:23 +00:00
Andrew Resch
1f58910a38
Fix adding torrents with different metadata by storing the bencoded dict too. If we bencode the stored metadata dict, there is a chance the order of the dict will be different and change the info-hash.
2009-11-20 19:13:12 +00:00
Andrew Resch
11c0e9a304
Likewise in trunk..
2009-10-09 00:40:46 +00:00
Damien Churchill
0ca5a10d5e
Couple more tweaks to the docstrings
2009-07-23 00:46:23 +00:00
Damien Churchill
0fa403929a
update the docs for the ui common module
2009-07-23 00:42:38 +00:00
Damien Churchill
76d3c2567e
fix the files tree for when there is only 1 file in the torrent and also fix the file size in the add torrent window
2009-06-23 09:37:28 +00:00
Andrew Resch
bbdcf7534c
Make chardet a non-optional dependency in 1.2.x
2009-05-27 19:18:13 +00:00
Andrew Resch
360790876b
Fix not using the encoding used in the torrent file to decode some strings
2009-05-25 02:27:33 +00:00
Andrew Resch
d67477f6e2
Add OpenSSL exception to all GPL headers
2009-05-18 21:51:49 +00:00
Andrew Resch
5606925aa0
Fix #934 use 'name.utf-8' if available and decode the file path before
...
joining it with the prefix
2009-05-12 20:22:21 +00:00
Andrew Resch
384eee2744
Fix showing non-utf8 encoded torrents in add torrent dialog -- this adds an additional dependency on chardet.
2009-05-09 17:46:13 +00:00
Andrew Resch
be1a1fc0be
Fix loading improperly created torrents with mismatched encodings
2009-04-21 17:16:19 +00:00
Andrew Resch
3c4b511e6b
Fix displaying torrents with non-utf8 encodings in add torrent dialog
2009-04-05 18:31:43 +00:00
Damien Churchill
5acd9f3f21
actually commit ui.common this time
2009-04-04 11:32:34 +00:00
Damien Churchill
7166cc01b5
add some doc strings and improve the __str__ method of the FileTree class
2009-03-31 00:28:33 +00:00
Andrew Resch
5e4ee41db2
Add the files_tree property to TorrentInfo
2009-03-30 22:15:13 +00:00
Damien Churchill
5dc2809732
raise the exception since if we haven't been able to read the file there's not point in continuing
2009-03-23 23:16:12 +00:00
Damien Churchill
9808302214
add a FileTree class for generating a file tree
2009-03-23 22:18:01 +00:00
Andrew Resch
d542666f20
Fix some deprecation warnings and imports
2009-02-20 14:32:28 +00:00
Andrew Resch
e9f8c7b0e8
Get Classic mode working somewhat. There are still some issues to
...
resolve with it.
2009-01-28 17:59:27 +00:00
Andrew Resch
44ffcd4499
Automatically get localclient credentials if attempting to connect to a
...
localhost
2009-01-28 02:31:51 +00:00
Andrew Resch
32be4ed4ad
Fix being able to connect to a local daemon from another user account
2009-01-16 20:11:05 +00:00
Damien Churchill
388b21d6eb
fix depreciation warning in py2.6
2009-01-01 18:28:33 +00:00
Andrew Resch
6f7231f0ca
Strip out new lines when reading auth file
2008-12-11 10:04:25 +00:00
Andrew Resch
c0bf133ab8
Add an error check when reading the auth file
2008-12-11 09:31:37 +00:00
Andrew Resch
2b34f64304
Move get_localhost_auth_uri() to ui.common
2008-12-11 09:13:14 +00:00
Andrew Resch
da120c744d
Remove OpenSSL exception from headers
2008-11-28 17:54:17 +00:00
Andrew Resch
d25ad68521
Have the TorrentInfo object raise an exception if unable to open/bdecode
...
the torrent file
Catch the exception in AddTorrentDialog
2008-11-08 06:15:03 +00:00
Andrew Resch
1f0a6eb75e
Add TorrentInfo class and use it in AddTorrentDialog
2008-10-23 14:41:51 +00:00
Damien Churchill
f051f050a9
move get_torrent_info into a new ui common module
2008-10-22 15:07:51 +00:00