Module: deluge Branch: master Commit: f6c058dd34ddcd0fde0a1ebb0c527855b7f72d14
Author: Damien Churchill <[email protected]> Date: Thu Mar 11 20:20:23 2010 +0000 add a first_load config parameter --- deluge/ui/web/server.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index aab20e0..3ed0be3 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -95,6 +95,7 @@ CONFIG_DEFAULTS = { "show_session_speed": False, "show_sidebar": True, "theme": "gray", + "first_load": True, # Server Settings "base": "/", @@ -106,7 +107,7 @@ CONFIG_DEFAULTS = { UI_CONFIG_KEYS = ( "theme", "sidebar_show_zero", "sidebar_show_trackers", - "show_session_speed", "base" + "show_session_speed", "base", "first_load" ) OLD_CONFIG_KEYS = ( @@ -132,9 +133,9 @@ class Config(resource.Resource): config = dict([(key, web_config[key]) for key in UI_CONFIG_KEYS]) return compress("""Deluge = { author: 'Damien Churchill <[email protected]>', - version: '1.2-dev', + version: '%s', config: %s -}""" % common.json.dumps(config), request) +}""" % (common.get_version(), common.json.dumps(config)), request) class GetText(resource.Resource): def render(self, request): -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
