{{{
from deluge.core.preferencesmanager import DEFAULT_PREFS
}}}
https://github.com/deluge-
torrent/deluge/blob/develop/deluge/ui/console/widgets/statusbars.py#L14
This means that it is harder to package console UI without including the
core code so should be replaced
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3491>
Deluge <https://deluge-torrent.org/>
Deluge Project
Comment (by DjLegolas):
To change this, we should have a way to get the default values from
`preferencesmanager`.[[br]]
There are 2 ways that I can think of right now:
1. Move the defaults to a different file, outside of
`core.preferencesmanager`.
2. Add an exported function that will return it.
I have a feeling that there might be a better solution for this.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3491#comment:1>
Comment (by Cas):
Since it's only used for the unchanging daemon_port I would just hard-code
it to 58846.
If you wanted a better change we would set a common DEFAULT_DAEMON_PORT
constant to be used throughout the code but we don't really gain anything.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3491#comment:2>
* status: new => closed
* resolution: => Fixed
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3491#comment:3>