Gina Häußge
b138c2bccf
New global JS helper copyToClipboard
2017-08-22 18:05:53 +02:00
Gina Häußge
76c2113ad4
Fix block-level input-append/input-prepend
...
We still had double borders going on for included add-ons.
2017-08-22 18:05:00 +02:00
Gina Häußge
bfe5bc179c
New hook octoprint.comm.protocol.temperatures.received
...
Allows preprocessing/sanitizing temperatures as received from the
printer.
Workaround for printers that occasionally report garbage temperature
data, e.g. #2050
2017-08-22 11:32:47 +02:00
Gina Häußge
d7298cee06
Virtual printer: Less code duplication in temp simulation
2017-08-22 11:21:04 +02:00
Gina Häußge
fbcbb3f5f7
Virtual printer: Support configurable ambient temperature
2017-08-21 16:52:38 +02:00
Gina Häußge
0c2169dd9c
Removed leftover </span>
...
Thanks @dforsi for the heads-up.
2017-08-21 13:17:29 +02:00
Daniele Forsi
69dec6e83f
Fix typos in strings and comments
...
Those typos were found with codespell which is available from
https://github.com/lucasdemarchi/codespell.git
2017-07-29 16:12:08 +02:00
Gina Häußge
4d27de032d
Improved handling of external reset while operational
...
* Display message to user
* Stop print/transfer (lost state)
2017-07-28 13:35:00 +02:00
Gina Häußge
7073c12444
Virtual printer: Support debug commands while streaming
2017-07-28 13:34:10 +02:00
Gina Häußge
60be6349f5
Allow cancelling file transfers
...
Cancelling also deletes the incomplete file on the printer's SD.
2017-07-28 13:08:28 +02:00
Gina Häußge
ec55890c55
Check that .metadata.yaml actually contains a dict
...
It might just be empty (= None) or a list or something.
Thanks @Kunsi for the heads-up.
2017-07-28 12:01:36 +02:00
Marc Hannappel
83ed6a4297
Added additional Permissions in the bundled Plugins
2017-07-27 16:14:36 +02:00
Marc Hannappel
1c07974f6c
Adjust the bundled Plugins to the new hasPermission functions
2017-07-27 16:11:45 +02:00
Marc Hannappel
c3e430b472
Split loginState.hasPermission in hasPermission and hasPermissionKo, the ko version returns a knockout pureComputed and uses the hasPermission version, hasPermission version does the normal check and is intended to be used in functions.
...
Also adjust the permission checks to the splitted functions, and integrate new checks to hide elements and get rid of console errors
2017-07-27 16:04:58 +02:00
Marc Hannappel
a8fef06aa8
Add ability to register combined permission to the permission manager, they will not show up in the regular permission list
2017-07-27 16:01:20 +02:00
Marc Hannappel
281eb346a5
Add a unioned permission objects, this mostly is used for the api GET methods
2017-07-27 15:55:55 +02:00
Marc Hannappel
15c8bd7d6d
More bugfixes, additionally add a can() function to the PluginIdentityContextManager, and replace the dicts with OrderedDicts
2017-07-27 15:51:20 +02:00
Marc Hannappel
d0d1da3456
Fix a few bugs and remove some now unnecessary functions
2017-07-27 15:26:00 +02:00
Gina Häußge
7c73ff78bc
Merge branch 'maintenance' into devel
2017-07-27 14:39:14 +02:00
Gina Häußge
1f9fe8c868
Preparing release of 1.3.5rc2
2017-07-27 13:33:45 +02:00
Gina Häußge
8f2e4ad978
Temperature tab: "Hotend" -> "Tool"
2017-07-27 12:41:08 +02:00
Gina Häußge
b82d955ec7
Fix printer profile update on temperature tab & gcode viewer
...
As reported in #2033
2017-07-27 12:40:27 +02:00
Gina Häußge
832d2f4155
Fix temperature controls in FF not fitting on one line
...
Mentioned in #2033
2017-07-27 10:14:59 +02:00
Gina Häußge
c336452f6c
Do not run subprocesses while intermediary server is active
...
Any processes inheriting the open port descriptor of that server will
cause the actual server startup to fail due to the port still being
claimed.
We can't fully prevent this under Windows thanks to fnctl not being
available and win32api being a PITA, and also close_fds on Popen not
being allowed if we also need to redirect stdout/stderr/stdin for a
process. So let's hope hardening against this problem when running
under *nix, adding a bit fat warning to never start a subprocess
during the intermediary's runtime and also moving the only actual
process we so far DID start (analysis backlog processing) to after
Tornado is running will suffice.
Fixes #2035
2017-07-27 09:58:20 +02:00
Gina Häußge
a9b6edde2b
Fix incompatibility with non-ASCII strings in wizard sorting
2017-07-26 16:47:57 +02:00
Gina Häußge
d59ef5c711
Corewizard: Fix wrongly displaying firstrunonly wizards again
2017-07-26 16:47:40 +02:00
Gina Häußge
375480c707
allViewModels -> self.allViewModels
2017-07-26 16:32:05 +02:00
Gina Häußge
60cacb9447
Temperature: Fix for legend not updating with current values
...
See #2033
2017-07-26 16:26:27 +02:00
Marc Hannappel
e0309dc6c0
Added announcement permission to the announcement plugin
2017-07-26 14:35:30 +02:00
Gina Häußge
cd6009c180
Merge branch 'maintenance' into devel
...
# Conflicts:
# docs/plugins/hooks.rst
# src/octoprint/server/__init__.py
2017-07-26 14:31:08 +02:00
Marc Hannappel
29bd4e96d6
Add PluginPermissionDecorator and PluginIdentityContext to handle @Permissions.PLUGIN_X_Y.require() decorator correctly. This is necessary, because at the time of the evaluation these Permissions can't be already initialized. So I added a new PluginIdentityContext which will look for the permissions when needed and check them, if they can't be found it will raise a UnknownPermission Exception
2017-07-26 13:45:57 +02:00
Marc Hannappel
5d5ca0d7aa
Fix AnonymousUser
2017-07-26 13:42:17 +02:00
Marc Hannappel
e7df4b8d6d
Revert permission_test, change get_session to session, Some smaller fixes (missing semicolon, added some $root in jinja templates)
2017-07-26 13:39:38 +02:00
Gina Häußge
1a6dbb3f4a
Preparing release of 1.3.5rc1
2017-07-26 12:47:47 +02:00
Gina Häußge
10e834f623
Improve logging of async system commands
...
Closes #2025
2017-07-24 18:32:21 +02:00
Gina Häußge
5ce34f774e
GCODE Viewer: Fix file position calculation
...
We were only adding one byte for "\n". That ignored that our regex
could also match "\r\n" or "\r\r" or something like that.
Our split regex now only matches one "\r" or "\n". Empty lines we'll
simply ignore anyhow so no real harm done.
Also, we no longer strip the comments in this step - leave that to
the worker running in its own thread. Not only should that speed
things up a bit, it will also allow us to better debug the worker in
the future.
2017-07-24 12:55:39 +02:00
Gina Häußge
0456896d71
GCODE Viewer: Fix issue with lookup of layer index 0
...
We were just testing if z_heights[z] was truthy. If the layer index was
set but 0 that wasn't properly detected and let to overwriting our
layer information. Instead check explicitly against undefined.
Closes #2017
2017-07-24 12:52:13 +02:00
Gina Häußge
e06c09e206
Fix some more FontAwesome related things
...
* remove some more "fa" classes where they didn't belong
* use "fa-toggle-(on|off)" instead of circles where they were used
to signify toggle actions
* fix SD card icon being too high
Another follow-up to #1915
2017-07-21 12:29:18 +02:00
Gina Häußge
a6d3299b91
Add user manager factory hook
2017-07-20 20:03:05 +02:00
Gina Häußge
0a7f2a209b
Add opt-in wizard for online connectivity check
...
See also #2011
2017-07-20 20:02:57 +02:00
Gina Häußge
67f7580506
Only run connectivity checker if enabled
...
Otherwise assume we are online but don't ping anything.
See also #2011
2017-07-20 20:02:44 +02:00
Gina Häußge
aab3a7bd63
Wizard: Support to prevent the "settings updated" dialog
...
Subwizards might actually intentionally want to update stuff through
the settings API, let's allow that.
2017-07-20 19:36:14 +02:00
Gina Häußge
d0f5592421
Fix sorting of filament usage for more than one tool
2017-07-20 19:23:52 +02:00
Gina Häußge
bb6ea4d81b
Also set autocorrect to off on username field
2017-07-20 09:50:08 +02:00
Gina Häußge
7e32e5be8f
GCODE viewer: Support \r, \n and \r\n line endings
...
So far we only supported \n and \r\n, leading to problems with MM
GCODE files generated by Slic3r Prusa Edition which apparently
produces \r line endings for some reason.
Closes #1996
2017-07-20 09:18:38 +02:00
Gina Häußge
266cae3509
PMGR: Refresh on any connectivity change
2017-07-19 18:49:52 +02:00
Gina Häußge
0dcbffb9d2
Bundled plugins: Handle connectivity states
...
See also #2011
2017-07-19 18:42:29 +02:00
Gina Häußge
fb8c56be57
SWU: Track network connectivity & handle offline scenarios
...
See also #2011
2017-07-19 18:42:28 +02:00
Gina Häußge
2bc0c4a77f
Synchronize pip helper cache access
2017-07-19 18:42:28 +02:00
Gina Häußge
187c09e7da
Centralized online connectivity check
...
See also #2011
2017-07-19 18:42:27 +02:00