Merge branch 'staging/maintenance' into maintenance
This commit is contained in:
commit
8939537fb5
4 files changed
+8
-3
No files matched your search
@@ -21,6 +21,7 @@ INSTALL_REQUIRES = [
|
||||
"Jinja2>=2.8.1,<2.9", # Jinja 2.9 has breaking changes WRT template scope - we can't
|
||||
# guarantee backwards compatibility for plugins and such with that
|
||||
# version, hence we need to pin to a lower version for now. See #1697
|
||||
"regex==2018.11.3", # Current version as of 2018-11-06 is broken. See #2874
|
||||
"werkzeug>=0.8.3,<0.9",
|
||||
"tornado==4.5.3",
|
||||
#"sockjs-tornado>=1.0.3,<1.1", # current version is incompatible to tornado 5, we use a
|
||||
|
||||
@@ -1109,7 +1109,8 @@ def get_flask_user_from_request(request):
|
||||
apikey = octoprint.server.util.get_api_key(request)
|
||||
if settings().getBoolean(["api", "enabled"]) and apikey is not None:
|
||||
user = octoprint.server.util.get_user_for_apikey(apikey)
|
||||
else:
|
||||
|
||||
if user is None:
|
||||
user = flask_login.current_user
|
||||
|
||||
return user
|
||||
|
||||
@@ -1299,6 +1299,9 @@ class CountedEvent(object):
|
||||
else:
|
||||
self._internal_set(self._counter - 1)
|
||||
|
||||
def reset(self):
|
||||
self.clear(completely=True)
|
||||
|
||||
def wait(self, timeout=None):
|
||||
self._event.wait(timeout)
|
||||
|
||||
|
||||
@@ -2322,7 +2322,7 @@ class MachineCom(object):
|
||||
def _on_external_reset(self):
|
||||
# hold queue processing, clear queues and acknowledgements, reset line number and last lines
|
||||
with self._send_queue.blocked():
|
||||
self._clear_to_send.clear(completely=True)
|
||||
self._clear_to_send.reset()
|
||||
with self._command_queue.blocked():
|
||||
self._command_queue.clear()
|
||||
self._send_queue.clear()
|
||||
@@ -2493,7 +2493,7 @@ class MachineCom(object):
|
||||
# first hook to succeed wins, but any can pass on to the next
|
||||
self._changeState(self.STATE_OPEN_SERIAL)
|
||||
self._serial = serial_obj
|
||||
self._clear_to_send.clear()
|
||||
self._clear_to_send.reset()
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user