add a get_config()...
Content-type: text/plain
Author: damoxc
Revision: 5680
Log:
add a show_session_speed option
add a get_config() method to the web api
Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py 2009-08-19 22:13:58 UTC (rev 5679)
+++ trunk/deluge/ui/web/json_api.py 2009-08-19 23:16:19 UTC (rev 5680)
@@ -693,3 +693,19 @@
self.host_list.save()
d.callback(True)
return d
+
+ @export
+ def get_config(self):
+ """
+ Get the configuration dictionary for the web interface.
+
+ :rtype: dictionary
+ :returns: the configuration
+ """
+
+ config = component.get("DelugeWeb").config.config.copy()
+ del config["sessions"]
+ del config["pwd_salt"]
+ del config["pwd_sha1"]
+ return config
+
\ No newline at end of file
Modified: trunk/deluge/ui/web/server.py
===================================================================
--- trunk/deluge/ui/web/server.py 2009-08-19 22:13:58 UTC (rev 5679)
+++ trunk/deluge/ui/web/server.py 2009-08-19 23:16:19 UTC (rev 5680)
@@ -90,6 +90,7 @@
"sidebar_show_zero": False,
"sidebar_show_trackers": False,
"show_keyword_search": False,
+ "show_session_speed": False,
"show_sidebar": True,
"cache_templates": False,
"https": False,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---