Gina Häußge
5989d243d3
Fix wrapping of temperature controls on touch devices
...
Successfully tested in Chrome (desktop & Android), Firefox (desktop &
Android), Safari (desktop & iOS).
Closes #2059
2017-08-25 09:47:11 +02:00
Gina Häußge
97cb0088f6
Delay opening of serial.log until first message
...
That way we don't risk running into potential "file busy" issues
under windows on log file rollover.
2017-08-24 19:16:41 +02:00
Gina Häußge
2ed36ed383
Do not block when processing held back events!
2017-08-23 19:07:08 +02:00
Gina Häußge
12b8a54081
set_close_exec on intermediary server port for unix & windows
...
Using the win32 API it's possible to prevent the intermediary server
socket from inheriting itself to subprocesses. So let's use that here.
Another bit of the solution for #2090 .
2017-08-23 18:31:42 +02:00
Gina Häußge
a35e145649
Don't forward events to uninitialized EventPlugin implementations
...
Another part of fixing #2090
2017-08-23 18:19:37 +02:00
Gina Häußge
f77be701a2
Only fire events once Events.STARTUP has been seen
...
One part of fixing #2090
2017-08-23 18:11:40 +02:00
Gina Häußge
e9401b7090
Easier copying of API keys
...
There's now a dedicated button for that.
This should get around issues like #2056 . Also increased size
of API key display field (where possible). Fixes #2055
2017-08-22 18:10:32 +02:00
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
Gina Häußge
7828258fdb
Merge pull request #2048 from dforsi/fix/fix-rst
...
Fix some rst warnings
2017-08-21 12:38:20 +02:00
Daniele Forsi
edb4d0fe04
Fix warnings about duplicated names in rst files
...
Replacing a single underscore (which creates a named target) with a double
underscore creates an anonymous target.
Fixes:
/home/daniele/OctoPrint/docs/bundledplugins/cura.rst:4: WARNING: Duplicate explicit target name: "here".
/home/daniele/OctoPrint/docs/plugins/hooks.rst:370: WARNING: Invalid caption: /home/daniele/OctoPrint/docs/plugins/hooks.rst:4: (INFO/1) Duplicate explicit target name: "custom_action_command.py".
2017-07-30 23:18:08 +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
e508898564
Merge branch 'staging/maintenance' into maintenance
2017-07-27 14:38:54 +02:00
Gina Häußge
c33e9e4c85
staging is 1.3.5rc3.dev
2017-07-27 14:38:30 +02:00
Gina Häußge
1f9fe8c868
Preparing release of 1.3.5rc2
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
Gina Häußge
a21f5c4497
Merge branch 'staging/maintenance' into maintenance
2017-07-26 14:27:59 +02:00
Gina Häußge
c159ab7fe2
Merge branch 'rc/maintenance' into staging/maintenance
2017-07-26 14:27:47 +02:00
Gina Häußge
251ed7a2a2
Merge branch 'staging/maintenance' into maintenance
2017-07-26 14:25:15 +02:00
Gina Häußge
e949e0198f
maintenance is now 1.3.6.dev, staging is 1.3.5rc2.dev
2017-07-26 14:24:30 +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
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