docstrings and typos in "\utils\" and "\scripts\"

This commit is contained in:
tajmone 2015-03-09 11:06:48 +01:00 committed by Griatch
parent ca230a7130
commit 2135ec05f2

View file

@ -111,6 +111,7 @@ class ScriptBase(ScriptDB):
"""
Base class for scripts. Don't inherit from this, inherit
from the class `DefaultScript` below instead.
"""
__metaclass__ = TypeclassBase
objects = ScriptManager()
@ -279,6 +280,7 @@ class ScriptBase(ScriptDB):
"""
This stops a running script and stores its active state.
It WILL NOT call the `at_stop()` hook.
"""
if not self.db._paused_time:
# only allow pause if not already paused