Commit graph

1018 commits

Author SHA1 Message Date
Gina Häußge
3dfb2b2989 Adjusted CuraPlugin for new wizard capabilities 2015-07-16 14:01:28 +02:00
Gina Häußge
681def9d6c Wizard fetches details and saves enqueued setting on finish
Plugins may implement onWizardDetails, onWizardBeforeFinish and
onWizardFinish to react to wizard events.
2015-07-16 14:00:53 +02:00
Gina Häußge
af4566375d SettingsViewModel now allows enqueuing data for saving
New method "enqueueForSaving" allows continously building up a settings
dict to be persisted, new method "saveEnqueued" finally allows saving it.
2015-07-16 13:59:44 +02:00
Gina Häußge
f2b9337fae WizardPlugins can now report back more details
In case a wizard plugin needs to communicate more info with its frontend,
such as which kind of information is missing, this is now possible through
a new API endpoint that will collect such information from the plugins
and provide it to callees.
2015-07-16 13:58:28 +02:00
Gina Häußge
3f147c9272 WIP to make cura plugin capable of displaying a wizard pane 2015-07-14 20:22:02 +02:00
Gina Häußge
33cbd3dcbd Only show wizard when firstRun is true or user is admin 2015-07-14 20:21:31 +02:00
Gina Häußge
c7e602d342 Only inject wizard templates if plugin reports they are required 2015-07-14 20:21:07 +02:00
Gina Häußge
03c2439efe New plugin mixin "WizardPlugin" 2015-07-14 20:20:25 +02:00
Gina Häußge
4193aa4d41 Migrated access control setup to wizard framework 2015-07-13 18:35:27 +02:00
Gina Häußge
85edac8191 Added overwrite option to user manager addUser method 2015-07-13 18:34:47 +02:00
Gina Häußge
ac1e2e8ad4 First work on a (first run) wizard, also usable by plugins 2015-07-12 11:51:19 +02:00
Gina Häußge
75992ef837 Better resilience against errors within plugins 2015-07-10 11:46:51 +02:00
Gina Häußge
a18cbf71bd Fixed white panes in settings dialog on Safari 8
Absolute positioning caused panes to sometimes not render when being
selected. Switching to static positioning again makes the dialog look a bit
weird, but that's probably still preferable to no content showing. It seems
to be a browser bug that not's present with Safari 7, more tests to pinpoint
what exactly is causing this are probably necessary, but this at least is a
functional workaround for now.
2015-07-09 21:49:51 +02:00
Gina Häußge
f1afb70b47 Set no-cache headers on page while firstRun is True 2015-07-09 09:28:31 +02:00
Gina Häußge
163100bd44 Allow to not cache responses that set no-cache headers 2015-07-09 09:27:38 +02:00
Gina Häußge
7ea2ee2aa1 Rewrite urls in packed css and less files
See also #962
2015-07-08 16:34:42 +02:00
Gina Häußge
2a5ec3364e Fix: More resilience against missing plugin assets
Two changes:

  * Asset existence will now be checked before they get included
    in the assets to bundle by webassets, logging a warning if a
    file isn't present.
  * Monkey-patched webassets filter chain to not die when a file
    doesn't exist, but to log an error instead and just return
    an empty file instead.
2015-07-08 16:32:25 +02:00
Gina Häußge
377607cf12 Added button to cura settings to check validity of engine path 2015-07-08 13:36:56 +02:00
Gina Häußge
e2894c25b5 New util resource for testing paths and urls from the frontend 2015-07-08 13:36:29 +02:00
Gina Häußge
29b3b62c0d Removed unneeded parameter and added missing semicolon 2015-07-08 08:45:36 +02:00
Gina Häußge
4894c6ec44 Fixed preventDefault issues also for files search 2015-07-08 08:45:10 +02:00
Gina Häußge
02b68e2912 Merge branch 'pluginmanagersearch' of https://github.com/markwal/OctoPrint into pr/markwal/pluginmanagersearch
Conflicts:
	src/octoprint/translations/de/LC_MESSAGES/messages.mo
	src/octoprint/translations/de/LC_MESSAGES/messages.po
	translations/de/LC_MESSAGES/messages.mo
	translations/de/LC_MESSAGES/messages.po
	translations/messages.pot
2015-07-08 08:35:11 +02:00
Mark Walker
4a2cc5382d pluginmanager: case handling and submit binding
- Convert query term to lower case so that it is case insensitive both ways
    - Knockout submit binding takes the form element as parameter and return
    value determines whether the form submit occurs. See http://knockoutjs.com/documentation/submit-binding.html
2015-07-07 14:24:27 -07:00
Gina Häußge
a1e0078ce5 Updated translation
(cherry picked from commit 7d43bca)
2015-07-07 19:00:11 +02:00
Gina Häußge
a5bf3c3be1 Log serial write exceptions to octoprint.log
(cherry picked from commit 367ba06)
2015-07-07 18:39:54 +02:00
Gina Häußge
19a5613e59 Made "Software Update" and "CuraEngine" translateable
Also fixed a typo in a notification.
(cherry picked from commit 430e47d)
2015-07-07 18:39:47 +02:00
Gina Häußge
ced286854c Fixed sorting by size of file list
(cherry picked from commit 6906584)
2015-07-07 18:39:06 +02:00
Gina Häußge
7d43bca840 Updated translation 2015-07-07 18:37:55 +02:00
Gina Häußge
367ba06a83 Log serial write exceptions to octoprint.log 2015-07-07 18:30:27 +02:00
Gina Häußge
430e47d20f Made "Software Update" and "CuraEngine" translateable
Also fixed a typo in a notification.
2015-07-07 18:26:06 +02:00
Gina Häußge
22d12ac54c Allow hiding plugins from Plugin Manager 2015-07-07 15:33:26 +02:00
Gina Häußge
1eb3f84bce Also handle partial timelapse settings gracefully
Server startup could fail if for whatever reason the timelapse settings
had lost their type value, since the dict was not merged with the
default values upon retrieval.
2015-07-06 17:06:30 +02:00
Gina Häußge
6906584892 Fixed sorting by size of file list 2015-07-06 17:04:55 +02:00
Gina Häußge
ea53fd368a settings().get(..) => settings().getBoolean(..) 2015-07-06 17:03:36 +02:00
Gina Häußge
3441431cdf Do only allow machinecode files for selection/printing 2015-07-06 10:49:24 +02:00
Gina Häußge
811ffc760f Added "pollWatched" setting to UI
(cherry picked from commit b8cf5ef)
2015-07-06 10:21:21 +02:00
Gina Häußge
549b60edb1 Allow polling for changes in watched folder
Some underlying file systems might not trigger change events (e.g.
mounted remote file systems). Added a feature flag to allow for
switching to a (less performant) polling method.
(cherry picked from commit f2df174)
2015-07-06 10:20:57 +02:00
Gina Häußge
3da54be6ea Merge branch 'test/pollingObserver' into devel 2015-07-06 08:40:31 +02:00
Gina Häußge
b8cf5ef83d Added "pollWatched" setting to UI 2015-07-06 08:40:13 +02:00
Gina Häußge
8735b10653 Better resilience against senseless polling intervals
(cherry picked from commit 6600d24)
2015-07-05 16:50:33 +02:00
Gina Häußge
6600d246b7 Better resilience against senseless polling intervals 2015-07-05 16:49:35 +02:00
Gina Häußge
8722cdadcd Merge branch 'maintenance' into devel
Conflicts:
	src/octoprint/plugins/softwareupdate/updaters/pip.py
	src/octoprint/util/pip.py
2015-07-05 10:15:14 +02:00
Gina Häußge
29d49179a9 SWU Fix: properly sanitize version strings for comparison 2015-07-05 10:04:06 +02:00
Gina Häußge
f2df1748ef Allow polling for changes in watched folder
Some underlying file systems might not trigger change events (e.g.
mounted remote file systems). Added a feature flag to allow for
switching to a (less performant) polling method.
2015-07-05 09:38:09 +02:00
Gina Häußge
19b4a0f403 Fix: Always delete files from watched folder
Wasn't ensure previously when using file preprocessors.
2015-07-05 09:35:49 +02:00
Gina Häußge
f0530eff8f SWU: always send displayName to frontend
Spares us having to map on the client side which might not work
in all cases.
2015-07-03 15:25:36 +02:00
Gina Häußge
a1735190d5 OctoPrint update script now logs asynchronously
stdout and stderr of executed commands was previously only logged at
the very end, now gets logged when it is received.
2015-07-03 14:00:01 +02:00
Gina Häußge
be8827b67c SWU: plugin now logs stdout/stderr during updating
Only if logged in as Admin though. Working dialog is as verbose as
Plugin install dialog.
2015-07-03 13:59:22 +02:00
Gina Häußge
ae73ebdcb3 PMGR: console_logger was not properly defined in init 2015-07-03 13:57:15 +02:00
Gina Häußge
6f24a2b6c5 New helper CommandlineCaller
Wraps sarge and allows asynchronous execution of commands incl. logging
to provided logging methods for stdout, stderr and command calls.

Refactored PipCaller to utilized that.
2015-07-03 13:56:31 +02:00