Dont display stats and benchmark when multiuser plugin active
This commit is contained in:
parent
7e7dddde2e
commit
fbfa0f3717
|
@ -45,6 +45,11 @@ class UiRequestPlugin(object):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self.sendHeader()
|
self.sendHeader()
|
||||||
|
|
||||||
|
if "Multiuser" in PluginManager.plugin_manager.plugin_names and not config.multiuser_local:
|
||||||
|
yield "This function is disabled on this proxy"
|
||||||
|
raise StopIteration
|
||||||
|
|
||||||
s = time.time()
|
s = time.time()
|
||||||
main = sys.modules["main"]
|
main = sys.modules["main"]
|
||||||
|
|
||||||
|
@ -269,6 +274,10 @@ class UiRequestPlugin(object):
|
||||||
|
|
||||||
self.sendHeader()
|
self.sendHeader()
|
||||||
|
|
||||||
|
if "Multiuser" in PluginManager.plugin_manager.plugin_names and not config.multiuser_local:
|
||||||
|
yield "This function is disabled on this proxy"
|
||||||
|
raise StopIteration
|
||||||
|
|
||||||
# No more if not in debug mode
|
# No more if not in debug mode
|
||||||
if not config.debug:
|
if not config.debug:
|
||||||
yield "Not in debug mode"
|
yield "Not in debug mode"
|
||||||
|
@ -302,6 +311,10 @@ class UiRequestPlugin(object):
|
||||||
|
|
||||||
self.sendHeader()
|
self.sendHeader()
|
||||||
|
|
||||||
|
if "Multiuser" in PluginManager.plugin_manager.plugin_names and not config.multiuser_local:
|
||||||
|
yield "This function is disabled on this proxy"
|
||||||
|
raise StopIteration
|
||||||
|
|
||||||
# No more if not in debug mode
|
# No more if not in debug mode
|
||||||
if not config.debug:
|
if not config.debug:
|
||||||
yield "Not in debug mode"
|
yield "Not in debug mode"
|
||||||
|
@ -365,6 +378,10 @@ class UiRequestPlugin(object):
|
||||||
|
|
||||||
output = self.sendHeader()
|
output = self.sendHeader()
|
||||||
|
|
||||||
|
if "Multiuser" in PluginManager.plugin_manager.plugin_names and not config.multiuser_local:
|
||||||
|
yield "This function is disabled on this proxy"
|
||||||
|
raise StopIteration
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def benchmark(name, standard):
|
def benchmark(name, standard):
|
||||||
s = time.time()
|
s = time.time()
|
||||||
|
|
Loading…
Reference in New Issue