Author: damoxc
Revision: 5570
Log:
set the server to always run in debug mode if 'dev' is in the version
Diff:
Modified: trunk/deluge/ui/web/server.py
===================================================================
--- trunk/deluge/ui/web/server.py 2009-07-29 09:01:11 UTC (rev 5569)
+++ trunk/deluge/ui/web/server.py 2009-07-29 09:11:19 UTC (rev 5570)
@@ -373,7 +373,15 @@
return resource.Resource.getChild(self, path, request)
def render(self, request):
- if request.args.get('debug', ['false'])[-1] == 'true':
+ debug = 'dev' in common.get_version()
+ if 'debug' in request.args:
+ debug_arg = request.args.get('debug')[-1]
+ if debug_arg == 'true':
+ debug = True
+ elif debug_arg == 'false':
+ debug = False
+
+ if debug:
scripts = self.debug_scripts[:]
else:
scripts = self.scripts[:]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---