From 3ca0458d653ee737660a14e44c229f1463e6166b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 19 Sep 2014 16:11:44 +0200 Subject: [PATCH] Fix: Use event strings, not names for all_events Temporarily broke event registration by frontend, this should fix it again. --- src/octoprint/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/events.py b/src/octoprint/events.py index 4a3d2023..36ea4f42 100644 --- a/src/octoprint/events.py +++ b/src/octoprint/events.py @@ -20,7 +20,7 @@ _instance = None def all_events(): - return [name for name in Events.__dict__ if not name.startswith("__")] + return [getattr(Events, name) for name in Events.__dict__ if not name.startswith("__")] class Events(object):