Gina Häußge
d99af420ac
🐛 loginui: fix reload not triggering right after first run setup
2020-02-26 12:01:24 +01:00
Gina Häußge
73c2baa39e
🔖 Preparing release of 1.4.0rc6
2020-02-26 10:08:34 +01:00
Gina Häußge
054df68741
📝 Fix year
2020-02-26 09:13:44 +01:00
Gina Häußge
f7756698e9
🐛 Don't protect blueprints before first run setup
2020-02-25 17:03:51 +01:00
Gina Häußge
453ef0cb97
♻ Remove implicit blueprint protection in favour of explicit one
2020-02-25 17:03:29 +01:00
Gina Häußge
5015422086
🐛 py3 list vs iterator
2020-02-25 15:48:01 +01:00
Gina Häußge
2d85d8acf8
♻ is_(anonymous|active)() => is_(anonymous|active)
2020-02-25 15:41:38 +01:00
Gina Häußge
2af589a823
♻ Remove remnants of old login ui
2020-02-25 15:37:51 +01:00
Gina Häußge
20c55f4d3d
🐛 Fix missing protection for blueprint plugins
...
is_blueprint_protected should mean a requirement of a logged in non
anonymous user. Implemented accordingly. Got forgotten during switch to
granular permission system.
2020-02-25 15:37:50 +01:00
Gina Häußge
b7fdc82d30
🐛 Fix buggy implementation of (before|after)_request hooks
2020-02-25 15:37:48 +01:00
Gina Häußge
770ebf2cf9
📝 Docs for new access control situation
2020-02-25 15:34:17 +01:00
Gina Häußge
a75c641c18
♻ Implement login dialog through UiPlugin
...
Otherwise alternative UIs might still be wide open, and caching and such
was also really painful to solve before.
The LoginUI Plugin is pretty much just a distilled ForceLogin plugin.
Also declared it as hidden so it won't show up/be manageable by the
plugin manager.
2020-02-25 15:33:42 +01:00
Gina Häußge
38c09153ac
♻ Fix deprecated method names
2020-02-24 14:16:09 +01:00
Gina Häußge
e30e18e431
📝 Docs for reauthRequired push message
2020-02-24 12:49:12 +01:00
Gina Häußge
249d19f55b
🐛 Reauth for stale sessions instead of active logout
...
Fixes #3459
2020-02-24 12:49:04 +01:00
Gina Häußge
2e043ecf5b
📝 Explicitly document LineProcessorStream behaviour under py3
...
Make absolutely clear that processLine will be called with a byte & not
a unicode string.
See #3454
2020-02-18 15:57:01 +01:00
Gina Häußge
831edf234d
🐛 Fix a firmware info reporting bug
...
It was not reported if firmware detection was disabled, even though one
should not have anything to do with the other.
Not a regression, but considering that it negatively impacts the printer
safety plugin that relies on firmware info it'll go into 1.4.0
regardless.
2020-02-17 17:34:19 +01:00
Gina Häußge
b42c753d3f
🐛 Fix a Py3 bug with the self._printer wrapper in plugins
2020-02-17 17:32:20 +01:00
Gina Häußge
924cd5cb4c
🔖 rc/maintenance is now 1.4.0rc6.dev
2020-02-11 14:37:43 +01:00
Gina Häußge
73f7c4d8a1
🔖 Preparing release of 1.4.0rc5
2020-02-10 17:02:07 +01:00
Gina Häußge
10079b8d9d
🐛 PGMR: Fix UI representation of incompatible plugins
...
Second part of fixing #3442
2020-02-04 15:53:56 +01:00
Gina Häußge
c31566a626
🐛 Fix incompatible plugins to be marked as compatible
...
First part of fixing #3442
2020-02-04 15:52:53 +01:00
Gina Häußge
0cfc7a2976
Merge remote-tracking branch 'origin/staging/maintenance' into staging/maintenance
2020-02-04 13:17:11 +01:00
Gina Häußge
de5a10163e
🐛 Reintroduce message backlog on socket
...
Was present in forcelogin and made sure that plugins triggering a
message on the socket immediately after connect would get through right
after auth.
Without this a lot of plugins out there run into issues, so this is a
backwards compatibility fix for a regression in 1.4.x.
See also #3400
2020-02-04 13:15:44 +01:00
Gina Häußge
0a22c4e66c
♻ Fix a duplicated line of code
2020-01-31 14:28:27 +01:00
Gina Häußge
a88d95af77
🐛 Fix autologin
...
We need to actually try to identify the user just like we used to do
with the forcelogin plugin. Just checking permissions will only work
if we already have a session.
Closes #3434
2020-01-29 11:37:07 +01:00
Gina Häußge
010221ab5b
🐛 Fix handling of unset remote addresses
2020-01-29 11:35:56 +01:00
Gina Häußge
6471a04a86
staging/maintenance is now 1.4.0rc5.dev
...
And maintenance is now 1.4.1.dev
2020-01-28 15:16:19 +01:00
Gina Häußge
7b2762c590
🐛 Remove accidentally commited debug statement
2020-01-27 18:06:02 +01:00
Gina Häußge
de0b97b99c
🐛 Fix first run setup
2020-01-27 17:32:52 +01:00
Gina Häußge
60d2bd1ac1
🔖 Preparing release of 1.4.0rc4
2020-01-27 15:51:27 +01:00
Gina Häußge
4d716647e5
🐛 Fix socket connect timeout handling
...
Was triggering even though it should have been cleared due to a
self vs this issue.
Also protect against undefined connection deferred.
2020-01-27 15:03:18 +01:00
Gina Häußge
43ab47a260
✨ pi support: Permission check for API endpoint
2020-01-27 13:46:09 +01:00
Gina Häußge
88ecfbdb65
🐛 Fix another py2 vs 3 issue
...
Closes #3431
2020-01-27 11:58:17 +01:00
Gina Häußge
8087967683
🐛 Fix behaviour when page cached & server down
...
E.g. in Firefox reopen tab while server is down - FF will use a cached
copy and for some reason sockjs won't notice that stuff is down. So now
we have a timeout of 5s for initial connection that takes care of that.
2020-01-24 16:54:52 +01:00
Gina Häußge
cb43197105
🐛 Fix endpoint in docs
2020-01-24 13:08:10 +01:00
Gina Häußge
b1b9329614
♻ Move /api/access/user to /api/currentuser
...
Update documentation accordingly.
See also #3418
2020-01-24 13:05:06 +01:00
Gina Häußge
7317814ce0
📝 Document needed permissions & fix some stuff
2020-01-23 13:21:52 +01:00
Gina Häußge
66ef7b66bb
📝 Documentation for the access API
2020-01-22 18:39:32 +01:00
Gina Häußge
be3ff5f043
✨ API endpoint to retrieve info about current user
...
As suggested by @fieldOfView.
Implements #3418
2020-01-22 14:58:29 +01:00
Gina Häußge
c36fa6da90
🐛 Fix readonly group permissions
...
Those were accidentally stripped.
2020-01-22 14:55:35 +01:00
Gina Häußge
aadcf650c7
🐛 Fix UI caching again
...
Was broken by 3f3cb556a7 in between server
restarts due to the wrong stuff being fetched by the preemptive cache.
2020-01-21 17:26:45 +01:00
Gina Häußge
95c3fa0b04
🐛 Readd requires line that somehow got missing
...
Addendum to 3f3cb556a7
Closes #3425
2020-01-21 16:03:48 +01:00
Gina Häußge
1d0829a1db
🐛 Introduce ClientAuthed event
...
May act as entry point for any kind of push messages a plugin might
wish to send to the client after a connect happened. Since depending
on the current permission configuration this might only be possible
once the client has authenticated on the socket, this is required.
Should close #3400
2020-01-21 15:53:52 +01:00
Gina Häußge
8d31d6687e
🐛 Also trigger login dialog eval on permission change
...
Not just on logout.
Follow-up to #3425
2020-01-21 15:00:20 +01:00
Gina Häußge
3f3cb556a7
🐛 Fix guest access to settings
...
Needed its own permission, which in turn needed some changes in how the
whole "guest without read permission" situation is handled. I've
reintroduced a custom login view since the main UI would not be able
to fully load up without settings access. Said login view will override
the default UI view if the account in question does not have
Permissions.STATUS and also Permissions.SETTINGS_READ. It pretty much is
the forcelogin plugin from 1.3.x.
Closes #3425
2020-01-21 14:49:46 +01:00
Gina Häußge
4460c8bee0
🐛 env needs to be native strings
...
So, bytes under py2 and unicode under py3.
Closes #3428
2020-01-20 13:36:02 +01:00
Gina Häußge
89b597a656
🐛 Fix remember me checkbox
...
Closes #3426
2020-01-17 16:34:13 +01:00
Gina Häußge
e1a25a8913
🐛 Fix caching issue for freshly rendered timelapses
...
Closes #3396
2020-01-16 12:13:38 +01:00
Gina Häußge
482c2f7115
🐛 Fix timelapse progress under Py3
...
Closes #3409
2020-01-15 16:53:54 +01:00
Gina Häußge
7fa4ebd1ec
Merge pull request #3414 from fieldOfView/fix_allows_multiple_needs
...
Fix checking against multiple Needs on OctoPrintPermission
2020-01-14 12:44:18 +01:00
Gina Häußge
9c3b552aa8
🔥 Remove unused leftover code
2020-01-14 11:24:22 +01:00
Gina Häußge
3229e65a8d
♻ Remove assumptions about UI from permission model
...
Implements #3419
2020-01-14 11:22:54 +01:00
fieldOfView
7191d39b51
Fix multiple Needs on OctoPrintPermission
...
fixes #3398
2020-01-03 08:41:59 -08:00
Gina Häußge
58bc5171ee
✏ Adjusted plugin tutorial for py3
2019-12-13 13:43:29 +01:00
Gina Häußge
74f3bc9ae6
🔖 staging/devel is now 1.4.0rc4.dev
2019-12-12 15:01:53 +01:00
Gina Häußge
464d9c0757
🔖 Preparing release of 1.4.0rc3
2019-12-12 13:00:35 +01:00
Gina Häußge
94ae90ab80
♻ Cleaned up a pre-py3 leftover comment
2019-12-12 12:43:45 +01:00
Gina Häußge
33b89550a4
🐛 Fix a unicode issue under win32
...
subprocess env must not contain unicode strings but could now after some
py3 related refactorings.
2019-12-12 12:43:13 +01:00
Gina Häußge
9661469532
🐛 Fix some permission bindings
...
Closes #3388
2019-12-11 15:01:57 +01:00
Gina Häußge
b06c222a7d
🐛 Fix checksum calculation in stk500v2 under py3
...
See #3382
2019-12-11 10:50:40 +01:00
Gina Häußge
9f85b54681
🐛 Convert decoded header to unicode
...
See #3382
2019-12-11 10:28:32 +01:00
Gina Häußge
5d1ad5d75d
🐛 Add blinker dependency for flask_principal
...
Was forgotten in 928d62a517
2019-12-10 16:35:07 +01:00
Gina Häußge
dc32f955b7
🐛 Fix forwarding of HTTPExceptions on SimpleApiPlugins
...
Part of #3375
2019-12-10 16:16:40 +01:00
Gina Häußge
220592c267
🐛 IspError should be a proper Exception
...
Otherwise our try-catch-blocks won't catch it anymore.
2019-12-10 12:56:23 +01:00
Gina Häußge
0faa6879b4
☂ Resilience against issue in Printoid
...
Closes #3381
2019-12-10 12:55:47 +01:00
Gina Häußge
71b5de91bf
🐛 Fix 403 response
...
Dumping string representations of the permission objects doesn't make
sense, and neither does rewriting the error description in the first
place.
2019-12-09 19:06:53 +01:00
Gina Häußge
928d62a517
♻ Vendoring flask_principal
...
It no longer seems to be maintained and there's an issue in the code
we need fixed.
2019-12-09 19:06:52 +01:00
Gina Häußge
78bd3b1a52
🐛 "remember" does not need to be set on session
...
Be able to deal with that.
Follow up to #3370
2019-12-09 19:06:51 +01:00
Gina Häußge
b9bab0577b
♻ Remove monkey patch that's no longer needed
2019-12-09 17:32:31 +01:00
Gina Häußge
c41551a643
🐛 Fix wrong handling of session protection signal
...
We should only clear out the identity when the session has actually
been deemed deleted, not just on staleness due to e.g. a client IP
change.
Closes #3370
2019-12-09 17:31:53 +01:00
Gina Häußge
6c92dd1303
🐛 PNotify needs position:fixed
...
Closes #3377
2019-12-09 14:19:16 +01:00
Gina Häußge
124f01ca2d
🐛 py3: ensure an int as rolling window size
...
Closes #3371
2019-12-06 13:40:03 +01:00
Gina Häußge
0dece85fa7
🐛 Fix notifications being visible w/ needed login
2019-12-04 15:24:08 +01:00
Gina Häußge
caebf90ee9
🐛 Fix short UI flicker before loading animation
2019-12-04 14:37:16 +01:00
Gina Häußge
0c77014903
☔ Make sure js/css mime types are always correct
...
Even if we are running on windows and something is borked in the
registry...
Closes #3367
2019-12-03 18:03:11 +01:00
Gina Häußge
231a796200
☔ Limit legal plugin permission keys
2019-12-03 17:26:29 +01:00
Gina Häußge
fe755405e8
📝 Add docs for octoprint.access.permissions hook
...
As mentioned in #3365
2019-12-03 17:14:00 +01:00
Gina Häußge
2200f2186c
🐛 Fix permissions of global API key
...
Closes #3365
2019-12-03 14:55:32 +01:00
Gina Häußge
b57b7cb606
🐛 appkeys: fix key gen under Python 2
...
And refactor key generation to be located in ONE central utility method
to avoid issues like that in the future.
Closes #3366
2019-12-03 12:56:14 +01:00
Gina Häußge
f2b2496e58
🔖 staging/devel is now 1.4.0rc3.dev
2019-12-02 16:23:02 +01:00
Gina Häußge
e603b98d0d
🔖 Preparing release of 1.4.0rc2
2019-12-02 14:11:43 +01:00
Gina Häußge
e235fc299f
🐛 Make sure data is set
...
Closes #3364
2019-12-02 14:07:41 +01:00
Gina Häußge
4f25ed546e
🐛 Only proceed if children is set AND truthy
...
Closes #3363
2019-12-02 13:55:04 +01:00
Gina Häußge
f72b9db6a9
🐛 Fix wrong escape
...
Closes #3362
2019-12-02 12:24:48 +01:00
Gina Häußge
80e8e33283
🐛 Don't logout always-logged-in AdminUser
...
If ACL is disabled it doesn't make sense to log it out and it's causing
issues further down the line due to different handling.
Fixes #3361
2019-12-02 12:24:44 +01:00
Gina Häußge
00d0396417
🐛 Fix autologin
...
Closes #3357
2019-11-29 12:50:16 +01:00
Gina Häußge
59e39662f1
🐛 timelapse: fix accessed event payload field
...
Closes #3354
2019-11-28 18:02:34 +01:00
Gina Häußge
038e1b9a57
🐛 appkeys: Fix a deprecation warning
2019-11-26 18:42:36 +01:00
Gina Häußge
bbefeeeb02
🐛 appkeys: generate string api keys
...
Instead of binaries.
Closes #3350
2019-11-26 18:35:32 +01:00
Gina Häußge
2801da5c51
💚 Fix unit tests by fixing mocked functions
...
Closes #3348
2019-11-26 16:22:08 +01:00
Gina Häußge
471dab9406
🐛 Don't try to write None values into upload body
...
Closes #3349
2019-11-26 15:34:14 +01:00
Gina Häußge
1deb247ce5
🐛 Let functools.wraps do its job
...
Closes #3348
2019-11-26 15:14:24 +01:00
Gina Häußge
4469a2d84a
🔖 staging/devel is now 1.4.0rc2.dev, devel 1.5.0.dev
2019-11-26 10:36:18 +01:00
Gina Häußge
2da7aa358d
🔖 Preparing release of 1.4.0rc1
2019-11-25 11:57:30 +01:00
Gina Häußge
cbb083d7f6
♻ Do not invalidate / cache on hard reload if printing
...
Less radical follow-up to #3344 while the kinks for actually needed
UI refreshs are ironed out on that one.
2019-11-25 10:00:03 +01:00
Gina Häußge
d68de2c3c7
Revert "Do not refresh on no-cache in request"
...
This reverts commit 3b1874e
2019-11-25 09:46:50 +01:00
Gina Häußge
454c5e494a
Merge pull request #3344 from justfalter/disable-refresh-on-no-cache
...
Do not refresh on no-cache in request
2019-11-22 12:18:13 +01:00
Mike Ryan
3b1874ea25
Do not refresh on no-cache in request
...
Remove code that would lead to a refresh upon receiving a
'Cache-Control: no-cache' or 'Pragma: no-cache' in a request. The
purpose of these headers is to invalidate intermdiate proxy caches, not
that of an application server. A refresh in octoprint would lead to
several seconds of high CPU utilization on lower-power systems (like the
Raspberry Pi), leading to stuttering in print jobs.
It is still possible to explicitly cause a refresh by including
`_refresh` in the query parameters of a request.
2019-11-21 08:48:44 -06:00
Gina Häußge
e0233dee13
🐛 SWU: Restart after pip update too
2019-11-21 14:27:52 +01:00
Gina Häußge
84a99e1b53
⬇ Downgrade readthedocs-sphinx-ext
...
Current versions require jinja2>=2.9 which we can't upgrade to due to
compatibility issues.
2019-11-20 16:02:34 +01:00
Gina Häußge
b7e0e89bb4
⚡ ️ Precompile markdown & remove changelog
...
We already have Github's releases with all the changes, we don't need to
keep everything twice.
Instead of the changelog included in the about dialog there's now a link
to the release list, that should suffice.
Implements #3342
2019-11-20 15:35:44 +01:00
Gina Häußge
d8c3063813
⬆️ Update 3rd party deps
2019-11-20 15:30:36 +01:00
Gina Häußge
1485050234
☔ Add noscript tag
...
If the user's browser has JS disabled, we should tell them instead of
displaying a non functional UI.
As suggested in https://community.octoprint.org/t/i-forgot-my-octoprint-password-how-can-i-reset-it/215/8?u=foosel
2019-11-15 16:46:06 +01:00
Gina Häußge
6d7721f8f5
✨ PMGR: More cleanup options
...
Additional "clean up all leftovers" feature to clean up anything left
over by plugins already uninstalled.
Also takes care of entries in the disabled plugin list now.
See also #3299
2019-11-15 16:28:27 +01:00
Gina Häußge
e3ae71eabd
🐛 PMGR: Apparently mtime can sometimes still be None
...
Handle that.
See https://community.octoprint.org/t/plugins-pip-error-on-fresh-octopi-0-17-0-install/13466
for an example.
2019-11-15 10:43:34 +01:00
Gina Häußge
e88041c59e
🐛 PMGR: Remove access attempts on removed field
2019-11-15 10:43:34 +01:00
Gina Häußge
e17db4e1cf
📝 SWU: document new pypi_release check type
2019-11-15 10:43:34 +01:00
Gina Häußge
766a64c8f6
Merge pull request #3337 from CapnBry/allowbackanal
...
Setting to allow gcode analysis to continue during printing
2019-11-12 17:24:14 +01:00
Bryan Mayland
8485d2c9a7
Fix tests failing due to no Settings
2019-11-12 16:07:57 +00:00
Bryan Mayland
397e691a6a
Update setting caption for analyzeGcode.runAt
2019-11-12 15:53:06 +00:00
Bryan Mayland
6481f7cf6b
webui setting for gcodeAnalysis.runAt
2019-11-12 15:47:54 +00:00
Bryan Mayland
46c527d24a
Switch setting to fully control background gcode analysis queueing
2019-11-12 15:28:41 +00:00
Gina Häußge
5392f39cc4
Merge branch 'pr/3335' into devel
2019-11-12 15:28:47 +01:00
Bryan Mayland
4a324b4f5e
Setting to allow gcode analysis to continue during printing
2019-11-12 13:49:54 +00:00
Kelly Anderson
2855b0e7a7
Add cbxbiker61 to AUTHORS.md
2019-11-09 00:59:38 -07:00
Kelly Anderson
39e4cd3136
fix another dictionary changed size during iteration exception, possibly triggered only under python3
2019-11-09 00:54:41 -07:00
Gina Häußge
8fefa63c8c
🐛 Fix whitespace issue
2019-11-08 15:15:20 +01:00
Gina Häußge
10532b9118
🐛 SWU: Fix doctest
2019-11-08 14:55:31 +01:00
Gina Häußge
7f2eb470e4
Merge branch 'maintenance' into devel
2019-11-08 14:52:20 +01:00
Gina Häußge
8955b8e0b6
🐛 Fix a unicode bug
2019-11-08 14:48:45 +01:00
Gina Häußge
ee9d5048e2
✨ SWU: Optional pip auto update
...
Since we can't guarantee for compatibility with future versions of pip
we'll stick to the updater for that being opt-in.
2019-11-08 14:48:29 +01:00
Gina Häußge
09bb74b6c6
✨ SWU: New check type pypi_release
2019-11-08 14:45:51 +01:00
Gina Häußge
493dddf66e
🐛 to_bytes/to_unicode should pass through None
2019-11-08 14:45:17 +01:00
Gina Häußge
8173f8d0c4
🐛 gcode viewer: Fix swapped G2/G3
...
Closes #3334
2019-11-08 09:40:09 +01:00
Gina Häußge
01feec47d7
Merge pull request #3330 from dforsi/fix-typos
...
Fix typos
2019-11-07 12:40:38 +01:00
Daniele Forsi
2b60dbc7e1
Fix typos
...
Those typos were found with codespell which is available from
https://github.com/lucasdemarchi/codespell.git
2019-11-07 00:02:05 +01:00
Gina Häußge
32f5f36e5a
Merge pull request #3328 from balassy/fix/backup-plugin-typo
...
Fixed a doc typo in the restore command name of the Backup plugin
2019-11-06 19:55:12 +01:00
György Balássy
96294df710
Fixed a typo in the restore command name of the Backup plugin
2019-11-05 22:25:25 +01:00
Gina Häußge
ef54cbb148
☔ Set close_exec flag on serial handle
...
Possible fix for #3212
2019-11-05 15:41:51 +01:00
Gina Häußge
9cd597a467
🐛 Fix invalid use of 401 response code
...
Leftovers from fixing #2297 .
Fixes #3327
2019-11-05 13:21:49 +01:00
Gina Häußge
2263ebde72
🐛 Fixed ok tracking
...
Repositioning of clear_to_send clearing removes synchronization issues.
Big thanks to @KevinOConnor for pointing this out!
2019-11-05 12:38:02 +01:00
Gina Häußge
1fd8d597ab
Merge pull request #3326 from DominikPalo/feature/support-android-theme-color
...
Automatically set the toolbar color on Android
2019-11-05 10:57:28 +01:00
Gina Häußge
2aec0b3a75
Merge pull request #3325 from DominikPalo/feature/polish-mac-os-docs
...
Polish the documentation for macOS (PyCharm setup, macOS naming)
2019-11-05 09:48:47 +01:00
Dominik Palo
47d10a6d3e
Set the toolbar color on Android
2019-11-03 11:24:50 +01:00
Dominik Palo
ee216ddc93
Merge remote-tracking branch 'upstream/devel' into devel
2019-11-03 09:33:23 +01:00
Dominik Palo
7756d312e2
Update AUTHORS.md
2019-11-03 09:24:51 +01:00
Dominik Palo
19e03eeeb2
Revert a line break
2019-11-03 09:24:51 +01:00
Dominik Palo
e73aeba03b
Unify macOS naming across docs
2019-11-03 09:23:04 +01:00
Dominik Palo
87f3c5acce
Fix documentation for venv step on macOS
2019-11-03 09:19:24 +01:00
Dominik Palo
a38a3e67c9
Merge pull request #1 from foosel/maintenance
...
Maintenance
2019-11-03 09:11:54 +01:00
Gina Häußge
547ae9e13e
♻ SWU: Do not persist check providers
...
There really is no reason for that
2019-11-01 13:04:20 +01:00
Gina Häußge
b031092f07
✨ PMGR: plugin data cleanup functions
...
Plugin data can now be cleaned up
* on a plugin's uninstall through the plugin manager
* manually through a new action button in the plugin manager
Implements #3299
Ideas for further improvement:
* Management interface to show "orphaned" plugin data and delete
on request.
2019-11-01 13:03:47 +01:00
Gina Häußge
6e6dd2c34e
🐛 port can be None
2019-10-31 17:09:49 +01:00
Gina Häußge
759f4f8ea2
🐛 Default checkbox should always be enabled
...
See #3302
2019-10-31 12:07:31 +01:00
Gina Häußge
bee82bcde9
🐛 Treat port=None as port=AUTO on autoconnect
...
Potential fix for #3267
2019-10-31 11:09:54 +01:00
Gina Häußge
888fb97e66
💡 Clarify Error event in docs
...
Closes #3210
2019-10-31 09:57:57 +01:00
Gina Häußge
9c775bd899
🐛 Fix overzealous filtering of history entries
...
Closes #3309
2019-10-30 18:28:53 +01:00
Gina Häußge
4bf3445eef
💡 Fix a doc bug
...
Closes #3233
2019-10-30 18:23:57 +01:00
Gina Häußge
47b3f51a3f
♻ Speed up the analyser a bit
...
Closes #3318
Thanks at @jmfrank63 for the heads-up!
2019-10-30 18:10:52 +01:00
Gina Häußge
2e6b85990d
💚 Fix tests
2019-10-30 17:40:49 +01:00
Gina Häußge
30a4b9e9ab
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/virtual_printer/virtual.py
2019-10-30 15:59:30 +01:00
Gina Häußge
81a259e51b
☔ virtual printer: parameter existence checks
...
Closes #3319
2019-10-30 15:45:36 +01:00
Gina Häußge
e85e9661e0
🤷♀️ PMGR/SWU: Flag to ignore throttle state
...
Will allow people to circumvent the
shoot-yourself-in-the-foot-countermeasures by editing config.yaml.
If they do that and stuff then fails due to platform instability it's
their problem.
2019-10-30 15:43:52 +01:00
Gina Häußge
1d60250942
🐛 Only detect sd printing on byte pos change
...
Should fix #3301 , or at least make it way less likely to happen.
The problem seems to have been made worse by `M25` not being blocking
on Klipper and thus the SD printing not being guaranteed to have stopped
yet after its return, meaning the following `M26 S0` will be denied,
causing the file position to not be properly reset and hence the issue
to arise in the first place.
2019-10-30 12:47:40 +01:00
Gina Häußge
e11463f6ce
♻ Remove stuff deprecated with 1.4.0
...
See #1852
2019-10-29 13:12:28 +01:00
Gina Häußge
1146a1bb6f
✨ New events UserLogged(In|Out) & modified ClientOpened
...
On the push socket only available for admin users.
ClientOpened now also get the remoteAddress stripped from the payload
for guests on the push socket.
Implements #783
2019-10-29 12:39:45 +01:00
Gina Häußge
311fdd5aca
🚸 No connection requirement for timelapse config
...
No, this doesn't mean that you can start timelapses manually or
anything, only that you do not need to be connected to a printer in
order to change the default timelapse configuration.
2019-10-28 18:13:53 +01:00
Gina Häußge
6ddc55bf80
🚸 Fix timelapse progress bar for missing progress
...
Closes #2713
2019-10-28 18:10:44 +01:00
Gina Häußge
2c930ef069
🚸 allow wrapping on buttons in selection dialogs
...
Implements #3292
2019-10-25 15:47:18 +02:00
Gina Häußge
3739bbc652
💄 pmgr/swu: dynamic size for scrollables
2019-10-25 14:26:46 +02:00
Gina Häußge
8d544e63f4
✨ pmgr: more plugin filters
...
Implements #3288
2019-10-25 14:18:04 +02:00
Gina Häußge
7e4cf6c5dc
✏️ Fix a help text
...
Closes #3311
2019-10-25 12:56:31 +02:00
Gina Häußge
c8d162c999
✏️ Clarify use of printer profile fields
2019-10-25 11:46:56 +02:00
Gina Häußge
017515dcc1
🚸 Display errors during loading
...
Also allow disabling loading screen.
Implements #3298
2019-10-24 17:14:33 +02:00
Gina Häußge
d8bd684f96
Merge branch 'maintenance' into devel
2019-10-23 14:04:09 +02:00
Gina Häußge
aad5c70eb0
🐛 Fix an escaping bug
2019-10-23 14:01:35 +02:00
Gina Häußge
ea2f0a9b17
♻ Minor refactoring & cleanup
2019-10-23 13:39:03 +02:00
Gina Häußge
c4131d5e4b
🐛 Fix anonymous users on tornado endpoints
...
Closes #2779
2019-10-23 13:38:46 +02:00
Gina Häußge
21127bcf2a
Merge branch 'maintenance' into devel
2019-10-23 12:30:06 +02:00
Gina Häußge
04da8afb07
Merge branch 'maintenance' of github.com:foosel/OctoPrint into maintenance
2019-10-23 12:00:30 +02:00
Gina Häußge
c38f06cce2
Merge branch 'staging/maintenance' into maintenance
2019-10-23 11:48:57 +02:00
Gina Häußge
968f952f69
Merge branch 'rc/maintenance' into staging/maintenance
2019-10-22 12:13:00 +02:00
Gina Häußge
8409fdaa48
Merge branch 'rc/maintenance'
2019-10-21 12:27:16 +02:00
Gina Häußge
f29e736427
🔖 Preparing release of 1.3.12
2019-10-21 12:26:04 +02:00
Gina Häußge
ac3b6f6df8
🐛 Fix broken sv helper
2019-10-14 17:56:45 +02:00
Gina Häußge
a4444ccb68
Merge pull request #3305 from RyuzakiKK/fix/systemd_doc
...
Fix systemd service documentation path
2019-10-14 16:23:51 +02:00
Ludovico de Nittis
270a0dcb1f
Fix systemd service documentation path
...
The previously suggested `service` folder is not available in a canonical
systemd installation. Instead new services should be placed in
`/etc/systemd/system/`
2019-10-11 22:41:58 +02:00
Gina Häußge
a889bec4d8
🐛 Solve sorted issues under Python 3.x
...
sorted does no longer support sorting None values under Python 3. This
patch introduces a utility function that ensures that None values are
replaced by a configurable default value ("" by default) and utilizes
it in places where sorted gets called with a custom sorting key that
can potentially consist of None values.
Closes #3300
2019-10-10 14:54:07 +02:00
Gina Häußge
7ee9bc32eb
☔ Aggressive escaping
2019-10-09 15:51:38 +02:00
Gina Häußge
fd62c1fa3d
☔ Set some more headers, remove CDN URL & remove unused JSESSIONID
...
* Set X-Content-Type-Options to nosniff
* Set X-Frame-Options to sameorigin (if not configured otherwise)
* SockJS iframe fallback no longer embeds sockjs library from a CDN
* SockJS no longer rewrites the unused JSESSIONID cookie
2019-10-08 16:41:42 +02:00
Gina Häußge
a445cfe65e
Merge pull request #3297 from mkobler/fix-typo
...
Fix minor typos
2019-10-08 11:21:17 +02:00
Gina Häußge
e20a9925dd
Merge pull request #3287 from FHeilmann/patch-2
...
ActionPrompts: More flexibility for selection_command
2019-10-08 11:20:54 +02:00
Gina Häußge
09a4fb2515
🐛 Fix merge error & add escaping
...
Closes #3296
2019-10-06 18:52:15 +02:00
Gina Häußge
cce7389a42
✨ SWU: More configuration options
...
Allow to select github_commit tracking, branch and pip target via UI.
Closes #3295
2019-10-06 18:32:19 +02:00
Gina Häußge
b138ea7a47
🐛 SWU: Fix OctoPrint version reporting
...
See #3295
2019-10-06 16:46:34 +02:00
Gina Häußge
3b708ce079
🔗 Fix a link
...
As mentioned in #3295
2019-10-06 16:45:13 +02:00
Gina Häußge
4441618be5
🐛 Fix a concurrent modification issue
2019-10-06 16:29:37 +02:00
Mike Kobler
0525c9ab40
Fix minor typos
2019-10-05 18:55:15 -05:00
Gina Häußge
0035e7c3ff
🐛 Fix a merge error
2019-10-02 22:34:39 +02:00
Gina Häußge
073060d253
✨ PMGR: Search box
...
Implements #3288
2019-09-26 20:26:47 +02:00
Florian Heilmann
55980a1c2c
Update AUTHORS.md
2019-09-25 22:12:51 +02:00
Florian Heilmann
852a2cf157
Fix indentation
2019-09-25 22:11:11 +02:00
Florian Heilmann
2e6ee57162
ActionPrompts: More flexibility for selection_command
...
Allow users to control how and where the choice is inserted into the response by explicitly including "{choice}" in the selection_command
2019-09-25 22:09:20 +02:00
Gina Häußge
5c54f16ece
🐛 Don't trigger pause on SD cancel
...
Trying to trigger pausing due to the M25 on an SD cancel could lead
to a dead lock, see #3125
2019-09-25 12:05:03 +02:00
Gina Häußge
04a13268ad
🚸 PMGR: Filter for plugin list
...
We can now filter all/bundled/3rdparty. Should improve overview.
2019-09-24 11:07:45 +02:00
Gina Häußge
49fdac7528
Merge branch 'maintenance' into devel
2019-09-23 15:26:18 +02:00
Gina Häußge
75f6ef4bae
Merge branch 'staging/maintenance' into maintenance
...
# Conflicts:
# .versioneer-lookup
2019-09-23 15:25:54 +02:00
Gina Häußge
9fd608691b
🔖 staging is now 1.3.12rc4.dev
2019-09-23 15:24:55 +02:00
Gina Häußge
a70a45f062
Merge branch 'staging/maintenance' into rc/maintenance
2019-09-23 12:59:49 +02:00
Gina Häußge
61b0845f19
🔖 Preparing release of 1.3.12rc3
2019-09-23 12:55:39 +02:00
Gina Häußge
30d618267f
☔ Protect against broken language packs
2019-09-20 13:20:46 +02:00
Gina Häußge
b9665a8af4
🐛 Don't try to trigger M112 on connection errors
...
Doesn't make sense, we don't HAVE a connection yet.
2019-09-19 10:19:19 +02:00
Gina Häußge
204d212323
Merge branch 'maintenance' of github.com:foosel/OctoPrint into maintenance
2019-09-18 14:28:15 +02:00
Gina Häußge
04528a635b
🐛 PMGR: Disable plugin mgmt while printer is busy
...
Not just when only actively printing.
Closes #3278
2019-09-18 14:27:10 +02:00
Gina Häußge
15522a98b0
🐛 GCODE viewer: get rid of deep clone
...
Fixes #3277
2019-09-18 13:45:01 +02:00
Gina Häußge
db1c18075f
☔ Some more escaping
2019-09-17 17:38:55 +02:00
Gina Häußge
3b556e9d79
Merge branch 'maintenance' into devel
2019-09-17 17:34:34 +02:00
Gina Häußge
8761273636
Merge branch 'staging/maintenance' into maintenance
2019-09-17 17:22:10 +02:00
Gina Häußge
08efe80304
🔖 staging/maintenance is now 1.3.12rc3.dev
2019-09-17 17:21:45 +02:00
Gina Häußge
c4258c5bb0
🔖 Preparing release of 1.3.12rc2, part 2
2019-09-17 16:20:44 +02:00
Gina Häußge
58799888b7
🐛 SWU: Fix wrong version check
...
Fixes #3273
2019-09-17 16:18:07 +02:00
Gina Häußge
fb6d57963b
🔖 Preparing release of 1.3.12rc2
2019-09-17 14:19:32 +02:00
Gina Häußge
03f228c0ef
☔ Extend safemode to language packs
...
Cherry-picked from cc1d88c
Implements #3271
2019-09-16 14:35:04 +02:00
Gina Häußge
93ae368f58
🐛 Escape single/double quotes in l10n strings
...
Cherry-picked from 72eef3e
Closes #3270
2019-09-16 14:34:21 +02:00
Gina Häußge
378752e155
🐛 GCODE viewer: Fix out-of-sync & slider issue, part 2
...
Now with all files...
Fixes #3272
2019-09-16 14:32:08 +02:00
Gina Häußge
bec307900d
🐛 GCODE viewer: Fix out-of-sync & slider issue
...
Fixes #3272
2019-09-16 14:27:30 +02:00
Gina Häußge
cc1d88c4c8
☔ Extend safemode to language packs
...
Implements #3271
2019-09-13 16:04:32 +02:00
Gina Häußge
72eef3e224
🐛 Escape single/double quotes in l10n strings
...
Closes #3270
2019-09-13 15:42:59 +02:00
Gina Häußge
84f6833597
🚨 Fix unused variable issue
2019-09-12 21:05:00 +02:00
Gina Häußge
2a94abdc49
Merge remote-tracking branch 'origin/devel' into devel
2019-09-12 20:51:06 +02:00
Gina Häußge
fab5f34aaa
🔀 Rebuilt CSS
2019-09-12 20:50:46 +02:00
Gina Häußge
76f79e5380
🔀 Migrate forcelogin changes to built-in login
2019-09-12 19:20:55 +02:00
Gina Häußge
1b25029207
🔀 Migrate user CLI to new access control
2019-09-12 17:44:33 +02:00
Gina Häußge
8df2a5436b
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/plugins/tracking/__init__.py
# src/octoprint/printer/standard.py
# src/octoprint/server/views.py
# src/octoprint/static/js/app/viewmodels/printerstate.js
# src/octoprint/static/js/app/viewmodels/users.js
# src/octoprint/timelapse.py
# src/octoprint/users.py
# src/octoprint/util/comm.py
2019-09-12 09:30:28 +02:00
Gina Häußge
72f005b7fe
🔖 maintenance is now 1.3.13.dev
2019-09-10 16:55:06 +02:00
Gina Häußge
0eac10d5a6
🔖 staging/maintenance is now 1.3.12rc2.dev
2019-09-10 16:54:20 +02:00
Gina Häußge
2a42f02aec
⬆️ Require newer environment for future upgrades
...
This is the last version that supports stock OctoPi 0.14, catering
towards the ancient setuptools and pip versions found on it becomes
more and more unjustifiable overhead.
2019-09-10 13:45:18 +02:00
Gina Häußge
7c48cfd0f7
🔖 Preparing 1.3.12rc1
2019-09-09 18:00:13 +02:00
Gina Häußge
bba796d551
☔ errortracking: filter specific callbacks
...
We don't want to get swamped by third party plugin error messages on
sentry as that costs money.
Blacklist astroprint messages since they caused issues in the past.
2019-09-09 13:51:54 +02:00
Gina Häußge
a855f3e62c
☔ Add fqcn of callbacks to exception loggers
...
Will allow us to filter for them.
2019-09-09 13:45:22 +02:00
Gina Häußge
5079e7e891
🐛 Clear user management dialogs on close
2019-09-09 12:54:03 +02:00
Gina Häußge
ddc948fa94
🔖 errortracking: new DSNs for 1.3.12rc1
2019-09-06 17:09:11 +02:00
Gina Häußge
f88f2b25ea
🐛 tracking: Only track plugins in pong event
2019-09-06 16:55:27 +02:00
Gina Häußge
ea59dab7ab
✨ Optional print start confirmation
...
Implements #3250
2019-09-05 14:51:51 +02:00
Gina Häußge
f0914c2214
🐛 appkeys: empty user_id = unset user_id
...
Also some more debug logging
Closes #3257
2019-09-05 14:40:40 +02:00
Gina Häußge
b3e76c3ecc
🐛 plugin.version can be None, episode 2
2019-09-05 14:25:17 +02:00
Gina Häußge
a4d5acb0b8
Merge pull request #3263 from gdombiak/printer_profiles_add_del_events
...
All printer profile events are now triggered
2019-09-05 09:34:12 +02:00
Gaston Dombiak
79b66f17b6
Events PRINTER_PROFILE_ADDED and PRINTER_PROFILE_DELETED are now triggered
2019-09-04 22:57:17 -07:00
Gina Häußge
bcb6c7a1d4
Create SECURITY.md
2019-09-04 18:03:02 +02:00
Gina Häußge
36198c684f
🐛 Fix scoping issue
...
Closes #3247
2019-09-04 16:22:31 +02:00
Gina Häußge
a3a60c5967
☔ appkeys: better handling of empty request body
2019-09-04 10:59:03 +02:00
Gina Häußge
6df3cb5c12
🐛 plugin.version may be None
2019-09-04 10:33:42 +02:00
Gina Häußge
0611329a6d
Merge pull request #3256 from byarmis/fix/byarmis/3253
...
Resolve error detecting Python version
2019-09-04 10:01:43 +02:00
Gina Häußge
2f90fca5ce
Merge pull request #3249 from gdombiak/printer_profile_events
...
Printer profile events
2019-09-04 09:51:01 +02:00
Ben Yarmis
e4e97190da
Resolving issue #3253
...
Added myself to the AUTHORS.md file
2019-08-25 01:48:11 -05:00
Gaston Dombiak
9c748a85b4
removed ' to march master
2019-08-12 20:40:17 -07:00
Gaston Dombiak
78c2199d89
Fire PRINTER_PROFILE_MODIFIED when printer profile was modified
2019-08-12 20:32:42 -07:00
Gina Häußge
0e67906d1e
♻ tracking: Send plugin list only once per day
2019-07-29 17:38:18 +02:00
Gina Häußge
4c602cba2e
☔ Further hardening against corrupt recovery data
2019-07-29 16:55:32 +02:00
Gina Häußge
89255e2ec9
☔ Harden against corrupt recovery data
...
Closes #3199
2019-07-29 16:52:05 +02:00
Gina Häußge
372b3662e9
📝 Add docs for printTimeLeftOrigin field
...
Closes #3203
2019-07-29 16:37:52 +02:00
Gina Häußge
e007dbaf4c
🐛 Fix file selection not being cleared on disconnect
...
Closes #3224
2019-07-29 13:27:08 +02:00
Gina Häußge
dbe07af426
Merge pull request #3202 from cbxbiker61/devel
...
fix RuntimeError: dictionary changed size during iteration
2019-07-25 10:17:45 +02:00
Gina Häußge
f67f9b9399
🐛 Fix --admin flag on add command
2019-07-22 15:06:09 +02:00
Gina Häußge
c6c5328418
✨ Add list/activate/deactivate commands
2019-07-22 15:05:51 +02:00
Gina Häußge
accbfc2b45
🐛 Fix settings passing
2019-07-22 15:04:27 +02:00
Gina Häußge
9976f2b7a3
🐛 Fix a broken import
2019-07-22 14:00:54 +02:00
Gina Häußge
f249563b2c
🐛 At least use configured user manager class
...
Making the plugin hook work would be a ton of overhead due to the
components dictionary that needs to be supplied to it for user manager
initialization, however at the very least we should support
configuration of the used user manager class.
Both features are rarely used if at all, but we should be aware of this.
Also changed some wording, fixed to unicode and removed redundancy from
the sub commands (e.g. just "add" instead of "add_user") and flags.
2019-07-22 14:00:43 +02:00
Aliaksei Pilko
09e023917c
Amend settings ref
2019-07-19 18:08:31 +01:00
Aliaksei Pilko
799b86b287
Update copyright
2019-07-18 15:41:32 +01:00
Aliaksei Pilko
ea1bcf8e5d
Add user accounts cli
...
Add forgot password link at login
Update AUTHORS.md
2019-07-17 19:54:21 +01:00
Piotr Usewicz
ee93e25ffd
Rename currentLine to current_line
2019-07-16 11:02:52 +02:00
Gina Häußge
d25f664be3
🐛 printer safety: Anycubic 1.1.2 is already safe
...
Fix off by one error.
See also https://community.octoprint.org/t/octoprint-tells-me-that-my-printers-firmware-lacks-mandatory-safety-features-what-does-this-mean/350/61
2019-07-16 10:47:42 +02:00
Gina Häußge
3bffe4f7cb
Merge pull request #3225 from eyal0/patch-4
...
Quote arguments in pip install
2019-07-11 11:20:20 +02:00
Eyal
f140dd9d44
Quote arguments in pip install
...
If the argument is not quoted, the shell will interpret the braces.
2019-07-08 21:20:08 -04:00
Gina Häußge
d44747b39a
🐛 Fix long_running_command flag for M191
...
Closes #3220
2019-07-08 11:26:02 +02:00
Gina Häußge
f2da9d8d7d
Merge pull request #3217 from gdombiak/docs_typo
...
Fixed typo in chambers documentation
2019-07-05 11:16:24 +02:00
Gaston Dombiak
5483ef7cd4
Fixed typo in chambers documentation
2019-07-04 23:19:35 -07:00
Gina Häußge
85d212ba97
☔ More resilience against garbage on the line on initial connect
...
We'll now send the hello command twice, and a third time if we run into
a timeout during initial connect.
Closes #3206
2019-07-02 16:35:57 +02:00
Gina Häußge
44af09580a
🚸 Make clear when GCODE scripts are executed
...
Closes #3198
2019-07-02 13:56:19 +02:00
Gina Häußge
530fca95e4
☔ Include wizard flag in etag
...
Additional protection against #3211 and #3166
2019-07-02 13:48:28 +02:00
Gina Häußge
59ae7e39f2
☔ Only set relevant cache control headers
...
We don't want to accidentally overwrite anything again.
2019-07-02 13:43:57 +02:00
Gina Häußge
72167d14d2
🐛 Fix caching headers on / in case of wizards
...
Revalidation header from ceade46dd7 was
overwriting custom header in case of active wizards, causing the browser
to cache HTML code with enabled wizards.
This fixes this by checking if the headers in question actually need to
be set and aren't already there.
2019-07-02 12:44:29 +02:00
Gina Häußge
2c6568acd1
✨ Mimetype guessing for the webcam test
...
Related to #3207
2019-07-01 17:17:34 +02:00
Gina Häußge
e27c216a05
Merge branch 'master' into maintenance
2019-06-27 10:19:12 +02:00
Gina Häußge
7b4c148dd7
✨ tracking: track slicing events
...
Gives us some numbers the next time someone complains about
slicer support.
2019-06-26 19:27:57 +02:00
Gina Häußge
a924520dd6
✨ tracking: track plugins & versions on startup
...
Requested feature by plugin developers, will also allow us to compile
stuff like top10 lists.
2019-06-26 18:32:33 +02:00
Kelly Anderson
1c3e463ac6
fix RuntimeError: dictionary changed size during iteration
2019-06-22 18:11:36 -06:00
Gina Häußge
e88eb6dd85
☔ PMGR: Prevent installs while throttled
2019-06-19 15:48:18 +02:00
Gina Häußge
59dfa994bd
☔ SWU: Prevent updates while throttled
2019-06-19 15:41:11 +02:00
Gina Häußge
6959ce4d38
💚 Try to fix doc build by pinning a dep, 2nd try
2019-06-19 11:52:06 +02:00
Gina Häußge
08bc0082cf
💚 Try to fix doc build by pinning a dep
2019-06-19 11:46:53 +02:00
Gina Häußge
6069d74a54
💚 Fix unit tests
2019-06-18 13:35:21 +02:00
Gina Häußge
68ee7030f1
☔ Send M112 on disconnect due to error (configurable)
...
Try to disable heaters and such. Might fail, but worth a try at least.
Only do that if we are not SD printing though.
2019-06-17 18:35:44 +02:00
Gina Häußge
81342acccc
☔ Detect endless resend requests & abort
...
If the printer keeps requesting the same line over and over again,
something is either seriously wrong with the line or with the connection
In any case, log an error and disconnect.
2019-06-17 18:35:44 +02:00
Gina Häußge
e029f33901
Merge pull request #3195 from dmweis/patch-2
...
Fix typo
2019-06-11 10:41:33 +02:00
David Weis
7bd8cff137
Fix typo
2019-06-08 14:14:58 +01:00
Gina Häußge
055dcfa0e1
Merge pull request #3192 from dovecode/translatable-string-fixes
...
Various translatable text fixes and fixed plugin install message during restore
2019-06-05 13:32:10 +02:00
Nicolai Nielsen
8acf417383
Removed extra curly brace in plugin install message during restore
...
Fixed plugin install message for UI (never worked!)
Fixed grammar in connectivity initial setup
Added space at end of lines for several multiline messages
2019-06-04 11:47:41 -05:00
Gina Häußge
b50e1aee8a
🚨 More consistent whitespace
2019-06-04 15:20:27 +02:00
Gina Häußge
c714bce17e
Merge pull request #3191 from Flamenco/my_maintenance
...
Add documentation when target temperature is set to 0
2019-06-04 15:19:23 +02:00
Steven Spungin
a9a8e48489
Add new author
2019-06-04 09:00:35 -04:00
Steven Spungin
9dec840818
Add documentation when target temperature is set to 0
2019-06-04 08:57:10 -04:00
Gina Häußge
9af125ca6d
🚨 Consistent whitespace
2019-06-03 13:25:02 +02:00
Gina Häußge
1f4fabe6ef
🐛 PMGR: Refresh data from server if needed on endpoint GET
...
Closes #3190
2019-06-03 12:17:03 +02:00
Gina Häußge
121f36704d
Merge pull request #3184 from dovecode/action_prompt_warning_missing_space
...
Add space in disable warning message
2019-05-29 18:13:51 +02:00
Nicolai Nielsen
85ff545c07
Add space in disable warning message
2019-05-29 10:10:52 -05:00
Gina Häußge
3662c84de5
Merge branch 'pr/3183' into maintenance
2019-05-28 16:35:00 +02:00
Gina Häußge
79558fdfbf
Merge pull request #3179 from dovecode/uninstall_plugin_confirmation
...
Added confirmation dialog before uninstalling plugin
2019-05-28 16:21:44 +02:00
Nicolai Nielsen
11040f272a
Added confirmation dialog before uninstalling plugin
...
Added confirmation dialog before disabling plugin
Added configuration options to control the confirmation dialogs
Defaults are not to confirm for disabling but confirm for uninstalling
2019-05-27 19:03:29 -05:00
Janne Mäntyharju
fa2716c65c
Calculate filament usage for all extruders is M605 duplicate/mirror command is used (Issue #3075 )
2019-05-27 22:02:34 +03:00
Gina Häußge
768b06e35a
✨ Allow disabling of closing dialogs by click outside
...
New setting: Settings > Appearance > Close dialogs by clicking outside
Implements #3162
2019-05-27 16:58:45 +02:00
Gina Häußge
0820c23aea
Merge pull request #3180 from AndyQ/clear_term_patch
...
Added button to terminal window to all log window to be cleared out
2019-05-27 16:26:34 +02:00
Gina Häußge
361fbaa366
🐛 pmgr: Smaller height for plugin list
...
Should work around #3161
2019-05-27 16:22:50 +02:00
Gina Häußge
a91359f2af
🚸 Change icon & wording
2019-05-27 16:21:03 +02:00
AndyQ
4bfabf82ae
Fixed typo and changed link to clearAllLogs
...
Both logs (fancy and plain) cleared out at same time
2019-05-27 15:01:14 +01:00
Gina Häußge
c90f556fe9
📝 github meta: Clarify devel vs maintenance base
2019-05-27 11:14:31 +02:00
AndyQ
352b190a72
Added button to terminal window to all log window to be cleared out
2019-05-26 12:49:03 +01:00
Gina Häußge
e9b0bd9e65
Create FUNDING.yml
2019-05-23 13:08:50 +02:00
Gina Häußge
c8ea808d93
🚸 Include seconds in upload date
...
See #3174
2019-05-21 15:18:24 +02:00
Gina Häußge
d40c3e6241
🚸 Add upload date to selected file information
...
Should make it more clear when an update due to a new upload happens.
Closes #3174
2019-05-21 15:05:28 +02:00
Gina Häußge
e94f789b72
🐛 Always report all tools in sharedNozzle setups
...
Fixes #3177
See also https://community.octoprint.org/t/9620/4
2019-05-21 14:29:15 +02:00
Gina Häußge
9ff44c49a6
🐛 Fix broken tool filtering
2019-05-21 14:20:41 +02:00
Gina Häußge
c7b933ba00
🐛 forcelogin: Do not touch static endpoints
...
Closes #3176
2019-05-21 12:07:39 +02:00
Gina Häußge
6765b25803
🚸 action prompt: show icon for dismissed prompts in navbar
2019-05-21 10:37:47 +02:00
Gina Häußge
59b60f5dad
🐛 action prompt: close & delete prompt on disconnect
...
As mentioned in #3171
2019-05-20 19:55:10 +02:00
Gina Häußge
2822992843
🚸 action prompt: allow to cancel dialogs
...
Closes #3171
2019-05-20 19:49:06 +02:00
Gina Häußge
1b82aa859f
🐛 Fix accidental test code commit
2019-05-20 16:48:00 +02:00
Gina Häußge
12be637f85
✨ Add setting for parity double open workaround
...
Can now be set to be applied if possibly needed (OS is a Debian Linux),
always or never.
Closes #3169 , enhances #3167
2019-05-20 16:46:45 +02:00
Kyle Evans
3bd9d11fc3
comm: Don't open twice on FreeBSD
...
Originally introduced by PR #673 to fix reconnect issues on pyserial,
OctoPrint will first open the serial port with PARITY_ODD then close it
again and reopen with the desired PARITY_NONE. This works around issues
likely sitting somewhere in the linux tty layer, at least on some
distributions, that don't necessarily exist on other platforms.
Stop doing the workaround on FreeBSD to start with, as this is the only
platform I can effectively test. I suspect MacOS/Windows likely also don't
need to do this.
2019-05-17 22:43:13 -05:00
Gina Häußge
e864d6b03e
🚸 Ensure line breaks on copy of terminal contents
2019-05-15 17:35:57 +02:00
Gina Häußge
547db7c1f5
☔ pmgr: better handling of unexpected repository format
...
Closes #3157 and Sentry SERVER-116
2019-05-15 17:34:54 +02:00
Gina Häußge
d6516e4a4c
🐛 tracking: handle time==None case
...
Closes #3156 and Sentry SERVER-WR
2019-05-15 15:19:57 +02:00
Gina Häußge
2387b4a771
🐛 backup: make sure exclude is always a list
...
Closes #3155 and Sentry SERVER-119
2019-05-15 15:15:25 +02:00
Gina Häußge
b03d43156d
🐛 Strip interface tags from addresses on local check
...
Closes #3143 and Sentry SERVER-11B
2019-05-15 13:19:14 +02:00
Gina Häußge
07423712a6
🐛 Fix wrong variable name in exception handler
...
Closes #3153 & Sentry SERVER-11A
2019-05-15 11:48:45 +02:00
Gina Häußge
4b04e8fd79
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
2019-05-14 11:22:35 +02:00
Gina Häußge
2edd2ba887
Merge branch 'maintenance' of github.com:foosel/OctoPrint into maintenance
2019-05-14 11:21:19 +02:00
Gina Häußge
fcef3a1bbd
Merge branch 'staging/maintenance' into maintenance
2019-05-14 11:21:01 +02:00
Gina Häußge
d1d24dba9a
Merge branch 'rc/maintenance' into staging/maintenance
2019-05-14 11:18:37 +02:00
Gina Häußge
81735d07c9
Merge branch 'rc/maintenance'
2019-05-13 14:54:51 +02:00
Gina Häußge
2c640ff8b8
🔖 Preparing release of 1.3.11
2019-05-13 13:52:32 +02:00
Gina Häußge
0331a25ae3
📝 Reflect API key changes in docs
...
Closes #3121
2019-05-13 12:55:25 +02:00
Gina Häußge
326422013a
Merge pull request #3147 from esver/autofocus
...
Add autocofus to the username in the login plugin
2019-05-13 11:23:37 +02:00
Olivier Esver
9b4da62e69
Add autocofus to the username in the login plugin
2019-05-11 20:53:51 +02:00
Gina Häußge
c0096c41a0
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/cli/plugins.py
# src/octoprint/events.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/logging/__init__.py
# src/octoprint/plugins/announcements/__init__.py
# src/octoprint/plugins/appkeys/__init__.py
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/plugins/forcelogin/static/js/main.js
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/printer_safety_check/__init__.py
# src/octoprint/plugins/softwareupdate/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/__init__.py
# src/octoprint/printer/estimation.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/api/settings.py
# src/octoprint/server/api/system.py
# src/octoprint/server/apps/__init__.py
# src/octoprint/server/util/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/server/views.py
# src/octoprint/settings.py
# src/octoprint/slicing/__init__.py
# src/octoprint/static/js/app/helpers.js
# src/octoprint/static/js/app/main.js
# src/octoprint/static/js/app/viewmodels/settings.js
# src/octoprint/static/js/app/viewmodels/temperature.js
# src/octoprint/templates/dialogs/settings/accesscontrol.jinja2
# src/octoprint/templates/dialogs/settings/api.jinja2
# src/octoprint/templates/initscript.jinja2
# src/octoprint/templates/tabs/control.jinja2
# src/octoprint/timelapse.py
# src/octoprint/users.py
# src/octoprint/util/comm.py
# src/octoprint/util/gcodeInterpreter.py
# src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py
# src/octoprint/vendor/sockjs/tornado/transports/websocket.py
# translations/messages.pot
2019-05-10 17:13:55 +02:00
Gina Häußge
b46a66caa8
♻ Slight refactoring...
2019-05-09 15:40:51 +02:00
Gina Häußge
6711813fef
Merge pull request #3134 from tduehr/remote
...
Remote user support
2019-05-09 15:23:37 +02:00
Timur Duehr
7726e5c04e
review fixes
2019-05-09 15:14:51 +02:00
Timur Duehr
495d99fbe9
Add support for remote users
2019-05-09 15:14:36 +02:00
Gina Häußge
a35b7cddf2
🐛 Only add response text if there is one
2019-05-09 15:08:48 +02:00
Gina Häußge
f2af5e8b86
💬 Change wording to reflect more potential error cases
...
Closes #3133
2019-05-09 14:59:00 +02:00
Gina Häußge
289c3a4d0f
🐛 Fix handling of Empty exception in send loop
...
Closes #3096
2019-05-09 13:39:56 +02:00
Gina Häußge
4cb67fe72c
☔ Don't allow NaN in generated JSON output on APIs
...
See also #3022
2019-05-08 17:52:27 +02:00
Gina Häußge
b79fc94a4e
☔ Protect against NaN & Inf in GCODE
...
Also cleanup broken metadata entries that contain invalid json.
Fixes #3022
2019-05-08 17:49:53 +02:00
Gina Häußge
fca626a3d6
✨ Support tags on GCODE script hook
...
Also add `plugin:<plugin id>` to script parts from plugins.
Implements #3101
2019-05-08 16:55:18 +02:00
Gina Häußge
f5a04973c4
🐛 Fix emergency codes not jumping queues
...
Fixes #3104
2019-05-07 15:10:18 +02:00
Gina Häußge
1c9ff91bae
♻️ Make emergency codes configurable
2019-05-07 15:09:41 +02:00
Gina Häußge
e1e521300b
🐛 Only do autologin if not actively logged out
...
Fixes #3142
2019-05-07 13:11:33 +02:00
Gina Häußge
c1e8bc717a
🐛 gcodeviewer: fix layers vanishing on rerender
...
Fixes #3143
2019-05-07 12:33:19 +02:00
Gina Häußge
22d7392769
🔊 gcodeviewer: Increase logging
2019-05-07 11:09:42 +02:00
Gina Häußge
904e7d2ecd
🐛 gcode viewer: do not invert axes
...
The axis inversion is only relevant to the control panel (depends on
how the print head is positioned), NOT the rendition of the GCODE.
Fixes #3137
2019-05-03 17:26:55 +02:00
Gina Häußge
b3173386ae
🐛 modals: re-add missing minHeight support
2019-05-03 16:44:38 +02:00
Gina Häußge
1e3b8dfb2c
Merge pull request #3131 from rfinnie/multiple-events
...
[Request] Allow subscriptions of multiple events
2019-05-03 16:08:46 +02:00
Gina Häußge
94d172ab67
Merge branch 'maintenance' into multiple-events
2019-05-03 15:57:50 +02:00
Gina Häußge
7dac6ca433
Merge pull request #3126 from jackwilsdon/toggle-search-filtering
...
Add option for disabling filters on search results
2019-05-03 15:32:51 +02:00
Ryan Finnie
9aeeb5fecc
Allow subscriptions of multiple events
...
events > subscriptions[] > event may be either a string (existing
functionality) or now a list of strings. If a list, the subscriptions
are treated the same for each event in the list.
To make it possible for command subscriptions to determine which event
was triggered, a {__eventname} substitution has been added.
2019-04-24 10:11:09 -07:00
Gina Häußge
52f65b469d
Merge branch 'staging/maintenance' into maintenance
2019-04-24 16:29:20 +02:00
Gina Häußge
0843c0fbc7
📝 Reflect API key changes in docs
...
Closes #3121
2019-04-24 16:26:10 +02:00
Jack Wilsdon
11607fbc73
Add jackwilsdon to author list
2019-04-20 15:53:55 +01:00
Jack Wilsdon
1521b76090
Add option for disabling filters on search results
2019-04-20 15:24:06 +01:00
Gina Häußge
a33a7b4d67
Merge branch 'staging/maintenance' into maintenance
2019-04-11 15:25:12 +02:00
Gina Häußge
c00fdbf73b
🔖 staging/maintenance is now 1.3.11rc4.dev
2019-04-11 15:21:39 +02:00
Gina Häußge
af32858549
🔖 Preparing release of 1.3.11rc3, part 2
2019-04-11 12:21:24 +02:00
Gina Häußge
d1104ddbae
🐛 Fix file list refresh after SD list update
2019-04-11 12:14:59 +02:00
Gina Häußge
e2519abbbe
✨ Add setting for exclusive comm port flag
...
Just in case there are issues with that on some setups as first RC seem
to indicate, we make it toggleable.
2019-04-11 12:14:38 +02:00
Gina Häußge
967b3bbff8
🔖 Preparing release of 1.3.11rc3
2019-04-10 17:38:17 +02:00
Gina Häußge
9721aec32a
🐛 printer safety: Fix for unicode issues
...
Fixes #3090
2019-04-10 17:15:59 +02:00
Gina Häußge
68952c20bd
⏪ Switch lines read from serial back to bytes
...
While long term we want to have unicode here, the rest of the code
is not even remotely prepared for handling utf-8 strings as visible in
the large amount of unicode issues visible in sentry.
So for now we go back to byte objects and fix #3091 differently
2019-04-10 17:15:58 +02:00
Gina Häußge
03e328fd13
📝 Fix a documentation issue
...
Fixes #3117
2019-04-10 17:13:29 +02:00
Gina Häußge
9775d99feb
🔇 error tracking: mute tornado's WebSocketErrors
2019-04-10 12:03:45 +02:00
Gina Häußge
bfcff9a1cd
🐛 Fix some potential encoding errors
2019-04-10 12:03:31 +02:00
Gina Häußge
5ca286f4e3
🔇 error tracking: mute ispErrors
2019-04-10 11:39:02 +02:00
Gina Häußge
7dae700215
🐛 sockjs-tornado: Handle websocket errors
2019-04-09 17:32:29 +02:00
Gina Häußge
58806a3d00
🔧 error tracking: update DSNs
2019-04-09 17:22:16 +02:00
Gina Häußge
72cc1afb45
🐛 Refresh connection tab on disconnect
...
That way we'll hopefully notice vanishing/changed ports.
Potential fix for #3111 , waiting for test results from @arhi
2019-04-09 17:00:57 +02:00
Gina Häußge
323131cbc5
☔ Harden against estimation exceptions
2019-04-09 16:56:17 +02:00
Gina Häußge
f389773036
☔ Make sure rolling window is at least 1
...
See #3116
2019-04-09 16:56:02 +02:00
Gina Häußge
0a04043922
🐛 Fix potential division by zero
...
Fixes #3116
2019-04-09 16:55:35 +02:00
Gina Häußge
84fa3b6073
🐛 Don't log empty lines
...
See also #3115
2019-04-09 11:07:11 +02:00
Gina Häußge
d6576306b0
🐛 Add missing rstrip
...
Fixes #3115
2019-04-09 11:06:04 +02:00
Gina Häußge
8970fb42b1
✨ error tracking: further filtering
2019-04-08 14:08:57 +02:00
Gina Häußge
55e8cc1118
☔ more type annotations
2019-04-08 13:05:27 +02:00
Gina Häußge
43e2f79575
🐛 Fix a unicode issue
...
Fixes #3109
2019-04-08 13:05:02 +02:00
Gina Häußge
132e2cb244
🐛 virtual printer: Fix handling of closed connection
...
Closes #3114
2019-04-08 12:24:24 +02:00
Gina Häußge
de6d1afdd6
✨ Add flag to ignore incomplete startup
...
See https://github.com/foosel/OctoPrint/issues/3103#issuecomment-480612935
2019-04-08 12:12:00 +02:00
Gina Häußge
0a1cc68a6b
♻ error tracking: minor restructuring
2019-04-05 18:36:50 +02:00
Gina Häußge
f1309dad1d
✨ error tracking: filter all exceptions triggered in plugins
...
The new extra parameter passed to exception loggers throughout
OctoPrint allows even more aggressive filtering to reduce the noise
further.
2019-04-05 17:48:52 +02:00
Gina Häußge
b353c4eee2
✨ extra logging parameter to add plugin identifier
...
Will allow to identify logged exceptions originating from calling
plugins, but also log plugin identifiers directly in the log message
if so desired.
2019-04-05 17:47:36 +02:00
Gina Häußge
34c30ed73f
🐛 Fix wrong textual representation of STARTING state
...
See comment/log files in #3104
2019-04-05 16:23:11 +02:00
Gina Häußge
c28faa8032
☔ SWU: empty restart command == unset
2019-04-05 15:37:25 +02:00
Gina Häußge
8da5bb2d42
🐛 Fix bug in port detection
...
Closes #3108
2019-04-05 15:19:58 +02:00
Gina Häußge
54c885f1ad
☔ Prevent issues if hash is n/a
...
Apparently it can happen that no hash is available for an STL file.
See SERVER-TQ in Sentry.
So let's be a bit more careful here.
Closes #3107
2019-04-05 10:24:41 +02:00
Gina Häußge
65fe048ade
☔ error tracking: ignore RequestExceptions
...
We don't want to get error events every time someone's net connection
goes down or the webcam is misconfigured.
2019-04-05 10:17:12 +02:00
Gina Häußge
7efcf00baf
Merge pull request #3106 from hlovdal/explicit_python_version
...
README: Use explicit python version for virtualenv
2019-04-05 09:47:52 +02:00
Håkon Løvdal
a3254466f7
Whitespace fixes
2019-04-05 01:10:30 +02:00
Håkon Løvdal
f8dc504773
Add example of using explicit python version
2019-04-05 01:10:30 +02:00
Gina Häußge
3574c2ddf9
🐛 virtual printer: Fix yet another unicode issue
...
Closes #3105
2019-04-04 19:05:17 +02:00
Gina Häußge
1dc0f1fb31
☔ Define empty UI_API_KEY to be backwards compatible
...
Some plugins rely on this to be defined, let's give them some more time
to update.
2019-04-04 18:55:24 +02:00
Gina Häußge
30ddbfd324
Merge branch 'staging/maintenance' into maintenance
2019-04-04 17:12:01 +02:00
Gina Häußge
5c522d86ca
Merge remote-tracking branch 'origin/staging/maintenance' into staging/maintenance
2019-04-04 17:09:11 +02:00
Gina Häußge
f785c8180b
🔖 staging/maintenance is now 1.3.11rc3.dev
2019-04-04 17:08:33 +02:00
Gina Häußge
18e7d2b72a
🔖 Preparing release of 1.3.11rc2
2019-04-04 14:26:01 +02:00
Gina Häußge
410c3ee5f6
☔ error tracking: ignore errors from packed_plugins.js
2019-04-04 14:12:19 +02:00
Gina Häußge
48825fd4c2
⬆ error tracking: update js sentry sdk
2019-04-04 14:11:30 +02:00
Gina Häußge
ff9c83ea25
☔ Don't confuse users with pip's "OMG PY2.7 IS EOL!!1!" message
...
We know that python 2.7 is about to reach end of life. We are making
preparations for this in the devel branch. We don't need pip going
around and alarming our users about something they cannot solve, and
which pretty much is already solved anyhow.
So we nuke this stupid message present in current pip versions. Hard.
See also #2988
2019-04-04 11:51:16 +02:00
Gina Häußge
2c18a40dcb
⬆ Update bootstrap modal
...
Fixes #3095
2019-04-01 14:47:42 +02:00
Gina Häußge
0b6dd7e76e
🐛 backup: exclude timelapse_tmp if timelapse is excluded
...
Fixes #3098
2019-04-01 14:28:40 +02:00
Gina Häußge
d68c7bfc67
☔ More resilience against platform startup issues
...
Might solve problems like #3100 , but that is only a shot in the dark at
this point.
2019-04-01 13:57:29 +02:00
Gina Häußge
c879ad27f4
♻ Turn lines read from serial into unicode
...
Backported from devel branch.
Should also fix #3091
2019-04-01 13:56:19 +02:00
Gina Häußge
d1914824c6
🐛 Don't read returncode on async commands
2019-03-29 17:43:45 +01:00
Gina Häußge
79196eeaf7
🔇 Match up log level
2019-03-29 17:37:02 +01:00
Gina Häußge
6491db730d
☔ Harden against broken configs
...
See Sentry issue SERVER-BF
2019-03-29 17:22:00 +01:00
Gina Häußge
bd07cda205
✨ error tracking: support ignoring specific exceptions
...
We are not interested in any SerialExceptions raised in the comm layer
due to people ripping out cables or having otherwise broken comms.
2019-03-29 16:38:15 +01:00
Gina Häußge
9c7ca0ab7a
✏ Add thanks to sentry.io
2019-03-29 16:34:48 +01:00
Gina Häußge
c4da5d6764
🔇 Some changes in what gets reported as error
2019-03-29 15:27:16 +01:00
Gina Häußge
47187c233d
🐛 Default value for self._errorValue
2019-03-29 15:08:44 +01:00
Gina Häußge
982ed793d9
📈 error tracking: change DSNs
2019-03-29 14:32:34 +01:00
Gina Häußge
718306073e
♻ error tracking: Restrict what gets tracked
...
We are only interested in
* Exceptions that are
* logged either in octoprint.* or tornado.* and not from third party
plugins or unhandled
Implements #3094
2019-03-29 14:12:23 +01:00
Gina Häußge
df6e94f7a3
🐛 Better validation of tool parameter on /api/printer/tool
...
Fixes #3092
2019-03-28 20:21:44 +01:00
Gina Häußge
1a2739c640
🐛 Fix /api/printer/tool endpoint
...
Fixes #3090
Fixes SERVER-24
2019-03-28 19:58:42 +01:00
Gina Häußge
9d318a4031
☔ More hardening against invalid language packs
...
See issue SERVER-G in Sentry
2019-03-28 14:44:37 +01:00
Gina Häußge
292d608b97
🐛 Fix missing _chamberTemp definition
...
Closes #3089
2019-03-28 13:38:33 +01:00
Gina Häußge
2d7cb40633
🐛 Fix for plugin vars that contain unicode
...
ETag calculation could otherwise fall flat on its face.
Fixes #3088
2019-03-28 13:18:55 +01:00
Gina Häußge
ce9315850f
🔖 maintenance is now 1.3.12.dev
2019-03-28 12:25:22 +01:00
Gina Häußge
b8dbc627cb
🔖 staging/maintenance is now 1.3.11rc2.dev
2019-03-28 12:23:25 +01:00
Gina Häußge
73df8c2407
🔖 Preparing release of 1.3.11rc1, part 2
2019-03-28 10:54:19 +01:00
Gina Häußge
55ec8b1809
🐛 Partial revert of always sending SettingsUpdated event
...
It was causing a ton of issues with backend code using `Settings.save`
to persist changes outside of REST API calls, triggering configuration
update dialogs in the frontend way too often and when not needed.
Added a flag instead to cause the `save` method to trigger an event and
setting that to False by default. Settings REST API uses it, other
callees in e.g. plugin code will be able to as well in the future if
necessary.
It would be cleaner to always trigger this event and adjust calling code
and frontend code to compensate, but with third party plugins out there
this is not going to happen reliably so we go this route.
2019-03-28 10:52:15 +01:00
Gina Häußge
33eba705bf
🐛 invalid API key = no API key
2019-03-27 17:05:30 +01:00
Gina Häußge
9ec3a6ae7a
➖ Remove python-dateutil dependency
...
It's no longer installable from source under OctoPi 0.14 due to an
unpinned setup_requires dependency on setuptools_scm, and since we still
have to support that installation scenario that is a problem. Thankfully
it's only used in the plugin manager for parsing the notice date, and
we can just use datetime.strptime for that.
2019-03-27 14:34:13 +01:00
Gina Häußge
ec2ba63425
🔖 Preparing release of 1.3.11rc1
2019-03-26 14:58:45 +01:00
Gina Häußge
6097222b7b
♻ Remove onWizardPreventSettingsRefreshDialog
...
Makes the whole wizard stuff less complex.
2019-03-26 14:46:06 +01:00
Gina Häußge
40396847e3
⬆ werkzeug.contrib.cache is now cachelib
2019-03-26 10:12:58 +01:00
Gina Häußge
a296574c70
🐛 Fix handling of invalid API keys
2019-03-25 11:31:56 +01:00
Gina Häußge
547962f4bc
🐛 Fix login via Authorization header
2019-03-25 11:31:41 +01:00
Gina Häußge
1d2ceefb72
🐛 appkeys: Fix in case of disabled access control
...
Closes #3071
2019-03-22 19:45:22 +01:00
Gina Häußge
3d4422021e
⬆ Updated various dependencies
...
Closes #3074
2019-03-22 18:52:16 +01:00
Gina Häußge
3b5c11a2bb
✏ Typo
2019-03-20 14:28:35 +01:00
Gina Häußge
4908d94c97
🐛 Fix initialization of temperature graph
...
Was broken by #3072 & followup work
2019-03-20 13:09:58 +01:00
Gina Häußge
17a7e508c3
♻ Remove UI_API_KEY & API disabling
...
With the inclusion of the ForceLogin plugin that doesn't serve a real
purpose anymore in most cases, and it was only ever more of a rate
limiting feature than an actual security measure anyhow. Plus it lead to
a ton of false security alarms along the lines of "OMG UI_API_KEY IN THE
SOCKET HANDSHAKE, PWNED!!1!".
On stock installations, the behaviour will be unchanged since the
ForceLogin plugin prevents any kind of API access without authentication
that isn't the login request itself, including access to blueprint
plugin endpoints that do not specify that they are unprotected.
If a user decides to disable the ForceLogin plugin but keep access
control enabled, anonymous API access will now be possible without API
key or the need to fetch the current UI API Key from the server via the
websocket or the source code of the index page. This is a change
compared to earlier behaviour, but with a very limited impact as as
mentioned the UI API Key was so far also easily obtainable either via
the websocket or by parsing a fresh copy of the HTML page.
If the user decides to disable access control, there's no change
compared to previous behaviour.
Disabling the API - which was so far the only real use case for having
the UI API Key in the first place apart from basic rate limiting - has
also been removed. Allowing this only made things horribly complex as
the default frontend fully depends on the API's availability. Users
who do not wish third parties to have access to the API should
simply leave the ForceLogin plugin enabled.
2019-03-19 17:14:19 +01:00
Gina Häußge
0069c94d35
🐛 forcelogin: add favicon meta tags
2019-03-19 16:55:02 +01:00
Gina Häußge
99e7824913
🐛 Fix some outdated links to the forum
2019-03-19 15:00:10 +01:00
Gina Häußge
ceade46dd7
🐛 Fix caching headers on main view
...
Clients/browsers should be instructed to always revalidate against the
server in order to prevent any kind of old content to be served.
See https://community.octoprint.org/t/cant-login-to-the-web-interface/7908/17?u=foosel
2019-03-19 14:48:45 +01:00
Gina Häußge
bc66d29d02
🐛 Fix reporting back of active port & baudrate
...
Closes #2859
2019-03-19 13:24:00 +01:00
Gina Häußge
9ea1074b03
✨ Process watched folder on startup
...
Implements #2462
2019-03-19 11:52:32 +01:00
Gina Häußge
6e069211cc
Merge remote-tracking branch 'origin/maintenance' into maintenance
2019-03-18 17:06:26 +01:00
Gina Häußge
8d3befb01f
✨ Support for heated chamber fw capabilities
...
Chamber temperatures reported via M105 will only be parsed if the
fw reports chamber capabilities (through Cap:CHAMBER_TEMPERATURE:1) or
the currently selected printer profile has a heated chamber configured.
This is to avoid incompatibility issues with firmware variants that
might already use the C parameter for something else (which might be the
case since we don't have a reliable well defined standard that people
need to adhere to...)
Chamber temperature commands M141 and M191 will only be allowed to be
sent if the selected printer profile has a heated chamber configured.
This mirrors the behaviour for the bed temperature commands M140 and
M190 and heated bed configuration.
Display of chamber data in the graph will only happen if the printer
profile has a heated chamber configured.
Implements one workflow behind #321
2019-03-18 16:51:12 +01:00
Gina Häußge
42a6cab92e
Merge pull request #3072 from Fabi0San/maint/temperature
...
Hides temperature tab if the machine has no heated bed nor extruders.
2019-03-18 12:57:35 +01:00
Gina Häußge
083e424529
✏️ Fix a typo in the german translation
...
Closes #3061
2019-03-17 13:27:16 +01:00
Gina Häußge
d5eefcd1a5
🐛 virtual: fix homing
2019-03-16 09:40:55 +01:00
Gina Häußge
c1670d03c8
🐛 virtual: fix parsing of negative coordinates
...
Closes #3080
2019-03-16 09:29:04 +01:00
Gina Häußge
b2637eb06a
🐛 Fix refactoring error
2019-03-13 15:09:27 +01:00
Gina Häußge
47179f2956
☔ forcelogin: Never handle the UI if ACL is disabled
...
The following `passive_login` should always succeed if ACL is disabled
and hence this *should* not have caused issues, but considering
https://community.octoprint.org/t/cant-login-to-the-web-interface/7908/3
it might have after all, so better be safe than sorry here.
2019-03-13 15:09:02 +01:00
Gina Häußge
d64b8512ab
💄 PGMR, SWU: Use scrollables instead of pagination
2019-03-12 17:02:14 +01:00
Gina Häußge
602ec5c495
🐛 Only use page size from local storage if configured
...
Should be a conscious decision by whoever uses ItemListHelper since
otherwise the size can never be changed again to a new default.
Follow-up to #2620
2019-03-12 16:52:17 +01:00
Gina Häußge
a63ee9355e
🎨 Fix some linter warnings
2019-03-12 16:47:55 +01:00
Gina Häußge
e44ae7a024
💚 Fix broken unit test
...
Who broke the test? That's right... me 😕
2019-03-12 16:26:14 +01:00
Gina Häußge
76ad332287
♻ Use monotonic_time for relative times
...
Timeouts, durations and such shouldn't depend on the non-monotonic
system clock but instead use a monotonic time source.
2019-03-12 16:03:58 +01:00
Gina Häußge
93ab7bb089
Merge branch 'pr/3073' into maintenance
2019-03-12 13:57:08 +01:00
Gina Häußge
b4e7e73e29
♻ Use length of tool array for visibility
...
No need for an additional variable to keep in sync.
2019-03-12 13:56:53 +01:00
Gina Häußge
92ad53a9ec
♻ Use ko computed for visibility state
2019-03-12 13:42:45 +01:00
Gina Häußge
21c9c51858
♻ Backport some more pieces from devel
2019-03-12 13:40:58 +01:00
Gina Häußge
38a321e175
✨ Add configurable list of blocked and pausing commands
...
Instead of a boolean option to block sending of M0 *and* M1 and
hardcoding them and M25 to pause an ongoing print, we now have two lists
for blocked commands and pausing commands respectively.
Blocked by default: M0 and M1.
Pausing by default: M0, M1 and M25.
Implements #2970
2019-03-12 12:16:23 +01:00
Gina Häußge
32050c31ae
🐛 Only process pause if we aren't already pausing
...
Also don't process a pause if we are cancelling. "isPrinting" is too
broad here, so we use explicit states.
2019-03-12 12:12:24 +01:00
Gina Häußge
f020fc1bc6
✨ Add ipv4- and ipv6-only command line flags
...
-4 or --ipv4 will behave as if "--host 0.0.0.0" (or any other specific
v4 address) was supplied and only bind the server socket to v4. It will
be ignored if a v6 address is set to bind to.
-6 or --ipv6 will only bind the server socket to v6 instead of dual
stack on both v4 and v6. It will be ignored if a v4 address is set to
bind to.
Implements #2904
2019-03-11 17:21:28 +01:00
Gina Häußge
a1e8694073
🐛 Don't change to PRINTING state on resume if not RESUMING
...
See #2955
2019-03-11 16:02:20 +01:00
Gina Häußge
e748b52098
🐛 Don't change to PAUSED state if not PAUSING
...
Fixes #2955
2019-03-11 15:34:11 +01:00
Gina Häußge
aab629d80e
🎨 except: => except Exception:
2019-03-06 15:10:38 +01:00
Gina Häußge
4e2afbc170
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/filemanager/storage.py
# src/octoprint/util/__init__.py
# src/octoprint/util/comm.py
2019-03-06 14:49:42 +01:00
Gina Häußge
8668c6200a
✨ Decorator for timing methods
...
Probably mostly helpful during development...
2019-03-06 13:53:53 +01:00
Gina Häußge
e01f391b30
⚡ More intelligent use of copy & deepcopy
...
Improves performance of file manipulation, especially in cases with a
lot of files in the folder, without the added complexity of fully
decoupling metadata file serialization from general processing.
Better fix for #3057
2019-03-06 13:44:45 +01:00
Gina Häußge
92618362e1
💚 Forgot to adjust the tests for d071684
2019-03-05 17:01:10 +01:00
Gina Häußge
d071684d41
♻ Remove old metadata.yaml files
...
Were deprecated and supposed to be removed with 1.3.10, we'll do it with
1.3.11.
2019-03-05 16:53:30 +01:00
Gina Häußge
7d0bd6a339
☔ Remove stale entries from metadata
...
If a file no longer exists on disk for whatever reason it also doesn't
need to be kept in metadata.json.
See also #3057
Cherry-picked from 15d3b2ca
2019-03-05 16:20:13 +01:00
Fabi0San
1b5a654a2d
Hide Tool section in Control for machines with no extruders. Such as Lasers.
2019-03-04 19:00:08 -08:00
FabioSan
f0ee7f343e
Hides temperature tab if the machine has no heated bed nor extruders.
2019-03-04 18:34:55 -08:00
Gina Häußge
3e16f0901a
Merge remote-tracking branch 'origin/maintenance' into maintenance
2019-03-01 11:21:01 +01:00
Gina Häußge
8866ed716d
☔ Better resilience against invalid SD status reports
2019-03-01 11:20:45 +01:00
Gina Häußge
cf16392e18
💚 Ignore vendor path for tests & fix 2.7 tests
2019-02-28 17:05:13 +01:00
Gina Häußge
34e4a20866
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/__init__.py
# src/octoprint/plugins/tracking/__init__.py
2019-02-28 16:40:04 +01:00
Gina Häußge
0f157d3747
♻ Load bundled plugins under octoprint.plugins.*
...
Makes more sense than putting them into sys.modules as <identifier>,
which also can cause conflicts (e.g. in the case of octoprint.plugins
.logging which then suddenly gets found instead of the built-in crucial
logging module).
2019-02-28 16:37:09 +01:00
Gina Häußge
1b3a8acf0d
♻ Work around deprecation of imp
...
After two days of trying to make the plugin loading work completely,
including loading bundled templates etc, using only native importlib
methods, I've finally given up and bundled the (deprecated) imp module
for Python 3+ which relies on importlib but does some magic I've yet to
figure out which makes stuff just work.
Replacing imp completely with something more slim is something for
another day, for now we want to get stuff to work under Py3 with as
little warnings as possible.
2019-02-28 16:07:07 +01:00
Gina Häußge
fdb4e75241
Merge pull request #3066 from fieldOfView/fix_docs_job_state
...
Add missing documentation about state in `jobs` endpoint
2019-02-28 12:34:35 +01:00
Gina Häußge
4dbb24ecd7
📝 state is not a sub data model but a string
2019-02-28 12:26:25 +01:00
fieldOfView
a15e2de251
Fix datamodel structure
2019-02-28 12:17:35 +01:00
fieldOfView
c652bed871
Add missing documentation about state in jobs endpoint
2019-02-28 11:40:22 +01:00
Gina Häußge
1ed6730400
🔊 Improved logging in case of plugin syntax errors
2019-02-27 16:11:00 +01:00
Gina Häußge
dde99736e4
📝 Fix an error in the docs
2019-02-27 14:32:37 +01:00
Gina Häußge
334f2c35f9
✨ Allow to ignore compatibility for plugins
...
Adding a plugin's identifier to the list plugins._forcedCompatible in
config.yaml will make OctoPrint ignore its python compatibility status,
e.g.
plugins:
_forcedCompatible:
- myplugin
This might be helpful for plugin authors during development but should
NOT be used in production!
See also #2722
2019-02-27 14:28:35 +01:00
Gina Häußge
aacd59ae78
☔ Log exceptions while parsing the AST
2019-02-27 13:43:01 +01:00
Gina Häußge
253a38c32d
♻ gcode => printables
2019-02-26 15:31:22 +01:00
Gina Häußge
e08becbb4c
Merge pull request #3055 from AndyQ/show_current_layer
...
Added ability to preview the current layer to be drawn
2019-02-26 13:54:43 +01:00
Gina Häußge
09a043b393
🐛 tracking: fix handling of missing print time
...
See also #3063
2019-02-26 13:50:35 +01:00
Gina Häußge
058dbd0c2e
🐛 virtual: fix regexes again
2019-02-22 18:46:45 +01:00
Gina Häußge
54c8923087
🐛 virtual: fix some str/bytes issues
...
Threw some type annotations into it while at it. Should make the IDE
become angry at such problems in the future.
2019-02-22 18:29:36 +01:00
Gina Häußge
1025f0be43
💚 Revert "🎨 Remove unnecessary import"
...
This reverts commit 295b96f259 .
2019-02-22 13:31:36 +01:00
Gina Häußge
295b96f259
🎨 Remove unnecessary import
...
Already included in the next line
2019-02-22 12:53:18 +01:00
Gina Häußge
adea0db344
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/util/__init__.py
2019-02-22 12:48:52 +01:00
Gina Häußge
0c4f4383e3
♻ Introduce type hints
...
For now we'll only use them to have our IDEs scream at us...
2019-02-22 11:44:45 +01:00
Gina Häußge
9f2821fe96
👷 ALLOW_UNICODE and custom pretty printer in doctests
...
We could also have set ALLOW_UNICODE globally, but this way we might
catch situations where we definitely do not expect mixed results between
py2 and py3.
2019-02-21 15:36:10 +01:00
Gina Häußge
dcc1148863
👷 Switching from nose to pytest
2019-02-21 15:34:07 +01:00
Gina Häußge
e972026ad0
🚸 PMGR: show message if plugin repo list is empty
...
E.g. due to filters or compatibility issues.
2019-02-20 18:11:08 +01:00
Gina Häußge
6592be63f8
✨ PMGR: Support python compatibility flag in plugin repo
2019-02-20 18:10:59 +01:00
Gina Häußge
8b5626e49c
💚 Fix unit tests under Py3
2019-02-20 16:28:06 +01:00
Gina Häußge
be4a931e32
✨ Add Python 3 compat control property
...
As discussed in #2722
2019-02-20 16:14:12 +01:00
Gina Häußge
548da0d64f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/environment.py
2019-02-20 15:33:15 +01:00
Gina Häußge
45aa26f13e
♻ Add central methods for getting python version
2019-02-20 15:32:07 +01:00
Gina Häußge
25f26170ff
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/printer_safety_check/__init__.py
# tests/filemanager/test_filemanager.py
2019-02-20 15:10:25 +01:00
Gina Häußge
4a64bc6023
Merge branch 'improve/moreFlexiblePrinterSafetyChecks' into maintenance
...
# Conflicts:
# src/octoprint/plugins/printer_safety_check/__init__.py
2019-02-20 14:41:09 +01:00
Gina Häußge
8e6773d19f
🐛 printer_safety_check: Fix some issues with new implementation
2019-02-20 14:39:21 +01:00
Gina Häußge
dfcddea581
🎨 Fix some whitespace issues
2019-02-19 13:28:15 +01:00
Gina Häußge
ff59e275bf
Merge branch 'improve/errortracking_plugin' into maintenance
2019-02-19 13:11:38 +01:00
Gina Häußge
0f8f1ec8e0
✨ Finalize first version of errortracking plugin
...
Also add docs for that & the Anonymous Usage Tracking plugin.
2019-02-19 13:11:25 +01:00
AndyQ
0e302d440f
Added ability to preview the current layer to be drawn
...
If selected, the current layer is drawn at 30% opacity and then the progress is drawn over the top at 100%
Added additional checkbox on GCodeView page to include current layer as preview
2019-02-18 11:28:41 +01:00
Gina Häußge
980616519d
Merge pull request #3054 from rgriebl/master
...
Fix python version detection on Debian testing/unstable
2019-02-18 10:46:56 +01:00
Gina Häußge
434751634f
Merge pull request #3053 from AndyQ/MultipleFiliament_fix
...
Fixed error in GCode viewer where multiple filaments available (e.g. …
2019-02-18 10:44:33 +01:00
Robert Griebl
c35708a422
Fix python version detection on Debian testing/unstable
...
The current 2.7 Python binary on Debian returns "2.7.15+" as its version, which
is not PEP440 compliant. Tthere is no feedback at all from Debian maintainers
regarding the bug report as of now:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914072
This patch makes sure to drop any trailing '+' character in a version string.
Fixes #3049
2019-02-18 00:37:08 +01:00
AndyQ
64464a38ce
Fixed error in GCode viewer where multiple filaments available (e.g. using Prusa MMU2), but only using a filament that isn't the first one
...
e.g. filament 4
2019-02-17 11:57:13 +00:00
Gina Häußge
0e482151fd
Merge pull request #3051 from CapnBry/unfuzzy-timetips
...
Always show unfuzzy times for total print time and time left in tooltip
2019-02-14 15:59:34 +01:00
Gina Häußge
c5bf58e1cc
♻️ == -> ===
2019-02-14 15:56:09 +01:00
Bryan Mayland
38b7be0142
Fix whitespace
2019-02-14 14:52:24 +00:00
Bryan Mayland
28a515ba6a
Always show unfuzzy times for total print time and time left in tooltip
2019-02-14 14:41:01 +00:00
Gina Häußge
b6b562399e
💥 Remove deprecated AppSessionManager
...
Has been replaced by the bundled AppKeys plugin and its workflow.
Deprecation will be announced in 1.3.11.
2019-02-13 17:04:31 +01:00
Gina Häußge
3654512085
🐛 Fix mysteriously broken unit tests
2019-02-13 16:42:21 +01:00
Gina Häußge
e7dbd804ce
♻ Use to_unicode instead
...
See #2722
2019-02-13 16:35:00 +01:00
Gina Häußge
7fd03265d4
🐛 Work around for jsonify calls with bytes
...
See #2722
2019-02-13 16:32:34 +01:00
Gina Häußge
369679bae5
🐛 Work around CPython bug bpo-29097
2019-02-13 16:12:28 +01:00
Gina Häußge
27e1f2e6e7
🐛 Fix package collection
...
As mentioned in #2722
See also razerraz@d269c36
2019-02-13 15:26:15 +01:00
Gina Häußge
109cbeea6a
🐛 Fix slicing permission
2019-02-13 15:21:37 +01:00
Gina Häußge
606199dcc9
Merge branch 'maintenance' into devel
...
# Conflicts:
# tests/filemanager/test_filemanager.py
2019-02-13 14:56:40 +01:00
Gina Häußge
38868303da
🐛 Fix tests
2019-02-13 14:55:48 +01:00
Gina Häußge
75b5fe198f
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/_version.py
# src/octoprint/plugins/backup/__init__.py
# src/octoprint/plugins/cura/__init__.py
# src/octoprint/plugins/cura/profile.py
# src/octoprint/plugins/cura/templates/cura_settings.jinja2
# src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py
# src/octoprint/printer/standard.py
# src/octoprint/server/api/files.py
# src/octoprint/server/util/tornado.py
# src/octoprint/server/views.py
# src/octoprint/users.py
# src/octoprint/util/__init__.py
# versioneer.py
2019-02-13 14:28:06 +01:00
Gina Häußge
fe65f18f78
💥 Unbundling the cura plugin
...
It lives on as curalegacy at
https://github.com/OctoPrint/OctoPrint-CuraLegacy
which will be added to the plugin repository once the first RC of 1.3.11
lands.
Due to this change, the general handling of STL files has also changed
slightly. They will no longer be supported by upload out of the box
unless a SlicerPlugin is available (which will now by default extend the
extension tree with STL files, unless overwritten). As a consequence of
that the file type filters in the file list have also been adjusted to
only show up if there are additional file types to filter for.
2019-02-13 13:41:44 +01:00
Gina Häußge
e1e302f93d
✨ Allow slicing while printing on multi core systems
...
If we don't know the number of cores or the number is less than two we
the old behaviour still applies.
Implements #1938
2019-02-13 12:06:32 +01:00
Gina Häußge
1cea388481
🐛 Fix _version.py generation
2019-02-12 13:53:20 +01:00
Gina Häußge
14a3d903d7
Merge remote-tracking branch 'origin/maintenance' into maintenance
2019-02-12 13:46:35 +01:00
Gina Häußge
34d6a6f8ce
⬆ Update versioneer & generated file
2019-02-12 12:29:00 +01:00
Gina Häußge
6a03532ea7
♻ Backport py3 compat for versioneer
2019-02-12 12:25:41 +01:00
Gina Häußge
649bfdbe37
Merge branch 'master' into maintenance
2019-02-12 12:18:31 +01:00
Gina Häußge
8ce2290d63
📝 Improve docs for connection API
...
See #3043
2019-02-12 12:07:55 +01:00
Gina Häußge
b1413abfff
Merge pull request #3045 from akraus53/patch-1
...
I fixed a few typos in the German translation
2019-02-12 12:02:42 +01:00
Alexander Kraus
772914f38c
Fixed a few typos
...
I hope this is the correct Branch....
2019-02-11 22:54:04 +01:00
Gina Häußge
c6b4eee437
🐛 treat pausing as paused for resume handling
...
See MarlinFirmware/Marlin#13039 and #2955
2019-02-11 18:21:32 +01:00
Gina Häußge
e67f72ce3d
🐛 paused action must not trigger *any* local processing
...
That includes sending M400 and M114 to capture the pause position.
See MarlinFirmware/Marlin#13039
2019-02-11 18:19:47 +01:00
Gina Häußge
de6da3f360
Merge branch 'master' into maintenance
2019-02-11 10:08:54 +01:00
Gina Häußge
b744c341eb
💬 discourse.octoprint.org => community.octoprint.org
2019-02-11 09:58:39 +01:00
Gina Häußge
697af69e97
Merge branch 'master' into maintenance
2019-02-08 17:06:59 +01:00
Gina Häußge
601451a3f1
✨ Setting to disable fuzzy estimates
...
Implements #3040
2019-02-08 16:44:25 +01:00
Gina Häußge
81d523b73d
♻ Backport to_str -> to_bytes from devel
...
Add unit tests.
2019-02-08 14:39:07 +01:00
Gina Häußge
deacd9c188
Merge pull request #3041 from Microtome/add-klipper-to-firmware-autodetect
...
Add support for klipper in firmware autodetect
2019-02-08 14:02:37 +01:00
Gina Häußge
3c5aa60d2b
🐛 Some more unicode vs bytes fixes
2019-02-07 18:35:35 +01:00
Daniel Joyce
6e0024149e
Add support for klipper firmware autodetect
2019-02-07 07:36:11 -08:00
Gina Häußge
1b876f1cf3
♻ Only depend on chainmap and scandir under py2
2019-02-07 16:31:43 +01:00
Gina Häußge
580e5f5122
🐛 It's time.monotonic in py3, not monotonic.monotonic
2019-02-07 15:40:31 +01:00
Gina Häußge
22f6a38f0a
♻ Universal wheel and related setup.py adjustments
...
Also make sure that our environment specific dependencies get recorded
to the wheel so that we don't have to build in the same environment as
the software will run later (consider this work towards a PyPI release
that might also be backported).
2019-02-07 15:28:01 +01:00
Gina Häußge
620aa4dfe0
📝 README adjustment to state Py3 support
2019-02-07 12:35:53 +01:00
Gina Häußge
dd3b318327
Merge branch 'pr/3036' into maintenance
2019-02-07 12:07:13 +01:00
Gina Häußge
1ccc787222
📝 docs: grammar
2019-02-07 11:57:21 +01:00
Gina Häußge
f8e7ae7436
Merge branch 'py23' of github.com:smurfix/OctoPrint into pr/3032
2019-02-07 11:56:16 +01:00
Gina Häußge
3ae284d9a7
Merge branch 'devel' into pr/3032
2019-02-07 11:51:41 +01:00
Gina Häußge
caf5be562e
🐛 Workaround for "Request.is_xhr deprecated" warning
2019-02-07 11:51:09 +01:00
Gina Häußge
069e83c63c
Merge pull request #3039 from Microtome/improve-backup-filename
...
Improve backup filename, fix for #3030
2019-02-07 11:43:02 +01:00
Daniel Joyce
0cf345f29b
Fix bug where if no plugins are installed, restore fails
...
* When no plugins are installed, backup does not create a
plugin_list.json file.
* Restore then fails when it tries to read the missing file.
* Add check to ensure plugin_list.json exists before restoring
from backup.
2019-02-06 21:06:19 -08:00
Daniel Joyce
0fda153d60
Provide a better name for backup files, use utility function for consistent name
2019-02-06 20:45:07 -08:00
Matthias Urlichs
c01a34f358
fix grammar, simplify instructions
...
A "pip" alias that points to the correct version is part of the venv.
"activate" auto-deactivates the previous venv.
2019-02-06 18:46:53 +01:00
Gina Häußge
deee737660
🐛 Raise no exception in case of missing wheel metadata
...
That's normal for plugins that were installed as eggs instead of wheels
and we don't want to raise the error in this case. If we also don't find
egg metadata we'll log a warning anyhow.
Any other exceptions will be raised though.
2019-02-06 18:36:00 +01:00
Gina Häußge
8425c7b973
Merge branch 'py23' of github.com:smurfix/OctoPrint into pr/3032
2019-02-06 18:13:57 +01:00
Gina Häußge
1e42db040d
📝 docs: some rewording re dev environment
2019-02-06 18:12:44 +01:00
Matthias Urlichs
e2d4b64510
superfluous "import io"
2019-02-06 17:29:19 +01:00
Gina Häußge
61136edeea
✅ Add tox.ini
2019-02-06 17:19:28 +01:00
Gina Häußge
7614ef40d3
🐛 Fix repeatability of doctests under py2
2019-02-06 17:07:50 +01:00
Gina Häußge
935639a51a
🐛 Fix json file writing
...
Apparently json.dump produces mixed bytes/unicode content. So now we use
json.dumps wrapped in to_bytes and that's it.
2019-02-06 16:51:54 +01:00
Gina Häußge
ec689e3939
🐛 Fix versioneer
2019-02-06 16:35:32 +01:00
Hannappel
84f95b1099
Fixes creating of groups
2019-02-06 16:08:15 +01:00
Gina Häußge
fd8788dd34
♻ More error resilience for encoding issues in config.yaml
...
Normally I'd say, broken files are broken files, but since in case of an
encoding error in config.yaml the server won't come up anymore we are
erring on the side of caution here and running with errors="replace"
2019-02-06 16:06:56 +01:00
Gina Häußge
32a8646135
♻ codecs.open -> io.open
...
The general consensus regarding codecs.open appears to be that it's only
left in Python 3 for backwards compatibility (which I find kind funny
but I digress...) and that io.open should be used instead for Py2.6+
since it's available and behaving the same in both versions. So that's
what we do here.
2019-02-06 16:05:09 +01:00
Gina Häußge
09cc7cf5f7
🐛 Fix unicode vs bytes issues for atomic_write
...
NamedTemporaryFile doesn't support the encoding parameter under py2.
However, without it specifying text mode defaults to ascii, causing some
issues especially with config files containing utf-8.
By swapping NamedTemporaryFile for mkstemp and a custom io.open call
(parameterized according to the open mode) we can support a proper
encoding aware atomic_write.
2019-02-06 16:03:32 +01:00
Gina Häußge
496e9f0ec4
✅ Add unit test for pip caller initialization
2019-02-06 13:11:03 +01:00
Gina Häußge
18b2ecd64c
🐛 Fix unicode vs bytes issues in PipCaller
...
* environment for subprocess needs native str (at least under win)
* when reading a text file we should also be writing one inside the
test balloon
2019-02-06 12:53:23 +01:00
Gina Häußge
cc6f61c62e
🐛 discovery: fix unicode vs bytes issues in SSDP
2019-02-06 12:00:16 +01:00
Matthias Urlichs
de149613cb
Run flake8 tests only once
2019-02-05 18:13:44 +01:00
Matthias Urlichs
a7ca374955
Fix additional flake8 nits
2019-02-05 17:54:09 +01:00
Daniel Joyce
61ac8430d6
Added self to Authors file
2019-02-05 08:46:58 -08:00
Daniel Joyce
6b4dfcb960
Support opening serial port in exclusive mode.
...
* Slight cleanup and refactoring
2019-02-05 08:46:44 -08:00
Matthias Urlichs
d7d3272905
Merge errors fixed
2019-02-05 17:43:31 +01:00
Matthias Urlichs
9eb29a8ce0
found another unnecessary list-ification
2019-02-05 17:41:30 +01:00
Matthias Urlichs
bf16bd1180
Merge py23 from devel
2019-02-05 17:36:07 +01:00
Matthias Urlichs
7b5315383b
Add wildcard import for compatibility
2019-02-05 17:35:25 +01:00
Matthias Urlichs
72729ad418
fix speling an move to docstring
2019-02-05 17:34:57 +01:00
Matthias Urlichs
e6f902cbe7
add logging
2019-02-05 17:34:45 +01:00
Matthias Urlichs
9b14f32279
take PY3 from existing declaration
2019-02-05 17:34:27 +01:00
Matthias Urlichs
7ad4d75588
fixed merge errors
2019-02-05 17:34:15 +01:00
Gina Häußge
5a623b486c
✅ Adding flake8 to CI
2019-02-05 17:28:44 +01:00
Gina Häußge
920283cf87
Merge branch 'devel' into pr/3032
...
# Conflicts:
# src/octoprint/access/groups.py
# src/octoprint/static/css/octoprint.css
2019-02-05 17:08:24 +01:00
Gina Häußge
becd16b892
🐛 Fix a test
2019-02-05 16:08:40 +01:00
Gina Häußge
f59c1ce804
⬆ Upgrade Flask-Login dependency
...
It used to be 0.3.0+, some merge in the past must have broken that.
2019-02-05 15:58:15 +01:00
Gina Häußge
c71972c0f8
♻ Explicitly add admin group to plugin permissions
...
Admin only access by default for these was implied by not having them
added to one of the three major default groups, making it explicit is
more clear though.
2019-02-05 15:58:15 +01:00
Gina Häußge
47a9a40ec9
✨ permissions: Groups can now have subgroups
...
That way we can easily provide a Read Only group that allows read-only
access and which can then be added to the Guest group by users who
desire anonymous read-only access, similar to disabling the forcelogin
plugin in 1.3.10+
2019-02-05 15:58:15 +01:00
Matthias Urlichs
5c1fffc3d0
comm: more str vs. bytes (esp. baudrate detect)
2019-02-05 14:30:23 +01:00
Matthias Urlichs
fe090cc6cc
Virtual printer: str vs. bytes
2019-02-05 14:29:27 +01:00
Matthias Urlichs
ab3c4ab66c
Don't compare with None
2019-02-05 14:29:04 +01:00
Matthias Urlichs
1d6b7244b5
Bah. That glob-import-removal was overzealous.
2019-02-04 21:33:35 +01:00
Matthias Urlichs
ea17566aba
some more unused variables
2019-02-04 21:13:19 +01:00
Matthias Urlichs
315ed57916
Another missing import
2019-02-04 21:12:20 +01:00
Matthias Urlichs
1014582b4b
removed wildcard imports
2019-02-04 21:10:11 +01:00
Matthias Urlichs
cf77053901
missing imports
2019-02-04 21:10:04 +01:00
Matthias Urlichs
f040482b18
don't assign to an unused variable
2019-02-04 21:09:27 +01:00
Matthias Urlichs
523fadd930
Don't shadow globals
2019-02-04 21:08:32 +01:00
Matthias Urlichs
97d0fbd2c9
Don't compare with bool values
2019-02-04 21:07:53 +01:00
Matthias Urlichs
3b820f6848
Scoping error: py3 deletes exceptions after their except: block
2019-02-04 21:02:32 +01:00
Matthias Urlichs
e8b9f385b4
"has_key" is deprecated
2019-02-04 20:54:54 +01:00
Matthias Urlichs
95bc1006a0
Fix undefined "autologin_as" and "local_networks"
2019-02-04 20:49:49 +01:00
Matthias Urlichs
14ef17163f
Don't compare with None
2019-02-04 20:44:57 +01:00
Matthias Urlichs
9a1bd8af87
These are numbers so unicode() is not necessary
2019-02-04 20:35:00 +01:00
Matthias Urlichs
a292a12c4a
The lastline buffer has bytes
...
This reduces required work because we only need to convert back when
resending
2019-02-04 20:35:00 +01:00
Matthias Urlichs
200a3ef4eb
replaced a bunch of map() with generator expressions
2019-02-04 20:35:00 +01:00
Matthias Urlichs
88582beb55
grammar ;-)
2019-02-04 20:29:22 +01:00
Matthias Urlichs
6d7c8bbda6
More backslashes
2019-02-04 20:13:06 +01:00
Matthias Urlichs
9a7f92174a
forgot to replace a unicode=str instance
2019-02-04 20:13:06 +01:00
Gina Häußge
61431c0df3
Merge remote-tracking branch 'origin/master'
2019-02-04 18:48:10 +01:00
Matthias Urlichs
a301fc6da9
Merge remote-tracking branch 'origin/devel' into py23
2019-02-04 18:44:23 +01:00
Gina Häußge
cc0b63cbb9
📝 Fix a formatting issue
...
No events are about to be removed in 1.4.0, only the payload fields
marked as deprecated. And for some reason ReST doesn't appear to allow
including that piece of information within the `deprecated` directive,
so now we have a slightly different way of expressing it...
2019-02-04 18:40:57 +01:00
Matthias Urlichs
e08dc0b5aa
missed importing "long" from past.builtins
2019-02-04 17:04:33 +01:00
Matthias Urlichs
a368a7f1c9
comm: we already have a logger. Use it.
2019-02-04 17:04:01 +01:00
Gina Häußge
020403dc54
💬 Correct typo in german translation
...
Closes #3029
2019-02-04 14:43:12 +01:00
Matthias Urlichs
6a601d4f8e
clean_ansi: accept strings
2019-02-04 14:33:57 +01:00
Gina Häußge
7a3b370469
🐛 Fix earlier merge error
...
New permission system does handle disabled ACL slightly differently.
2019-02-04 14:30:02 +01:00
Matthias Urlichs
e676d53e9f
Fix the remaining docstr tests
...
Sets are annoying to test:
(a) their repr() is different
(b) they might get re-ordered.
2019-02-04 14:15:09 +01:00
Matthias Urlichs
40b231f692
fix TagStripper for py2
2019-02-04 14:14:55 +01:00
Matthias Urlichs
86664fdb39
super() doesn't work in Py2. Yech.
2019-02-04 13:58:56 +01:00
Matthias Urlichs
4ebb5cf42d
more native_str
2019-02-04 13:38:31 +01:00
Matthias Urlichs
e8bee435af
forgotten import
2019-02-04 13:33:46 +01:00
Matthias Urlichs
082f977f7a
Disable unicode strings in github_release
...
I am too lazy to fix all the doctests
2019-02-04 13:32:34 +01:00
Matthias Urlichs
237a2c0add
Make the HTML tag stripper 2.7 compatible
...
convert_charrefs defaults to True on Py3.5 ff.
2019-02-04 13:20:47 +01:00
Matthias Urlichs
2e47f49f7a
Make to_native_str() decode bytes
...
used for doctests
2019-02-04 13:14:32 +01:00
Matthias Urlichs
05919363e1
De-ANSIfication needs to run on bytes.
2019-02-04 13:14:01 +01:00
Matthias Urlichs
7c8547555c
double escapes vs. raw strings. Ugh.
2019-02-04 13:13:30 +01:00
Matthias Urlichs
ce0c77f0bf
Travis: run on xenial distro
2019-02-04 13:13:09 +01:00
Matthias Urlichs
aec041b014
Fix unicode woes in doctests
2019-02-04 13:00:54 +01:00
Matthias Urlichs
58b32803df
Tell Travis to also test py3.6 and py3.7
2019-02-04 12:49:11 +01:00
Matthias Urlichs
6d447f8408
unicode woes for funcion __name__/__qualname__
2019-02-04 12:47:44 +01:00
Matthias Urlichs
54d359f730
Don't spew a stack trace if vcgencmd doesn't work / exist
2019-02-04 11:34:05 +01:00
Matthias Urlichs
4d9f0fca41
Unicode woes for serial seending
2019-02-04 11:24:25 +01:00
Matthias Urlichs
41146c2b7c
another hash
2019-02-04 11:23:08 +01:00
Matthias Urlichs
99d7157cb7
Missing translation
2019-02-03 19:10:27 +01:00
Matthias Urlichs
c8b5662ff2
a bunch of bytes
2019-02-03 19:02:10 +01:00
Matthias Urlichs
b781681e0f
There's no 'file' in Py3
2019-02-03 19:01:47 +01:00
Matthias Urlichs
5edeecdc8c
Py3 codecs.open doesn't like mode='t'
2019-02-03 19:01:07 +01:00
Matthias Urlichs
f82ec61463
restore setup.py
...
Incompatibility with Jinja 2.10
2019-02-03 19:00:29 +01:00
Matthias Urlichs
372a8d2ea8
Feedparser: avoid warning due to their workaround
...
see Feedparser issues 328 and 310
2019-02-03 17:39:12 +01:00
Matthias Urlichs
9c5d1dec59
don't apply str.lower() to unicode
2019-02-03 17:39:01 +01:00
Matthias Urlichs
feff5e0978
type() vs. unicode, again
2019-02-03 17:25:39 +01:00
Matthias Urlichs
019bf5acd4
use past.builtins.unicode
2019-02-03 17:19:46 +01:00
Matthias Urlichs
717aafee08
TODO catch this sphinx error in a reasonable way
2019-02-03 16:39:31 +01:00
Matthias Urlichs
67c5a5e168
went through "except Exception:" with a fine comb
2019-02-03 16:39:01 +01:00
Matthias Urlichs
6310afa261
owchie to_native
2019-02-03 16:36:20 +01:00
Matthias Urlichs
cd6ae6e47b
setup 2 unicode_literals
2019-02-03 16:35:48 +01:00
Matthias Urlichs
b01e1c269d
owchie to_native
2019-02-03 16:35:12 +01:00
Matthias Urlichs
49fb0f87d5
Clean up Py2-vs.Py3 imports
2019-02-03 16:32:00 +01:00
Matthias Urlichs
8956e7a173
actually purge logger entries
2019-02-03 15:55:49 +01:00
Matthias Urlichs
9fa20f0e52
rename to_str to to_bytes
2019-02-03 14:54:28 +01:00
Matthias Urlichs
6bf8384c35
Kill of u"" (visual clutter)
2019-02-03 14:25:41 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Matthias Urlichs
7522dbed1d
serial readline: bytes
2019-02-03 14:06:06 +01:00
Matthias Urlichs
d433c919ec
more bare except:
2019-02-03 14:02:41 +01:00
Matthias Urlichs
a6f701802f
Simplify: set([GEN]) → set(GEN)
2019-02-01 17:33:32 +01:00
Matthias Urlichs
e03feeb7ac
checked "basestring"
2019-02-01 17:23:08 +01:00
Matthias Urlichs
00068114a1
Unicode oops
2019-02-01 17:15:42 +01:00
Matthias Urlichs
6a7e11eb7c
items not values 🙄
2019-02-01 17:14:27 +01:00
Matthias Urlichs
6f987577f4
missed hash_update
2019-02-01 17:14:10 +01:00
Matthias Urlichs
819d690bc3
Merge devel into py23
2019-02-01 16:50:56 +01:00
Gina Häußge
dbfe487f13
Merge branch 'maintenance' into devel
2019-02-01 15:12:42 +01:00
Gina Häußge
21a82bbdb6
🐛 Fix enableWebcam render kwarg
...
Was using the wrong setting name.
2019-02-01 15:10:28 +01:00
Gina Häußge
47e9afa811
♻ Use new named registration params for UiStateVM
2019-02-01 14:58:02 +01:00
Gina Häußge
f9edea0c2c
🐛 Fix duplicate auth request on socket
...
Merge error.
2019-02-01 14:57:11 +01:00
Gina Häußge
8ef3d1dcad
🐛 Fix reload loop on first setup
...
Removed the forcelogin plugin since it's obsolete in 1.4.0 thanks to
the granular permission system anyhow.
2019-02-01 14:56:48 +01:00
Gina Häußge
fcfef25c93
🐛 Fix first run wizard again
...
Necessary requests were wrongfully denied after initial setup of a user
account due to hasBeenCustomized still being used and its deprecated
wrapper wrapping the always False implementation in the UserManager base
class instead of the adjusted one in the FileBasedUserManager. Evil bug.
2019-02-01 14:45:38 +01:00
Gina Häußge
604d2f7811
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/views.py
# src/octoprint/templates/dialogs/settings/api.jinja2
2019-02-01 11:12:29 +01:00
Gina Häußge
727fd12939
🚸 CORS change needs restart to take effect
2019-02-01 10:55:24 +01:00
Gina Häußge
100fe5f290
🐛 Allow disabling CORS headers on SockJS endpoints
...
Fixes 2) of #3024
2019-02-01 10:40:37 +01:00
Matthias Urlichs
a721256204
AssertEquals is deprecated
2019-01-31 20:10:30 +01:00
Matthias Urlichs
24d2efd3ce
Merge devel into py23
2019-01-31 20:08:40 +01:00
Gina Häußge
1acf69cb6d
🐛 Add CORS headers to tornado endpoints (if enabled)
...
Fixes 1) of #3024
2019-01-31 17:38:10 +01:00
Gina Häußge
3815c340a8
☔ Protect against corrupt language packs
2019-01-31 17:07:10 +01:00
Gina Häußge
5e8220055f
🐛 Fix merge error
2019-01-31 14:44:46 +01:00
Gina Häußge
38eff3fe6f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/api/system.py
2019-01-31 14:07:14 +01:00
Gina Häußge
4e47ecabf8
🐛 Fix duped log entries
2019-01-31 13:57:05 +01:00
Gina Häußge
c36a378b60
Merge branch 'hotfix/documentation_error' into maintenance
2019-01-30 15:08:41 +01:00
Gina Häußge
9a7ebde76b
📝 Fix documentation for firmware info & capability plugin hooks
2019-01-30 15:02:32 +01:00
Gina Häußge
c23bafd788
☔ Protect against callback errors in decorators on default view
2019-01-30 14:36:53 +01:00
Gina Häußge
1aea92a5f1
☔ Protect against invalid preemptive cache config data
...
Fixes #3023
2019-01-30 14:36:52 +01:00
Gina Häußge
df9617ac1e
🔀 Merge branch 'maintenance' into devel
2019-01-30 11:27:30 +01:00
Gina Häußge
0b23417f45
🐛 Add missing asset that got lost during a merge
...
Fixes #3021
2019-01-29 16:48:07 +01:00
Matthias Urlichs
828ba56952
list()-ify keys(), values() and items()
...
where required. At some places it's not.
Also, "if foo in some_dict.keys()" is unnecessarily slow.
Replaced with "if foo in some_dict".
I left "for key in some_dict.keys()" alone;
"for key in some_dict" is equivalent but not always obvious.
2019-01-28 21:55:44 +01:00
Matthias Urlichs
63723baf07
list()-ify map() and filter()
...
where required. At some places it's not.
2019-01-28 21:55:44 +01:00
Matthias Urlichs
b60b20d784
Clean up example code
2019-01-28 21:06:35 +01:00
Matthias Urlichs
1e0bdc8b8c
octoprint => octoprint serve
...
for the trivial case of starting "run" without arguments
2019-01-28 20:36:02 +01:00
Matthias Urlichs
b47b39af99
missing import
2019-01-28 20:36:02 +01:00
Matthias Urlichs
6bc4d8fca4
TODO: TypeError is too unspecific
...
This might need better error filtering, assuming that we need it in the
first place. For now, remove entirely.
2019-01-28 20:36:02 +01:00
Matthias Urlichs
1e01e587f3
another missing comma
2019-01-28 20:36:02 +01:00
Matthias Urlichs
d8f5dd701b
another tab
2019-01-28 20:36:02 +01:00
Matthias Urlichs
bee609a316
more list()
2019-01-28 20:36:02 +01:00
Gina Häußge
fb38c396e8
Merge pull request #3010 from HarlemSquirrel/maintenance-disk-usage
...
Add system usage API endpoint
2019-01-28 18:33:38 +01:00
Gina Häußge
904b3c6cf5
🔧 Adjust default regex of temperature terminal filter (2nd try)
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
but should pass unit tests.
Fixes #2945
2019-01-28 18:20:03 +01:00
Gina Häußge
7f2b79bcd5
⏪ Revert "🔧 Adjust default regex of temperature terminal filter"
...
This reverts commit dd692d6
2019-01-28 18:02:46 +01:00
Gina Häußge
dd692d6f30
🔧 Adjust default regex of temperature terminal filter
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
Fixes #2945
2019-01-28 17:56:10 +01:00
Gina Häußge
5d021d76a0
✨ action_command_prompt: PROMPT_SUPPORT capability support
...
Allow configuration of whether to enable the plugin if firmware support
is detected, always or never. Handle PROMPT_SUPPORT capability report
accordingly.
See MarlinFirmware/Marlin#12982
2019-01-28 17:41:01 +01:00
Matthias Urlichs
5794a347f1
Added myself to AUTHORS ;-)
2019-01-28 15:08:40 +01:00
Gina Häußge
2db230549e
✨ action_command_prompt: signal prompt support on connect (default off)
...
Note: Has to be enabled manually for now as long as we cannot detect
that the firmware indeed has support for M876.
See MarlinFirmware/Marlin#12982
2019-01-28 14:50:40 +01:00
Gina Häußge
01484b630a
✨ action_command_prompt: EMERGENCY_PARSER support (default off)
...
Note: Has to be enabled manually for now as long as we cannot detect
that the firmware indeed has support for M876 and hence has it as part
of the EMERGENCY_PARSER.
See MarlinFirmware/Marlin#12982
2019-01-28 14:32:10 +01:00
Matthias Urlichs
5d8535cb9c
Test string must be Unicode
2019-01-28 14:14:23 +01:00
Matthias Urlichs
21d3622c2e
fix dependency (TEMP)
2019-01-28 14:14:23 +01:00
Matthias Urlichs
008cde6ef6
octoprint.user => octoprint.access.user
2019-01-28 14:14:23 +01:00
Matthias Urlichs
4df57cd8fe
Fix DeprecationWarning about using __plugin_implementations__
2019-01-28 14:14:23 +01:00
Matthias Urlichs
f53380c04e
superfluous (and deprecated) import
2019-01-28 14:14:23 +01:00
Matthias Urlichs
8af45e2f21
need to list-ify OS matches
2019-01-28 14:14:23 +01:00
Matthias Urlichs
0da47858fa
Escaping woes
2019-01-28 14:14:23 +01:00
Matthias Urlichs
abfffa3231
Remove deprecated unittest.TestCase.assertDictContainsSubset
2019-01-28 14:14:23 +01:00
Matthias Urlichs
e056ccdf29
Testing: exception args
2019-01-28 14:14:23 +01:00
Matthias Urlichs
e334d8b073
Testing: file modes
2019-01-28 14:14:23 +01:00
Matthias Urlichs
f1673c148f
str vs utf
2019-01-28 14:14:23 +01:00
Matthias Urlichs
ae5a1dc6dc
Don't base your exceptions on BaseException
2019-01-28 14:14:23 +01:00
Matthias Urlichs
7fcc3551ca
We need text mode for JSON and YAML
2019-01-28 14:14:23 +01:00
Matthias Urlichs
f3fdac7e5a
Use raw strings for all regexps.
...
No exceptions please.
2019-01-28 14:14:23 +01:00
Gina Häußge
d8088887e1
🐛 Fix bug introduced in bd58138acf
2019-01-28 13:45:09 +01:00
Gina Häußge
379411cea7
🔧 action_command_prompt: M876 as default command
...
See MarlinFirmware/Marlin#12982
2019-01-28 13:10:00 +01:00
Gina Häußge
5e953c12a1
💬 Rewording
2019-01-28 13:07:34 +01:00
Gina Häußge
bd58138acf
🎨 Refactored for better code reuse
2019-01-28 13:05:27 +01:00
Gina Häußge
44b4c6cc40
🐛 sleep => time.sleep
2019-01-28 13:00:26 +01:00
Gina Häußge
f3f1061f9d
❇️ Configurable terminal log size in comm layer
...
See https://discourse.octoprint.org/t/logging-terminal-information-on-failed-print/7047/3?u=foosel
2019-01-28 12:03:16 +01:00
Matthias Urlichs
bba95e9000
dup future statement
2019-01-28 11:12:51 +01:00
Matthias Urlichs
fa81791c29
NO we do NOT open text files in binary mode
2019-01-28 11:12:29 +01:00
Matthias Urlichs
a4072723bf
tabs vs. spaces
2019-01-28 11:11:46 +01:00
Matthias Urlichs
d451acdd4f
"futures" is py2 only
2019-01-28 11:11:34 +01:00
Matthias Urlichs
a1a15e40e0
Replace all bare "except:" handlers
...
These are never what we want, as they swallow KeyboardInterrupt.
TODO: many of these handlers really should be more specific and/or
log that they replaced an unparseable value with a default.
2019-01-28 07:50:55 +01:00
Matthias Urlichs
0c264ca0d2
less encompassing exception
2019-01-28 07:50:55 +01:00
Matthias Urlichs
9e4b0f83d8
misc
2019-01-28 07:50:55 +01:00
Matthias Urlichs
2b8d831308
bad patch
2019-01-28 07:50:55 +01:00
Matthias Urlichs
fcb0f877b8
py23
2019-01-28 07:50:55 +01:00
Matthias Urlichs
c74e3a0a0b
don't multiply with -1
2019-01-28 07:50:55 +01:00
Matthias Urlichs
ea64c017e8
event tags etc. are not supposed to be binary
2019-01-28 07:50:55 +01:00
Matthias Urlichs
70a104e32a
shebang python2 => python
2019-01-28 07:50:54 +01:00
Matthias Urlichs
75a37f5ce7
missing comma
...
merge error
2019-01-28 07:50:54 +01:00
Matthias Urlichs
e4d083028c
hashlib fix from razer
2019-01-28 07:50:54 +01:00
Matthias Urlichs
6bab550830
unicode/basestring confabulation
2019-01-28 07:37:28 +01:00
Matthias Urlichs
f9916783e9
whitespace
2019-01-28 07:34:19 +01:00
Matthias Urlichs
e00375e586
don't use six
2019-01-27 17:49:20 +01:00
Matthias Urlichs
41fab8a36c
atomic_write: use keyword for mode argument
...
this will allow us to define atomic_write as keyword-only
as soon as py2 compatibility is dropped.
2019-01-27 17:42:36 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +01:00
Matthias Urlichs
1ae6b73f7a
use setup.py from razer
2019-01-27 17:34:35 +01:00
Matthias Urlichs
670ca15997
Merge remote-tracking branch 'origin/maintenance' into py23
2019-01-27 17:28:46 +01:00
Matthias Urlichs
ea5ef34cc1
Merge commit 'ac3b8ebfccfc626c19d1ae731df65cd408f9b9c4' into py23
2019-01-27 17:16:14 +01:00
Matthias Urlichs
958fc7600d
Merge commit 'e0543de8ef5c1f67d4064e84a5e7ecacbdf1029e' into py23
2019-01-27 17:15:52 +01:00
Matthias Urlichs
13d894e74b
Merge commit '9cfcbd3929cd7fbea4e585f01e101a3dc5055ee1' into py23
2019-01-27 17:14:15 +01:00
Matthias Urlichs
353309fc60
Merge commit 'd3334b29d9124b8a9e9c2dbfcdd6e125e471c412' into py23
2019-01-27 17:13:28 +01:00
Matthias Urlichs
3501179257
Merge commit '41e74df8d33b4f8b332ca278db478a70dcfe7aec' into py23
2019-01-27 17:12:24 +01:00
Matthias Urlichs
f993f744ba
Merge commit 'c623e90ebc59b90b4f4cf582ab8185b2872acff4'; commit 'f416e96414f33fb31afdf4dfbf3c863e3db35543'; commit '9ecf39febe31a44e5f5db28249ebbf006ac1580c'; commit '582b03f21fe3d808bf4e11bbba90af54b6651b34'; commit 'f5c8b04958170f19f1806b1722bf5e857ded3dce'; commit '36818057a3b4769a77731f3be8bc661437db7132'; commit 'd987cb23c119132b287f70f1c979aac8c9fff7d2' into py23
2019-01-27 17:10:01 +01:00
Gina Häußge
68410cb3d7
🐛 Fix an issue with plugin sorting
...
If we just uninstalled a plugin there might not be a PluginInfo object.
In that case assume the plugin is not bundled (not False = True)
2019-01-25 16:14:45 +01:00
Gina Häußge
db009e3ba2
🐛 backup: do not translate plugin name
...
Only translate it at template level, not before.
Fixes #3012
2019-01-25 15:48:35 +01:00
Gina Häußge
09d3c44161
🐛 unicode-ify octoprint.plugin.core
...
Fixes #3012
2019-01-25 15:39:31 +01:00
Gina Häußge
c2814651f9
errortracking: keep disabled on unreleased versions
...
We don't want to track errors during development, unless overridden
via config flag.
2019-01-23 12:23:38 +01:00
Gina Häußge
eb46815789
Slight refactoring for improved testability & fix tests
2019-01-22 15:40:08 +01:00
Kevin McCormack
449fa0c7ec
WIP Update test_system
2019-01-21 12:49:57 -05:00
Kevin McCormack
0489dfeaee
[WIP] Add disk usage API endpoint
2019-01-20 10:02:13 -05:00
Gina Häußge
a9b395dac8
✨ Dedicated settings for webcam/timelapse support
...
Implements #2974
2019-01-18 16:58:34 +01:00
Gina Häußge
44a40b8297
errortracking: fix typo -_-
2019-01-18 14:36:46 +01:00
Gina Häußge
49728f18c6
errortracking: add missing dependency
2019-01-18 14:27:26 +01:00
Gina Häußge
f6ec0bca6e
errortracking: first throw at an implementation
...
Currently uses a sponsored sentry instance on sentry.io. Error tracking
is disabled by default and currently still has to be enabled through
manual configuration in config.yaml (plugins.errortracking.enabled=true)
2019-01-18 14:13:26 +01:00
Gina Häußge
6a069de240
Put generic templates after javascript assets
...
That way it's possible for plugins to reference already loaded libraries
or constants in any injected generic templates.
2019-01-18 14:10:47 +01:00
Gina Häußge
2287c65784
forcelogin: ui_render sorting key of 0
...
If third party UIPlugin want to override the forcelogin plugin, they'll
need to return a negative sorting key.
2019-01-17 17:55:24 +01:00
Gina Häußge
3b26a2f7d2
Take bundle status into account for plugin sorting
2019-01-17 17:54:24 +01:00
Gina Häußge
18ffdcff6b
forcelogin: Accept auth via apikey & auth headers
...
So far we only checked for keys or auth headers on the API, the plugin
so far only checked if there was an existing cookie via a passive login.
Now it will try to login the user from any provided api keys or
authorization headers as well and only fall back to the passive login if
that doesn't succeed. A call to the frontend with either will thus not
trigger the login dialog.
See #2997
2019-01-17 17:33:00 +01:00
Gina Häußge
faab946aeb
Add missing , 🤦♀️
2019-01-17 15:34:57 +01:00
Gina Häußge
a48e069aa6
Fix race condition on start of SD print
...
If an M27 to query SD status came after the change of state to printing
but before the M24 to actually start the print on the printer's side the
firmware would report "Not SD printing" and OctoPrint would consequently
cancel the just start job right away.
This patch introduces a new "Starting" state that will be active while
preparing a print job (in case of SD: selecting the file, setting file
position & finally starting the print). The comm layer treats as
nearly identically to the Printing state, the only difference is in the
treatment of received "not sd printing" messages which will be ignored
while still Starting.
Additionally this patch introduces a "two strikes rule" for "not sd
printing" messages (which can be configured to be another number of
strikes). Only if OctoPrint receives two consecutive "not sd printing"
messages from the printer will it actually cancel the printer. This is
to work around a potential (albeit very very unlikely) race condition
that still exists even with the starting state.
Fixes #3001
2019-01-17 13:16:07 +01:00
Gina Häußge
d4d5bed514
Fix broken sdcard upload success handling
...
Spotted by @devildant, thanks!
Closes #3005
2019-01-17 10:49:48 +01:00
Gina Häußge
97f84f120c
Improve inline docs for serial.disconnectOnErrors behaviour
...
See #3002
2019-01-16 19:17:10 +01:00
Gina Häußge
cdc69ea93c
tracking: add elapsed time to cancelled tracking event
2019-01-16 18:50:51 +01:00
Gina Häußge
467dd344cf
docs: document time field in PrintCancelled payload
2019-01-16 18:48:53 +01:00
Gina Häußge
6b9c9f47da
Don't send reason field in PrintCancelled event payload
2019-01-16 18:47:40 +01:00
Gina Häußge
b7f17531d2
tracking: fix tracking not starting fully during runtime
...
We didn't start the ping thread and also not the throttle state monitor
if switched on during run time.
2019-01-16 18:38:47 +01:00
Gina Häußge
987379d6e7
Merge branch 'maintenance' into pr/2968
...
# Conflicts:
# src/octoprint/plugins/tracking/__init__.py
2019-01-16 18:34:30 +01:00
Gina Häußge
62b1d91901
tracking: refactored individual enable check
...
Way less repetition this way.
2019-01-16 18:33:41 +01:00
Gina Häußge
7cb5013b08
tracking: always generate a uuid on startup
...
But just in case still check if it's set before doing anything with it.
2019-01-16 18:29:49 +01:00
Gina Häußge
06a3baa588
Merge branch 'maintenance' into pr/2900
2019-01-16 17:52:06 +01:00
Gina Häußge
07934d26eb
Refactored some things and added more docs
...
There was still some redundancy due to how SD upload so far was
implemented. Things are now better reusable from hooks.
Also fixed the problem that OctoPrint would *always* use the first hook,
whether it actually handled the upload or not.
2019-01-16 17:51:53 +01:00
Gina Häußge
3ae97a3e13
Add user & job owner to print job events
...
Adds print job owner (= user who selected/started a job) and user who
started/paused/resumed/cancelled a job to the print job events as
applicable.
Also added logging of print job events to octoprint.log with this
information.
Plugins can use the event data for further logging or tracking.
Implements #2982
2019-01-16 14:04:16 +01:00
Gina Häußge
5f22e68985
Add clear button to files search
...
I would have preferred it to just depend on the default styling of
search type inputs in browsers, which at least on Webkit and IE will add
a clear button automatically, but Firefox doesn't add one and the
corresponding ticket [1] also doesn't look like that will change soon.
So a custom implementation it is. Hooray.
Implements #2983
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=558594
2019-01-16 12:01:03 +01:00
Gina Häußge
df1dc17c51
Merge branch 'maintenance' of github.com:foosel/OctoPrint into maintenance
2019-01-16 10:29:30 +01:00
Gina Häußge
71aa405b26
Merge pull request #3004 from gloomyandy/pr_write_timeout
...
Use non blocking I/O for writes to implement write timeout (take 2)
2019-01-16 10:29:02 +01:00
Gina Häußge
2d2986922d
Merge pull request #2986 from tedder/responsive_login_page
...
make login page responsive
2019-01-16 10:27:59 +01:00
Andy Shaw
7b5dbef166
Use non blocking I/O for writes to implement write timeout
...
Currently write timeouts are not really implemented (as they are set to 10000 seconds). The current code also has the unwanted side effect of casuing the use of a select call (in the Linux PySerial library) even when a write does not need to block. This call to select can in some odd cases cause the write to block for the duration of the set timeout which in turn triggers a transmission error. See issue https://github.com/foosel/OctoPrint/issues/2996
This change addresses both issues by allowing the use of the existing write retry code to handle timeouts and by using non-blocking write mode to avoid the use of select.
2019-01-15 19:33:51 +00:00
Gina Häußge
da61a49bd8
Forgot something
2019-01-15 17:28:13 +01:00
Gina Häußge
002802bb20
Deprecate appkey API in favor of Application Keys Plugin
...
Slated to be removed in 1.4.0. AFAIK nobody used it anyhow.
2019-01-15 17:25:58 +01:00
Gina Häußge
45b59494ca
Add new hook too allow plugins to register custom events
...
Implements #2965
2019-01-15 16:54:50 +01:00
Gina Häußge
83530ec7b9
Logging: deletion confirmation & bulk delete
...
Implements #2962
2019-01-15 15:09:42 +01:00
Gina Häußge
918b70185e
Set max-height on PNotify notifications
...
Fixes #2959
2019-01-15 14:51:57 +01:00
Gina Häußge
6aa89b77dc
autologin: also check against v6 representation of v4 networks
...
See #2976
2019-01-14 12:03:53 +01:00
Gina Häußge
1679b45cd6
Merge pull request #2978 from agrif/fix/plugin-module-names
...
Use module name when loading plugins from entry points.
2019-01-11 15:11:06 +01:00
Gina Häußge
4728a1a5a9
Merge pull request #2993 from hgross/fix/restore-on-docker-volumes
...
Fix #2992 (restore mechanism on docker volumes)
2019-01-11 14:54:45 +01:00
Gina Häußge
c35a387520
Merge pull request #2973 from melgish/bugfix/2971
...
use jQuery for checked state.
2019-01-11 14:53:01 +01:00
Gina Häußge
d7aae66886
Add --disable-pip-version-check to pip calls
...
Users get too confused by the warning the lack of it generates on plugin
installs/uninstalls and updates of any kind through pip. An FAQ entry
on that matter hasn't helped, so we are now pulling out the nuclear
option to reduce support overhead.
Implements #2988
2019-01-11 14:23:48 +01:00
Henning Groß
67ab9d577a
Merge branch 'maintenance' into fix/restore-on-docker-volumes
2019-01-08 10:58:19 +01:00
MirceaDan
d987cb23c1
Merge branch 'devel' into dev/py23_metaclass
2019-01-07 21:41:14 -08:00
Henning Gross
10d045d743
Added @hgross to AUTHORS.md
2019-01-07 22:25:29 +01:00
Henning Gross
44818993ff
#2992 use shutil.move instead of os.rename
2019-01-07 21:49:21 +01:00
tedder
970b9c3384
make login page responsive
...
with responsive plugins like TouchUI, all of the pages render on mobile just fine.. except the login page. I was tired of scrolling much wider than my phone's display to make it show up, so I did some investigation. Turns out it was just missing the meta viewport.
2019-01-02 19:53:21 -08:00
Aaron Griffith
89f94be96a
Use module name when loading plugins from entry points.
2018-12-29 21:52:11 -05:00
Nicholas J. Fiorello Jr
52cfd93301
use jQuery for checked state.
2018-12-24 18:11:47 -05:00
tedder
2a8d103dc6
handle missing uuid at sha time
...
Even if a user doesn't have a uuid at startup, they might enable tracking later and .. then a uuid isn't created until the next startup. For this reason and others, we shouldn't pass None to sha.update. Also, by adding a 'uuid missing' string to the log post, we can now track how many instances are missing a uuid for some reason. (though these may show now as a uuid of 'None').
2018-12-22 14:47:52 -08:00
Gina Häußge
d452051c0a
Add systemd file
...
As discussed in #1716
2018-12-19 14:47:52 +01:00
Gina Häußge
99b32fc6c3
Merge remote-tracking branch 'origin/maintenance' into maintenance
2018-12-19 13:37:51 +01:00
Gina Häußge
5b4f4e3d77
Tentatively support Python 3 while that is being worked on
2018-12-19 13:36:55 +01:00
Gina Häußge
c66b451efd
Merge branch 'maintenance' into devel
2018-12-19 13:35:42 +01:00
Gina Häußge
4e9437114b
Change wording & exception type
2018-12-19 13:35:18 +01:00
Connor Wolf
52c7321c78
Handle unsupported version at runtime.
...
If you have an ancient setuptools, 4a36ddb3aa
won't successfully prevent installing. These changes will at least give a sane error,
rather then just barfing on random syntax errors due to the `unicode` type not
being present in py3k.
Cherry picked from 2f20f2d
2018-12-19 13:34:37 +01:00
Gina Häußge
ef94646083
printer_safety: Added version restriction to anycubic detection
...
Had to refactor check system to make this possible. Checks are now
implemented in classes that allow to track state.
2018-12-19 13:17:45 +01:00
Unknown
37f3396be3
try fix default function
2018-12-18 19:32:31 +01:00
Unknown
f8f461b804
add callback for on success/error for hook sdcopy
2018-12-18 19:07:15 +01:00
Unknown
5396daa7f6
move default fuction to local fuction + minor fix
2018-12-18 18:47:16 +01:00
Gina Häußge
bb51dc23fc
Merge pull request #2960 from jubaleth/fix/ExceptionMessageCorrection
...
Exception message correction
2018-12-18 11:06:35 +01:00
Jubaleth
2733838574
Corrected plugin manager failure exception message
2018-12-17 18:57:22 +01:00
Gina Häußge
a23d92158b
tracking: Track uptime of OctoPrint in ping event
...
That will give us an idea if the current hypothesis that quite a number
of people are shutting down their instance at night is correct or not,
which in turn will inform future startup optimizations.
2018-12-17 17:47:22 +01:00
Gina Häußge
99225244f1
Add full version string to API
2018-12-17 14:20:42 +01:00
Gina Häußge
e30f1b9f82
Add "::1/128" to localNetworks for auto login
...
See BillyBlaze/OctoPrint-TouchUI#266
2018-12-17 12:29:19 +01:00
Unknown
054bbead72
clean doc + add default function + reduce parameter
2018-12-13 21:28:49 +01:00
Unknown
30294e9009
replace tab by space
2018-12-13 18:39:29 +01:00
Gina Häußge
bf5bc14c87
backup: fix needed space calculation
...
It wasn't taking excludes into account. Now its calculation mirrors the
zip file creation.
2018-12-13 16:29:22 +01:00
Gina Häußge
f6dd13af7a
tracking: add printer safety warnings to tracking
...
We want to get an idea how many people are running unsafe firmware.
2018-12-13 15:24:24 +01:00
Gina Häußge
5760b4b264
tracking: check enabled state before preparing payload
...
Otherwise if tracking is disabled we still do the work and then throw
it away, which is kinda stupid.
Also fixes potential issues with using things like the unique_id when
it hasn't in fact been set due to disabled tracking.
2018-12-13 13:13:02 +01:00
Gina Häußge
49b995b234
Set 10min idle timeout on tornado under windows
...
Possible workaround for #2916
2018-12-12 16:06:15 +01:00
Gina Häußge
8cf5ca9589
tracking: Track firmware/communication errors
2018-12-12 15:41:36 +01:00
Gina Häußge
ae36a3905a
printer safety: Mark Malyan M200 fw 4.0+ as safe
...
Implements #2947
2018-12-12 15:25:38 +01:00
Gina Häußge
bfd847f0a6
GCODE viewer: Bring back the layer count
2018-12-12 15:16:17 +01:00
Gina Häußge
e14cb44e13
Fix merge error & forcelogin plugin
2018-12-12 14:39:39 +01:00
Gina Häußge
17ad63dabf
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/templates/tabs/temperature.jinja2
2018-12-10 15:01:16 +01:00
Gina Häußge
ef81702219
Merge remote-tracking branch 'origin/maintenance' into maintenance
2018-12-10 14:59:55 +01:00
Gina Häußge
7cbe6244ae
Merge branch 'staging/maintenance' into maintenance
2018-12-10 14:59:39 +01:00
Gina Häußge
112a8b9c8b
Merge branch 'rc/maintenance'
2018-12-10 13:01:23 +01:00
Gina Häußge
98b692d845
Preparing release of 1.3.10
2018-12-10 12:44:25 +01:00
Gina Häußge
f4f7c87640
Always show actual received from printer instead of off
...
Regardless how cold the temperature is, display it in the table. Some
people otherwise seem to think that OctoPrint "can't handle"
temperatures below 10°C and will blame it for MINTEMP errors triggered
in the firmware.
2018-12-06 11:49:23 +01:00
MirceaDan
39cda08d07
added six to required deps
...
i believe six was already brought in by other packages, but better to be specified in clear than to assume other will install it.
2018-12-03 10:41:46 -08:00
Gina Häußge
3a1611e5c4
Merge branch 'maintenance' into devel
2018-12-03 14:17:32 +01:00
Gina Häußge
5af5cbbb37
Merge branch 'staging/maintenance' into maintenance
2018-12-03 14:16:50 +01:00
Gina Häußge
a657ebd528
staging/maintenance is now 1.3.10rc5.dev
2018-12-03 14:16:31 +01:00
Gina Häußge
e628aedbc1
Preparing release of 1.3.10rc4
2018-12-03 12:42:28 +01:00
MirceaDan
7736cf1e6d
import configparser py3
...
compat with py3
import configparser
2018-12-02 16:10:37 -08:00
MirceaDan
41e74df8d3
click.disable_unicode_literals_warning = True
...
when importing from future unicode literals those warning will need to be disabled
2018-12-02 15:44:20 -08:00
MirceaDan
ac3b8ebfcc
winreg compatibility with python3
...
_winreg has been renamed in winreg in py3
2018-12-02 15:24:19 -08:00
MirceaDan
e0543de8ef
print is a function + header
...
made print a function and added imports from future and encoding
2018-12-02 02:30:47 -08:00
MirceaDan
f243a52823
all files start now with same 2 lines
...
# coding=utf-8
from __future__ import absolute_import, division, print_function
2018-12-02 02:13:12 -08:00
MirceaDan
94013ddb70
py23 compat for defining metaclasses
...
in python 3 and py2 metaclases are define ddiferentley, using six to get to a common solution
2018-12-02 01:25:27 -08:00
MirceaDan
9cfcbd3929
unquote works properley now with py2 and py3
...
py3 support directley to provide encoding, py2 has to do more work
2018-12-02 01:12:12 -08:00
MirceaDan
6cfbdc6062
py23 urlib compat
...
unquote was move dto a diferent location
2018-12-01 22:44:01 -08:00
MirceaDan
d3334b29d9
fix for tests and previous commit regarding estimations
...
tests needed updated None replaced with -1
2018-12-01 22:26:30 -08:00
MirceaDan
94ce6f1dd1
cannot compare number with None
...
TypeError: '<' not supported between instances of 'float' and 'NoneType'
2018-12-01 20:02:22 -08:00
MirceaDan
c623e90ebc
chnaged teh default from binary to text mode
...
seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
2018-12-01 17:43:19 -08:00
MirceaDan
b6e49b59a7
unitest update to decode utf8
...
TypeError: write() argument 1 must be unicode, not str
2018-12-01 17:11:07 -08:00
MirceaDan
f416e96414
defined unicode as str or used basestring
...
in py3 unicode does not exists is default str type but it exists in py2, wrote code to make it run in both py2 and py3
2018-12-01 17:00:37 -08:00
MirceaDan
347f53baa4
file must be open in text mode
...
those files must be opened in text mode in python3
2018-12-01 16:36:11 -08:00
MirceaDan
9ecf39febe
we need a list not a map object
...
AssertionError: Second sequence is not a list: <map object at 0x7f7b0d3811d0>
2018-12-01 16:26:43 -08:00
MirceaDan
582b03f21f
async is a function in py3
...
SyntaxError:Can't assign to function call
declared the dictionary using a diferent format that works in both py2 and py3
/src/octoprint/server/api/system.py", line 192
async=True,
^
SyntaxError: invalid syntax
2018-12-01 16:13:20 -08:00
MirceaDan
ff0b94c78d
py23 compat: list is needed not a view
...
in py3 keys() returns a view but in this cases we need a list
2018-12-01 15:42:01 -08:00
MirceaDan
f5c8b04958
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
...
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2018-12-01 15:07:04 -08:00
MirceaDan
36818057a3
commands to be able to develop for py2 and py3 in same time
...
this way we can test both py2 and py3
2018-12-01 13:13:19 -08:00
MirceaDan
a5cff5bc3d
this file must be opened in text mode
...
the version file must be read in text mode
2018-12-01 12:19:30 -08:00
MirceaDan
a4bff305b3
name update
...
filled in full name
2018-12-01 12:08:10 -08:00
MirceaDan
6b149e2fc9
fixed unitests for io.open change
...
the fixups needed change to use io.open in mock
some io.open needed to be read as text
2018-12-01 11:57:10 -08:00
Gina Häußge
38fce1665b
backup: signal restore done before reboot
2018-11-30 20:07:18 +01:00
Gina Häußge
f51a98768c
backup: more feedback during restore
...
The upload of a backup can take a while, so pop up the work dialog as
soon as that starts, not only when it is finished.
2018-11-30 20:06:57 +01:00
Gina Häußge
4d04c323f6
backup: use base version for version check
2018-11-30 20:06:24 +01:00
Gina Häußge
94116bfd53
backup: fix on_restore_failed calls
2018-11-30 18:33:58 +01:00
Gina Häußge
a05761e63f
backup: better error logging
2018-11-30 18:29:55 +01:00
Gina Häußge
89469d38ae
printer safety: Fix localization of warning
2018-11-30 17:06:07 +01:00
Gina Häußge
bd2616e888
backup: exclude generated, logs & watched
...
We don't need these in the backup, and in fact they only make things
more bloated and/or complicated.
2018-11-30 16:53:26 +01:00
Gina Häußge
02e996436d
backup: restore is not supported on windows
...
Sadly the stupid file locking of windows makes it impossible to
hot swap the config directory. In order to support windows a two step
approach would be needed. Maybe at a later date, currently simply not
worth the effort tbh considering how seldomly windows is used as OS for
OctoPrint.
2018-11-30 16:53:19 +01:00
Gina Häußge
a3f2e0b56c
backup: fix plugin compatibility check on restore
...
Fixes #2920
2018-11-30 16:21:58 +01:00
MirceaDan
337e49208a
py23 compat: using io.open instead of open
...
for python3 and python2 to work teh same io.open must be used for file handling
2018-11-30 00:32:57 -08:00
Gina Häußge
b052925424
Merge remote-tracking branch 'origin/devel' into devel
...
# Conflicts:
# tests/filemanager/test_filemanager.py
2018-11-28 17:37:47 +01:00
Gina Häußge
970c867ee4
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/users.py
2018-11-28 16:33:11 +01:00
Gina Häußge
c4295d6a81
Merge branch 'staging/maintenance' into maintenance
2018-11-28 14:57:14 +01:00
Gina Häußge
d60cab1962
staging/maintenance is now 1.3.10rc4.dev
2018-11-28 14:56:39 +01:00
Gina Häußge
b01e327f9d
Preparing release of 1.3.10rc3
2018-11-28 12:56:02 +01:00
Gina Häußge
09af2813d0
Add dedicated issue templates
2018-11-27 14:21:13 +01:00
Gina Häußge
2f69a84352
Use max of comm & temp timeout as serial timeout
...
That way we avoid issues if the user has set a longer temperature
reporting interval than (busy) communication timeout.
See #2905
2018-11-26 15:33:37 +01:00
Gina Häußge
13260fa219
tracking: file path instead of just name in print events
...
Closes #2908
2018-11-26 14:10:03 +01:00
Gina Häußge
9a90093dda
tracking: file path instead of just name in print events
...
Closes #2908
2018-11-26 14:08:33 +01:00
Gina Häußge
8292408c79
Remove image from changelog, replace with text
...
Closes #2909
2018-11-26 12:05:58 +01:00
Gina Häußge
9165f83084
printer safety: Mark stock Micro3D fw as unsafe
...
See https://github.com/donovan6000/iMe/issues/67#issuecomment-441454163
2018-11-26 10:27:20 +01:00
Gina Häußge
c2ef371089
Docs: add documentation for some config params
2018-11-23 11:12:40 +01:00
Gina Häußge
fa9472d4aa
Fix SWU restart command again
...
Accidentally committed something I only changed for a test. Oops.
2018-11-22 15:54:02 +01:00
Gina Häußge
037e92c447
Recognize incomplete startups and set safe mode flag
2018-11-22 15:52:18 +01:00
Gina Häußge
170804d4df
Create a backup of working config.yaml after startup
2018-11-22 13:47:02 +01:00
Gina Häußge
ac129a2576
Only patch sarge's async on python 2
2018-11-22 13:10:59 +01:00
Gina Häußge
db8d420860
Decorator for sarge that translate async to async_
...
Should work around issues with third party plugins that haven't yet
adapted.
2018-11-22 12:37:28 +01:00
Gina Häußge
7d7cbb1760
Some reordering in the settings
2018-11-21 16:14:23 +01:00
Gina Häußge
89979f1bee
Revert "Hardening against bad plugins"
...
Making on_after_startup asynchronous unearths some odd issue that causes
subsequent callback calls to duplicate. It might just be PyCharm's
debugger (disabling it makes the problem go away and I so far couldn't
reproduce it without it), but just in the case that I introduced some
weird race condition with this _async approach I'm removing it. I'd
rather have badly implemented plugins break the startup then the startup
being inherently broken from the get go.
Added a couple more warnings in the docs though.
2018-11-21 16:14:06 +01:00
Gina Häußge
bd241e8e6c
backup: allow zip64
2018-11-21 12:19:04 +01:00
Gina Häußge
7939b0ae4d
backup: better error reporting
2018-11-21 12:10:03 +01:00
Gina Häußge
6b57ba2d7d
printer_safety: detect iMe on Micro3D
...
See donovan6000/iMe#67
2018-11-20 12:42:52 +01:00
Gina Häußge
2c5465f9a6
Got rid of an unused import
2018-11-20 12:42:50 +01:00
Gina Häußge
1565129cfb
docs: warning about blocking ops in some plugin callbacks
2018-11-20 12:42:49 +01:00
Gina Häußge
b8d4a58207
SWU: remove one thread level
...
on_after_startup now runs in its own thread, no need to spawn yet
another.
2018-11-20 12:42:43 +01:00
Gina Häußge
900f03dc8a
SWU: add a timeout to the wait on environment info
2018-11-20 12:24:50 +01:00
Gina Häußge
0c4c4a9d18
Hardening against bad plugins
...
We don't want on_after_startup or on_event handling to get blocked by
some rogue plugin that decides to block or outright kill the thread.
2018-11-20 12:19:17 +01:00
Gina Häußge
ff4ed38329
Track user logout on socket
2018-11-19 15:24:12 +01:00
Gina Häußge
5f78ab7b73
Register for plugin messages on socket connect
...
Second part of the fix for #2898
2018-11-19 15:22:45 +01:00
Gina Häußge
6556d555bd
forcelogin: Keep message backlog while not authed
...
First part of the fix for #2898
2018-11-19 15:22:33 +01:00
Gina Häußge
d318ff82b8
More error resilience in the local ip check
...
Should solve #2897
2018-11-16 13:57:11 +01:00
Gina Häußge
ff53a826f9
tracking: Fix link of plugin in plugin manager
2018-11-16 13:19:31 +01:00
Unknown
abb14dc17a
add hook for sdcard copy + documentation
2018-11-16 11:17:05 +01:00
Unknown
a45c86eed1
Revert "add self param to error_hook + update documentation"
...
This reverts commit c30380d423 .
2018-11-16 11:03:35 +01:00
Unknown
c30380d423
add self param to error_hook + update documentation
2018-11-16 11:02:15 +01:00
Gina Häußge
d79e777911
Update german translation
2018-11-15 14:42:48 +01:00
Gina Häußge
335e635ec7
printer_safety_check: Make a text translateable
2018-11-15 14:17:06 +01:00
Gina Häußge
a5754a8552
pi_support: Add link to the new FAQ entry
2018-11-15 14:16:27 +01:00
Gina Häußge
a8c91ff6ba
pi_support: Better wording in popover & highlight current
2018-11-15 12:57:02 +01:00
Gina Häußge
6285fd8010
Allow dynamic values in ko popover binding
2018-11-15 12:40:03 +01:00
Gina Häußge
c69f20c648
Mark py3 as supported for development even though it's not
2018-11-13 16:23:28 +01:00
Gina Häußge
88c93a7c11
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
2018-11-13 16:22:07 +01:00
Gina Häußge
92629468c0
Merge remote-tracking branch 'origin/maintenance' into maintenance
...
# Conflicts:
# setup.py
2018-11-13 16:17:56 +01:00
Gina Häußge
56a1d4f966
Merge branch 'staging/maintenance' into maintenance
2018-11-13 16:17:08 +01:00
Gina Häußge
799aedcaed
staging/maintenance is now 1.3.10rc3.dev
2018-11-13 16:16:43 +01:00
Gina Häußge
de42ce73f7
Preparing release of 1.3.10rc2
2018-11-13 12:43:06 +01:00
Gina Häußge
962e09906e
tracking: Fix translatability of a message
2018-11-13 12:42:31 +01:00
Gina Häußge
f607f55683
printer_safety_check: Detect Ender 3 stock fw
...
As reported in https://discourse.octoprint.org/t/thermal-runaway-protection-absent-on-creality-ender-3/2787
2018-11-13 11:17:24 +01:00
Gina Häußge
8e464f59ac
Reapply "Updated several dependencies to current version"
...
This reverts commit e14c00f135 .
2018-11-12 17:27:37 +01:00
Gina Häußge
91b524813c
Minimum python version is now 2.7.9
2018-11-12 17:27:37 +01:00
Gina Häußge
1b45047826
tracking: wizard changes
...
* spinners for the enable/disable buttons
* error handler for persisting the decision that unlocks the wizard
Might help to work around issues less than a hand full of people have
now observed where the wizard's buttons are non functional but the
wizard itself is active and blocking.
More data needed to reproduce and debug the core issue though.
2018-11-12 15:23:17 +01:00
Gina Häußge
edd4d90b12
tracking: tracking.js -> usage.js
...
To work around some ad blockers that might block this otherwise - which
is kinda funny since the js file doesn't do any tracking, it just
makes the setup wizard for the opt-in functional 🤦♀️
2018-11-12 14:33:43 +01:00
Gina Häußge
0a3ad8a880
tracking: add time & reason for failure to print_failed
...
(cherry picked from commit b7e373c )
2018-11-12 14:33:43 +01:00
Gina Häußge
82615791a2
Add time & reason for failure to PrintFailed event
...
(cherry picked from commit dae0264 )
2018-11-12 14:33:42 +01:00
Gina Häußge
4548be34f0
Always trigger SettingsUpdated event on new save
...
So far it was only triggered when saving via the REST API, causing some
issues here and there.
2018-11-12 11:40:21 +01:00
Gina Häußge
2b5af2c36a
Add docs for octoprint.util.commandline
2018-11-09 18:16:57 +01:00
Gina Häußge
a939130748
Better description for Error event
2018-11-08 18:39:03 +01:00
Gina Häußge
b7e373c40f
tracking: add time & reason for failure to print_failed
2018-11-08 17:41:45 +01:00
Gina Häußge
dae0264a58
Add time & reason for failure to PrintFailed event
2018-11-08 17:41:27 +01:00
Gina Häußge
b2e50e13d4
Blacklist broken regex version
2018-11-08 15:54:05 +01:00
Gina Häußge
cb4404a833
Merge branch 'pr/2878' into staging/maintenance
2018-11-08 15:50:13 +01:00
Gina Häußge
38bb81cfe7
tracking: add throttle events, slightly change throttle payload
...
Also adjusted helper signature in pi_support plugin slightly.
Addon to #2878
2018-11-08 15:49:11 +01:00
Gina Häußge
1667f9bd52
Fix bug introduced in 4caf4ef09
2018-11-08 14:00:48 +01:00
Gina Häußge
1ec61a9fe6
Give the favicon mask SVG width and height attrs
...
Otherwise it won't render correctly in Firefox due to drawImage silently
failing, see also https://bugzilla.mozilla.org/show_bug.cgi?id=700533
Closes #2879
2018-11-08 13:42:19 +01:00
tedder
98c84b6bb9
fix test, match dict
2018-11-08 01:34:45 +00:00
tedder
76f48b3b13
PR feedback: throttle state and uuid
...
- add a way to get the raw value only from throttle state (glad I already plumbed it into the object!)
- add warning about not sending uuid, modify the log entry too
2018-11-08 01:29:15 +00:00
Gina Häußge
8596ae5c4a
SWU: Make sure check providers are in the correct format
...
Just in case there's some odd data in `config.yaml` as reported in https://github.com/foosel/OctoPrint/issues/2871#issuecomment-436507623
2018-11-07 11:10:31 +01:00
tedder
c1482eaacd
add throttle_state to tracking
...
- weave the throttle_state through pi_support and tracking. This should come in handy to see how many throttled Pis are out there, as well as if it is correllated with canceled prints.
- upgraded disclosure of tracking information so it shows as INFO-level in the logs and all the information is dumped. If tracking.octoprint.org gets it, I should have it too :)
2018-11-06 15:37:45 -08:00
Gina Häußge
e23fe4a925
forcelogin: Fix issue when running with acl disabled
...
Closes one variant of #2876
2018-11-06 17:34:01 +01:00
Gina Häußge
8939537fb5
Merge branch 'staging/maintenance' into maintenance
2018-11-06 15:57:18 +01:00
Gina Häußge
2f08b90200
Merge branch 'master' into staging/maintenance
2018-11-06 15:56:33 +01:00
Gina Häußge
68ca2c5e51
Pin regex dependency to last known working version
...
See #2874 and https://bitbucket.org/mrabarnett/mrab-regex/issues/301/typeerror-character-mapping-must-return
2018-11-06 15:52:41 +01:00
Gina Häußge
343195477b
Fix connection fail if fw doesn't send start
...
Closes #2872
2018-11-06 14:47:39 +01:00
Gina Häußge
4caf4ef09b
Fix GCODE viewer not being able to load files
...
Side effect of the ForcedLogin plugin and a bug in
get_flask_user_from_request.
Closes #2873
2018-11-06 14:02:49 +01:00
Gina Häußge
54677f96f4
Merge branch 'maintenance' into devel
2018-11-06 12:32:25 +01:00
Gina Häußge
0ba987e126
maintenance is now 1.3.11.dev
2018-11-06 12:31:53 +01:00
Gina Häußge
0325628693
staging/maintenance is now 1.3.10rc2.dev
2018-11-06 12:29:28 +01:00
Gina Häußge
e522633c98
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/plugins/softwareupdate/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/server/util/tornado.py
# src/octoprint/static/js/app/client/base.js
# src/octoprint/users.py
2018-11-06 11:57:57 +01:00
Gina Häußge
e14c00f135
Revert "Updated several dependencies to current version"
...
This reverts commit 4ed5f7e
The updates cause issues on very old python environments (distribute
instead of setuptools, e.g. OctoPi 0.12) due to new package formats.
We'll postpone them to 1.3.11, since OctoPrint 1.3.10 will then refuse
to upgrade in such environments anyhow.
2018-11-05 14:25:10 +01:00
Gina Häußge
b0a4a49f99
Changelog for 1.3.10rc1
2018-11-05 13:18:05 +01:00
Gina Häußge
5b4839369e
appkeys: Probe endpoint to check for workflow support
...
Also adjusted docs and js client lib accordingly.
2018-11-05 12:50:05 +01:00
Gina Häußge
1ff02b9f1c
Update bundled German translation
2018-11-05 11:59:48 +01:00
Gina Häußge
e2c1fa3d43
Appkeys: request creation should respond with 201
2018-11-02 17:04:58 +01:00
Gina Häußge
39a466e316
Appkeys: Make timeout thread safe
2018-11-02 12:53:30 +01:00
Gina Häußge
9e940eacc3
Merge branch 'fix_appkey_orphan_dialogs' of https://github.com/fieldOfView/OctoPrint into pr/2869
2018-11-02 12:27:16 +01:00
Gina Häußge
2e38f237de
Fix cancel snippet for shared nozzle setups
...
See https://discourse.octoprint.org/t/prusa-mmu2-how-to-properly-configure/4937/
2018-11-02 12:20:05 +01:00
fieldOfView
7f36ffdafd
Expire request_access when the client stops polling
2018-11-02 11:04:06 +01:00
Gina Häußge
39b2da3230
Merge pull request #2868 from gdombiak/extrude_speed2
...
Documentation fixed and extrusion speed value check
2018-11-02 10:52:42 +01:00
fieldOfView
c489829efb
Add myself to AUTHORS.md
...
because it's a requirement for a PR
2018-11-02 09:31:56 +01:00
fieldOfView
e30e129e2a
Close request_access dialogs on other open connections when a decision is made
...
Once a decision is made on one connection (browser window), dialogs on other connections are no longer relevant.
2018-11-02 09:22:30 +01:00
Gaston Dombiak
32d5b25013
Removed unnecessary variable initialization
2018-11-01 21:44:42 -07:00
Gaston Dombiak
6227a0dfb9
1) Fixed documentation about speed unit and 2) extrusion speed is now limited to printer profile max value
2018-10-31 20:45:56 -07:00
Gina Häußge
e234c6146e
Better detection of ipv6 support
...
Apparently socket.has_ipv6 doesn't actually do what it says in the docs
(state whether the underlying platform supports ipv6). It returns True
even when ipv6 has manually been disabled for whatever reason. So we
will no longer trust this but instead attempt to actually create a v6
socket and only if that succeeds assume that v6 is indeed supported on
the platform.
2018-10-31 13:39:54 +01:00
Gina Häußge
c146731e5a
Merge pull request #2865 from gdombiak/extrude_speed
...
Extrude speed
2018-10-31 11:58:28 +01:00
Gina Häußge
5ee242be4a
Fix doc bug: mm/s => mm/min
2018-10-31 11:54:17 +01:00
Gaston Dombiak
556878a774
Merge branch 'maintenance' into extrude_speed
2018-10-30 19:09:05 -07:00
Gaston Dombiak
00aa4876e9
Added support to specify extrude/retract speed. Only at REST API. No UI changes were made
2018-10-30 19:01:20 -07:00
Gina Häußge
f72f948744
Merge pull request #2828 from tedder/devel_ted_py3_round3
...
tedder's python3 fixes, round 3
2018-10-30 17:36:38 +01:00
Gina Häußge
e5e8581f9a
Detect invalid test setups in settings tests
...
Should prevent future cases of the chainmap issue observed in #2828 and
maybe also #2829
2018-10-30 17:16:48 +01:00
Gina Häußge
3ad4818488
Use read instead of write mode in _load_yaml
2018-10-30 16:56:14 +01:00
Gina Häußge
b3cc44cea5
Fix build error
...
`octoprint_setuptools` is imported into the build before the dependencies are installed, hence we don't have `past.builtins` yet. Since the `basestring` type was only needed for some asserts here that *usually* shouldn't be needed we can just comment out that stuff for now.
2018-10-30 16:46:12 +01:00
Gina Häußge
95a9f84b39
Reflect current connection in connection panel
...
Implements #2859
2018-10-30 15:56:36 +01:00
Gina Häußge
371f1a818f
tracking: add uuid to filename hash in print event tracking
...
We don't need to be able to identify the same file across multiple
instances, just repeated prints on the same instance.
Thanks to @scoder for the suggestion.
2018-10-30 13:36:32 +01:00
Gina Häußge
4ed5f7ed28
Updated several dependencies to current version
...
Werkzeug update required a flask monkey patch since we can't update
flask due to it depending on a newer jinja version which is backwards
incompatible and hence would cause issues with third party plugins.
Also added notes to the dependencies that are found to be hard to update
so that future release preparations don't require to figure out the
"why not" all over again.
2018-10-30 13:31:36 +01:00
Gina Häußge
4eb81aae9d
cura: workaround for broken placeholders in profiles
...
Apparently some exports contain ?print_temperature? instead of
{print_temperature} style placeholders? At least that was observed in
the example in #2629 .
This fixes such placeholders.
2018-10-29 17:41:57 +01:00
Gina Häußge
dafa4c97ad
cura: fix extruder count for start gcode selection
...
Fixes #2629
2018-10-29 17:30:49 +01:00
Gina Häußge
0268cafa90
Reflect current port/baudrate/profile in connection tab
...
Fixes #2740
2018-10-29 13:56:34 +01:00
Gina Häußge
a5caac8d38
Disable external heatup detection for teacup fw
...
Implements #2854
2018-10-29 11:55:37 +01:00
Gina Häußge
7ca9d56327
Merge branch 'improve/appauth' into maintenance
2018-10-29 11:45:05 +01:00
Gina Häußge
d9323b7172
docs: new clientjs asset type
2018-10-29 11:44:27 +01:00
Gina Häußge
8f6d67195d
appkeys: clean up pendings older than 10min & meta data
2018-10-29 11:42:12 +01:00
Gina Häußge
342d526a51
appkeys: finalize docs
2018-10-29 11:08:00 +01:00
Gina Häußge
d7c5f57c98
appkeys: fix app bulk selection
2018-10-29 10:32:13 +01:00
Gina Häußge
d89ca38ee8
WIP: Docs for appkeys plugin
2018-10-29 10:30:48 +01:00
Gina Häußge
cb969be403
docs: clarify that user name == user id
2018-10-24 09:52:26 +02:00
Gina Häußge
7cb649c303
docs: fix auth message docs on push API
...
Thanks @gdombiak for the heads-up
2018-10-24 09:48:00 +02:00
Gina Häußge
6d7d365b27
appkeys: bulk delete & fixed sorting
2018-10-23 13:47:54 +02:00
Gina Häußge
8ad720e554
Merge remote-tracking branch 'origin/improve/appauth' into improve/appauth
...
# Conflicts:
# src/octoprint/plugins/appkeys/__init__.py
# src/octoprint/plugins/appkeys/static/clientjs/appkeys.js
# src/octoprint/plugins/appkeys/static/js/appkeys.js
# src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2
# src/octoprint/server/util/flask.py
2018-10-22 18:53:28 +02:00
Gina Häußge
37190da2d6
Merge branch 'maintenance' into improve/appauth
...
# Conflicts:
# src/octoprint/server/util/flask.py
2018-10-22 18:50:32 +02:00
Gina Häußge
2746139fa6
appkeys: central settings page with all keys
2018-10-22 18:44:55 +02:00
Gina Häußge
c9f10ae723
printer_safety_check: docs update
2018-10-22 17:42:31 +02:00
Gina Häußge
202006149c
forcelogin: documentation, incl. newly added hooks
2018-10-22 17:38:48 +02:00
Gina Häußge
671973062e
announcements: add missing images for docs
2018-10-22 16:43:07 +02:00
Gina Häußge
1d15c2a176
backup: docs & small changes in wording
2018-10-22 16:42:47 +02:00
Gina Häußge
5e490ec7fd
Revert "Update some dependencies"
...
This reverts commit 6d2be17
2018-10-22 16:19:42 +02:00
Gina Häußge
1889a40241
Merge branch 'improve/swuCheckEnvironment' into maintenance
2018-10-22 13:07:59 +02:00
Gina Häußge
6d2be1743a
Update some dependencies
...
There are more updates, but they introduce backwards compatibility
issues that would hurt third party plugins, so we need to find
workarounds for these first - or trigger a grace period.
2018-10-22 13:02:57 +02:00
Gina Häußge
e9e4adf09b
tracking: flask.ext.babel => flask_babel
2018-10-22 13:01:42 +02:00
Gina Häußge
535ad6eae6
Merge pull request #2858 from gdombiak/issue_2850
...
Fixed unsafe write_message call from another thread
2018-10-22 11:47:16 +02:00
Gaston Dombiak
c4167a82c5
Fixed unsafe write_message call from another thread.
...
Issue #2850
2018-10-21 00:58:14 -07:00
Gina Häußge
087a9ece2c
Make sure to show only one external address warning notification at once
2018-10-19 17:00:42 +02:00
Gina Häußge
b77380a8ac
Add logging for active/passive login
2018-10-19 16:50:58 +02:00
Gina Häußge
169275b052
Fix wrong position of parentheses, add unit tests
2018-10-19 16:39:18 +02:00
Gina Häußge
757dfcf5c7
unmap ipv6 mapped v4 addresses on lan check
2018-10-19 16:19:51 +02:00
Gina Häußge
8e39eac207
discovery: start name counter at 1
...
We want our second instance with the same name to show up as (2) not (1)
2018-10-19 14:17:16 +02:00
Gina Häußge
9e48b8ab65
make sure to strip comments from address
2018-10-19 14:13:33 +02:00
Gina Häußge
36b07b2337
discovery: enumerate zeroconf service names on collision
...
Fixes #2852
2018-10-19 13:58:37 +02:00
Gina Häußge
e57c46fb67
Missed something in yesterday's changes to contrib guide
2018-10-19 13:34:13 +02:00
Gina Häußge
df8226b8c5
Small changes to the contribution guidelines
...
* allow PRs against `maintenance` branch for improvements and small
new features
* suggest getting in touch on the forum for larger changes
2018-10-19 13:34:12 +02:00
Gina Häußge
2f89082df2
Missed something in yesterday's changes to contrib guide
2018-10-19 13:14:52 +02:00
Gina Häußge
e0943527d6
Merge pull request #2847 from eyal0/always_babel_extract
...
Remove requirement to have messages.pot to use babel_extract
2018-10-18 18:36:42 +02:00
Gina Häußge
108db045ce
Small changes to the contribution guidelines
...
* allow PRs against `maintenance` branch for improvements and small
new features
* suggest getting in touch on the forum for larger changes
2018-10-18 18:06:01 +02:00
Eyal Soha
025986794f
Remove requirement to have messages.pot to use babel_extract
2018-10-18 11:52:01 -04:00
Gina Häußge
ac2354907a
Remove some trailing whitespace
2018-10-18 17:33:08 +02:00
Gina Häußge
7b5d2e3e0c
Allow whitespace after : in M114 responses
...
Closes #2839
2018-10-18 17:32:32 +02:00
Gina Häußge
efa556a812
Announcements: forgot to git add the new doc page -_-
2018-10-15 17:23:21 +02:00
Gina Häußge
7f9764c386
Announcements: fix a bug & add docs
2018-10-15 17:11:07 +02:00
Gina Häußge
e95e546c08
Appkey: Copy key to clipboard
2018-10-15 12:48:41 +02:00
Gina Häußge
b0e7df47a6
Appkeys: Add key persistence
2018-09-29 15:00:28 +02:00
Gina Häußge
257fc0d1cd
Appkeys: allow fetching of all keys
...
Also added TODO list ;)
2018-09-29 15:00:27 +02:00
Gina Häußge
3fe2b611bc
Appkeys: fix template config
2018-09-29 15:00:27 +02:00
Gina Häußge
d6c63a5cb9
appauth -> appkeys
2018-09-29 15:00:27 +02:00
Gina Häußge
ad8205c386
AppAuth: workflow fully implemented & client lib
2018-09-29 15:00:27 +02:00
Gina Häußge
6efd4dfd08
New options for confirmation dialog
...
* oncancel: callback to call when cancel button is pressed
* noclose: don't allow dismissing/closing the dialog without having
chosen to proceed or cancel
2018-09-29 15:00:27 +02:00
Gina Häußge
469bf844ee
Clientlib: support operation without api key
2018-09-29 15:00:27 +02:00
Gina Häußge
4f58c64881
New asset type "clientjs" for client library bits
2018-09-29 15:00:27 +02:00
Gina Häußge
b428faacc8
Appauth plugin: WIP
2018-09-29 15:00:26 +02:00
Gina Häußge
4e3adcc3f3
Add no_firstrun_access decorator
2018-09-29 15:00:26 +02:00
Gina Häußge
f88147003c
Repetier firmware reports fatal errors with another prefix
2018-09-29 14:54:39 +02:00
Gina Häußge
bbbe85f737
Multiline fatal error parsing for Marlin
2018-09-29 14:38:54 +02:00
Gina Häußge
fc97d0b424
Virtual: simulate some fatal errors
2018-09-29 14:38:35 +02:00
Gina Häußge
b054ec47ad
Special handling for fatal errors
...
If the firmware locks up it doesn't make sense to stay connected to
it even if we are supposed to only cancel an ongoing print.
2018-09-29 13:28:09 +02:00
Gina Häußge
87e7a19fdd
Forcelogin: Support theming via custom hook
2018-09-28 17:57:05 +02:00
Gina Häußge
fed257b5d8
Forcelogin: Fix spinner
2018-09-28 17:19:31 +02:00
Gina Häußge
e53ae8cd56
Forcelogin: Access to settings isn't needed either
2018-09-28 17:15:37 +02:00
Gina Häußge
a9f76dd1a3
Forcelogin: allow socket when ACL isn't setup yet
2018-09-27 18:47:00 +02:00
Gina Häußge
6bc5b8a7a9
Forcelogin: lock down sockjs socket as well
2018-09-27 18:44:03 +02:00
Gina Häußge
cb9bedb6a0
Add hooks to control sockjs registrations and messages
2018-09-27 18:43:46 +02:00
Gina Häußge
5ff790048d
Fix unit tests
2018-09-26 15:52:10 +02:00
Gina Häußge
f32ea65b2c
Support EMERGENCY_PARSER & use M108 on cancel (unless disabled)
...
Implements #1504
2018-09-26 15:29:15 +02:00
Gina Häußge
1f957e1ee2
forcelogin: disable while ACL hasn't been configured
2018-09-26 15:21:51 +02:00
Gina Häußge
32be5ca87c
Better error handling if file becomes unreadable
...
Implements #2674
2018-09-24 16:50:14 +02:00
tedder
9cb3631ad0
first py3 fix
2018-09-22 18:05:32 -07:00
tedder
743ff35bcf
add some yaml wrappers for the test environment
2018-09-22 18:05:10 -07:00
tedder
df706f61db
import locally for py3 mock compatability
2018-09-22 17:21:33 -07:00
tedder
791e759b40
keys() doesn't return a list, so restoring the contract.
2018-09-22 17:21:05 -07:00
tedder
22fdc1d933
final open mock tactic: add a central global.
2018-09-22 16:58:24 -07:00
tedder
aa383e3ca1
fix all __builtin__.open patch/mock calls
2018-09-22 16:15:22 -07:00
tedder
472fda6645
setuptools py3 compatability
2018-09-22 16:02:44 -07:00
tedder
bd35de80c3
fix test_file_helpers, couldn't figureout a non-conditional way to do this
2018-09-22 15:55:19 -07:00
tedder
52fe19e5f9
fix util.to_unicode for py2/py3.
2018-09-22 15:54:29 -07:00
tedder
c2f09b1715
fixes to test_comm_helpers
2018-09-22 13:14:27 -07:00
Gina Häußge
8876ab0ce5
SWU: Fix version output of CLI update message
2018-09-21 18:43:20 +02:00
Gina Häußge
ad8910354c
SWU: Fix CLI updating
...
Closes #2712
2018-09-21 18:41:22 +02:00
Gina Häußge
e8d6a9b221
Only reset timeout to busy once it has been set on printer
...
Should fix #2752
2018-09-21 18:25:58 +02:00
Gina Häußge
f3cfe2ba48
Virtual: add long running pseudo G33
...
Useful for testing busy protocol on commands.
2018-09-21 18:25:58 +02:00
Gina Häußge
d2ecb0a28f
Merge pull request #2827 from tedder/docfix_sdReleativePath_maint
...
spellfix 'sdReleativePath'
2018-09-21 18:05:21 +02:00
Ted Timmons
134ee77e4a
spellfix 'sdReleativePath'
...
It's only misspelled in the docs, it is correct in the code.
2018-09-21 08:45:53 -07:00
Gina Häußge
10f3f72b9c
Unit tests: Fix duplicated test method
...
Closes #2805
2018-09-21 14:35:20 +02:00
Gina Häußge
1ccc1fa47b
Merge pull request #2807 from tedder/201809_py3_devel_prep_b
...
201809 py3 devel prep batch b
2018-09-21 12:20:44 +02:00
tedder
2972d38cef
use a number instead of a string for safe_dump
2018-09-18 08:54:58 -07:00
tedder
4662606907
PR feedback: use future instead of six
...
Tests pass.
2018-09-18 08:37:34 -07:00
Gina Häußge
2c50aa789a
Merge branch 'pr/2733' into devel
...
# Conflicts:
# src/octoprint/plugins/discovery/__init__.py
2018-09-18 17:30:30 +02:00
Gina Häußge
78b6d3a5e2
Merge pull request #2800 from gerfderp/patch-1
...
Documentation conjugation fix.
2018-09-18 17:18:18 +02:00
Gina Häußge
a920c4fe21
Merge pull request #2806 from tedder/201809_rewrite_test_get_recovery
...
rewrite test_get_recovery_data
2018-09-18 17:12:27 +02:00
Gina Häußge
9e62b250ac
Merge pull request #2804 from cameroncros/system-api-documentation
...
Fixed up documentation for system api. Now correctly matches current behaviour
2018-09-18 17:11:32 +02:00
Gina Häußge
52468e7e1c
Merge pull request #2802 from tedder/201809_temperature_regex_update
...
201809 temperature regex update
2018-09-18 17:10:37 +02:00
Gina Häußge
03722e5e70
Merge branch 'pr/2731' into devel
...
# Conflicts:
# src/octoprint/cli/analysis.py
2018-09-18 17:06:37 +02:00
Gina Häußge
9112a800c8
Add forcelogin plugin
2018-09-14 20:06:32 +02:00
Gina Häußge
177d235b29
Make a helper method public
2018-09-14 20:06:32 +02:00
Gina Häußge
2de2dc7c31
Allow further access restriction on API and Tornado routes through plugin hooks
2018-09-14 20:06:32 +02:00
Paul de Vries
8074a06d33
Use .fail instead of .error
...
.error() was removed in jQuery 3 and is throwing errors when logging out,
use .fail instead
2018-09-09 11:37:38 +00:00
Gina Häußge
75c801d63f
Unit tests for is_lan_address
...
Also fixed a bug in subnet creation in the process.
2018-09-04 14:01:31 +02:00
Gina Häußge
ed07764f09
Put warnings into core/first run wizard
2018-09-04 12:00:07 +02:00
Gina Häußge
a929100889
Allow to disable ip check & define trusted subnets
...
Will need manually editing config.yaml for the time being. Someone who
is not able to edit a yaml file should not be able to disable the
warning.
2018-09-04 09:26:29 +02:00
Gina Häußge
286376321c
Detect connections to the UI from external ips
...
Show warning to protect the innocent who don't know better than to
port forward.
Warning is ignorable (per browser) to allow users who know what they are
doing to easily get rid of it. If you don't know what you are doing and
also actively ignore THIS warning I really can't help you anymore.
2018-09-03 21:23:08 +02:00
Gina Häußge
4a36a3eed2
Appkeys: Add key persistence
2018-09-03 18:38:36 +02:00
tedder
7867052339
another 'set equality', this one to fix map/list mappings
2018-09-02 00:44:30 -07:00
tedder
8a0252ccfe
add patch workaround for py2/py3
2018-09-02 00:16:06 -07:00
tedder
e84293c415
add py3compat to CaseInsensitiveSet
2018-09-01 22:34:36 -07:00
tedder
250e83ad7e
more specific asserts
...
This lets the testing framework show the test error better.
2018-09-01 22:32:47 -07:00
tedder
660724741c
quick refactor for deprecated 'assertEquals'
...
It's been quietly allowed but was dropped in py3.
2018-09-01 22:31:33 -07:00
tedder
a5f87597ad
refactor and upgrade tests
...
Some prepwork for py3. Tossing these together:
- assertItemsEqual doesn't do what it says on the box. It only said "hey, these lists have the same number of items". Not content or anything. Changing that to SetEqual, which is much closer to what is wanted- ensuring that lists have the same content without caring about their order.
- use assertRaises instead of try/catch
- update some mocks, especially mock_open.
- include the refactored test_get_recovery_data sent to the maintenance branch in #2806 .
2018-09-01 22:27:10 -07:00
tedder
8bf9b8650d
rewrite test_get_recovery_data
...
I was pulling my hair out with some py3 compatability, so .. I ended up basically rewriting it. Basically a big refactor, still compatible with py2.
2018-09-01 22:07:41 -07:00
Cameron Cross
ebef35a573
Fixed up documentation for system api. Now correctly matches current behaviour.
2018-09-02 10:03:21 +10:00
tedder
d6da819cd6
add unit tests for temperature regexes
2018-09-01 10:46:29 -07:00
tedder
2fbc81604a
update temperature regex
...
It exists in three locations, so I'm making sure they are all synced. This ensures the MP Mini Delta flavor of Marlin is properly masked; I have that and a Prusa mk3 to verify against.
This came out of this thread:
https://discourse.octoprint.org/t/temperature-message-filter-doesnt-filter-temperature-messages/3643
2018-09-01 08:39:25 -07:00
Gina Häußge
2ca63febee
Appkeys: allow fetching of all keys
...
Also added TODO list ;)
2018-08-31 20:45:16 +02:00
Gina Häußge
224674f27e
Appkeys: fix template config
2018-08-31 20:35:16 +02:00
Gina Häußge
2f1d71a98c
appauth -> appkeys
2018-08-31 20:22:40 +02:00
gerfderp
7366110f07
Update helpers.rst
...
fixing conjugation
2018-08-29 14:59:00 -07:00
Gina Häußge
e5eb72cbfb
Docs: Make it extra crystal clear to use a VPN
2018-08-29 15:49:09 +02:00
Gina Häußge
b0028cd3fb
AppAuth: workflow fully implemented & client lib
2018-08-28 22:05:28 +02:00
Gina Häußge
2343caea30
New options for confirmation dialog
...
* oncancel: callback to call when cancel button is pressed
* noclose: don't allow dismissing/closing the dialog without having
chosen to proceed or cancel
2018-08-28 22:04:34 +02:00
Gina Häußge
61d037f188
Clientlib: support operation without api key
2018-08-28 22:02:40 +02:00
Gina Häußge
2a79d9183a
New asset type "clientjs" for client library bits
2018-08-28 22:02:18 +02:00
Gina Häußge
5dbc88b6f2
Detect scrolling direction in terminal
...
Only disable autoscroll if we are scrolling up.
2018-08-27 15:58:15 +02:00
Gina Häußge
83876806db
Force terminal scroll on browser tab activation
...
Possible fix for #2774
2018-08-27 15:57:59 +02:00
Gina Häußge
5a5785be4a
Appauth plugin: WIP
2018-08-24 11:59:23 +02:00
Gina Häußge
25cd4f8201
Add no_firstrun_access decorator
2018-08-24 11:58:56 +02:00
Gina Häußge
2d72a52338
Backup: Fix a copy paste error
2018-08-22 17:58:29 +02:00
Gina Häußge
b5a161594d
Fix documentation error
...
We return 403 on a wrong API key, not 401 - 401 causes issues with Basic Auth setups as reported
in #2297 and hence fixed in b1f9e070a4 .
Closes #2706
2018-08-20 14:25:28 +02:00
Gina Häußge
a24363c4b0
Fix API error when accessing sdcard file details
...
Closes #2705
2018-08-20 14:04:09 +02:00
Gina Häußge
524562527e
Cura: Error message if profile import fails
...
See #2769
2018-08-20 12:58:27 +02:00
Gina Häußge
26856d052f
Fix wrong min/max parameter being used for timeouts
...
Closes #2780
2018-08-20 11:54:27 +02:00
Gina Häußge
17f8817b78
Backup: Got rid of caching plans
2018-08-17 15:06:07 +02:00
Gina Häußge
4eb1d2bf80
Backup: Check compatibility when installing plugins from repo during restore
2018-08-17 15:00:09 +02:00
Gina Häußge
62120affae
PMGR: Finalize extraction of is_os_compatible into octoprint.util.platform
2018-08-17 14:13:01 +02:00
Gina Häußge
66b501cfaa
Backup: Show list of plugins unknown during restore in settings
2018-08-16 17:50:58 +02:00
Gina Häußge
140bf9aa5a
Backup: Fix recording list of uninstallable plugins
2018-08-16 15:20:11 +02:00
Gina Häußge
711ca457f2
Backup: WIP of handling unknown plugins
2018-08-16 09:05:45 +02:00
Gina Häußge
07ae4ffe14
Backup: Delete bck from earlier restore on startup
2018-08-14 19:56:17 +02:00
Gina Häußge
3800b21e69
Bkacup: Fix CLI logging of exceptions
2018-08-14 19:48:58 +02:00
Gina Häußge
196b152ec4
Backup: Remove left over parameter
2018-08-14 19:28:36 +02:00
Gina Häußge
970810dc92
Backup: Move into "OctoPrint" sub section
2018-08-14 19:28:11 +02:00
Gina Häußge
4fec14197b
Backup: Some UI changes & confirmations
2018-08-14 19:27:47 +02:00
Gina Häußge
b354334a2e
Backup: Add log window during restore
2018-08-13 19:02:50 +02:00
Gina Häußge
a934750504
Backup: Upload of backup to restore works
2018-08-10 20:46:30 +02:00
Gina Häußge
9dc29689f4
Backup: Restore now seems to work
2018-08-10 11:58:06 +02:00
Gina Häußge
8518b40b5f
Backup: WIP on restore function
...
Plugin installation is still challenging.
2018-08-09 12:45:27 +02:00
Gina Häußge
aabd624f88
Backup: WIP on restore
2018-08-07 15:14:12 +02:00
Gina Häußge
6ae88ab8c6
Backup: subfolder for basedir contents
2018-08-06 13:43:17 +02:00
Gina Häußge
6251031d6e
Backup works, incl management UI
2018-08-06 13:35:02 +02:00
Gina Häußge
249b3f442b
Slight refactoring
2018-08-06 13:34:30 +02:00
Gina Häußge
ff6012bb00
WIP: Backup & Restore plugin
2018-08-03 17:20:28 +02:00
Gina Häußge
a137946e3a
Remove setup_requires - it's incompatible to pip
2018-07-28 23:36:28 +02:00
Gina Häußge
909dd551d6
Specify support python versions
2018-07-28 23:30:43 +02:00
Gina Häußge
687b449207
SWU: Prevent auto updates in outdated environments
...
We will now demand minimum versions of Python, pip and setuptools to be
present before we enable updating through the plugin.
Current minimum versions are those shipped with stock OctoPi 0.14.0.
2018-07-28 23:21:47 +02:00
Gina Häußge
efe552264c
SWU: Fix update button being visible if update impossible
2018-07-28 23:00:07 +02:00
Gina Häußge
44fcd4e305
Merge branch 'maintenance' into devel
2018-07-25 17:38:45 +02:00
Gina Häußge
b7e788ec1b
Work around an issue with sarge 0.1.5
...
Closes #2747
2018-07-25 17:34:54 +02:00
Gina Häußge
90704e292b
Merge branch 'maintenance' into devel
2018-07-25 16:57:00 +02:00
Gina Häußge
e964d2410c
Merge branch 'staging/maintenance' into maintenance
...
# Conflicts:
# docs/bundledplugins/cura.rst
2018-07-25 16:56:43 +02:00
Gina Häußge
09284cd9b9
Merge branch 'rc/maintenance' into staging/maintenance
2018-07-25 16:54:21 +02:00
Gina Häußge
97d37c5078
Merge branch 'master' into rc/maintenance
2018-07-25 16:28:28 +02:00
Gina Häußge
432090a56a
Preparing release of 1.3.9 (part 2)
2018-07-25 16:27:05 +02:00
Gina Häußge
1847b41f7e
Preparing release of 1.3.9
2018-07-25 13:38:57 +02:00
Gina Häußge
4963a4b849
docs: warning re expensive code in gcode hooks
2018-07-24 17:44:59 +02:00
Gina Häußge
46e425de88
Gcodeviewer: fix some JS warnings
2018-07-24 16:30:03 +02:00
Gina Häußge
376d38e0cf
Gcodeviewer: remove printed/visited layer counts
...
Apparently it was confusing people and it's not really adding any kind
of meaningful information anyhow.
2018-07-24 16:28:41 +02:00
Gina Häußge
92c43ee6f9
docs: slight adjustment in wording
2018-07-23 09:48:41 +02:00
Iván
cce37f0501
Remove malicious link as noticed in #2746
2018-07-23 09:45:53 +02:00
Gina Häußge
2e8f543aa3
Merge branch 'pr/2748' into maintenance
2018-07-23 09:45:24 +02:00
Iván
d2dfd22a2c
Remove malicious link as noticed in #2746
2018-07-22 02:49:32 +02:00
Gina Häußge
b83dd76c89
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/static/js/app/viewmodels/printerstate.js
2018-07-20 12:27:36 +02:00
Gina Häußge
b51cb31b46
Merge branch 'staging/maintenance' into maintenance
2018-07-20 12:26:16 +02:00
Gina Häußge
eea1050a18
staging/maintenance is now 1.3.9rc5.dev
2018-07-20 12:26:00 +02:00
Gina Häußge
71b2cc87a3
Preparing release of 1.3.9rc4
2018-07-20 11:14:48 +02:00
Gina Häußge
a37165d7d9
Tracking: Fix unit tests
2018-07-19 18:25:16 +02:00
Gina Häußge
b06f804e9e
Tracking: Change printer connection event
2018-07-19 18:17:29 +02:00
Gina Häußge
d64ca79f05
Tracking: Only send requests if online
2018-07-19 18:17:29 +02:00
Gina Häußge
490ade5e17
Tracking: Granular control over tracked events
2018-07-19 18:17:28 +02:00
Gina Häußge
573503e84d
Tracking: Track firmware name
2018-07-19 18:17:28 +02:00
Gina Häußge
9e0e4bf7b6
Pi Support: Allow configuration of vcgencmd
2018-07-19 18:17:28 +02:00
Gina Häußge
452645d950
Merge pull request #2742 from eyal0/faster_analysis3
...
Faster gcode analysis: Remove kwargs Vector.__init__ and simplify getCodeFloat
2018-07-19 09:41:06 +02:00
Eyal Soha
d2bb731bd7
Remove kwargs from Vector constructor and also simplify getCodeFloat
2018-07-19 09:43:48 +03:00
Gina Häußge
2062acd372
Fix print button being enabled w/o selected file
...
Closes #2737
2018-07-18 17:21:20 +02:00
Gina Häußge
40b5c272c4
Merge pull request #2723 from eyal0/always_gcode_analyze
...
Always run the GCodeAnalyser, even if the slicer provided analysis
2018-07-18 16:48:14 +02:00
Gina Häußge
31e4df44f9
Merge pull request #2739 from eyal0/faster_analysis2
...
Use infinity instead of None in MinMax3D to improve performance
2018-07-18 16:28:25 +02:00
Eyal Soha
cd3c8ebbe6
Use infinity instead of None in MinMax3D to improve performance
...
Speed is improved by about 5%
2018-07-18 16:57:42 +03:00
Gina Häußge
fe13348fd3
Don't perform write tests on every getBaseFolder call
...
Especially not when rendering the main UI - we don't want to trigger
a 500 then, even if some folders are misconfigured.
2018-07-18 15:41:26 +02:00
Gina Häußge
903dd36d68
Strip --no-cache-dir for pip < 1.6
...
Closes #2738
2018-07-18 11:08:47 +02:00
Gina Häußge
59a435a787
Pi support: spelling fixes
2018-07-17 18:37:24 +02:00
Gina Häußge
71cc312ccc
Pi support: move itertools import into debugging cluster
2018-07-17 18:25:13 +02:00
Gina Häußge
8d1ae438e5
Pi support: re-enable production config m)
2018-07-17 17:52:37 +02:00
Gina Häußge
7ebcb47955
Pi support: remove obsolete URL from about dialog
2018-07-17 17:49:16 +02:00
Gina Häußge
71e60183c5
Pi Support: add setting for throttle check
...
Just in case something acts up with that...
2018-07-17 17:49:03 +02:00
Gina Häußge
9c055137eb
Pi Support: fix ordering of about dialog
2018-07-17 17:46:50 +02:00
Gina Häußge
eaa8933782
Pi Support: fix state update push
2018-07-17 17:46:36 +02:00
Gina Häußge
0d330e3c5a
Pi Support: slight change in timer startup
2018-07-17 16:59:03 +02:00
Gina Häußge
18ed113122
Pi Support: fix logic error
2018-07-17 16:57:04 +02:00
Gina Häußge
48e454856c
Pi Support: change check implementation
2018-07-17 15:54:18 +02:00
Gina Häußge
917b86655f
Tracking: always use percentage encoding
...
Otherwise we'll run into https://discuss.elastic.co/t/cant-parse-field/26557/4
on our tracking server
2018-07-17 15:53:41 +02:00
Gina Häußge
7a2225b332
Pi Support: strip 0 bytes from strings
2018-07-17 15:30:28 +02:00
Gina Häußge
20237a73ac
Pi Support: Add debug logging to throttle check
2018-07-17 15:17:36 +02:00
Gina Häußge
4a3f894064
Tracking: fix a missed renamed field
2018-07-17 15:15:35 +02:00
Gina Häußge
0c9098f7bf
Tracking: Fix a typo
2018-07-17 15:10:04 +02:00
Gina Häußge
53a2e04501
Tracking: adapt to new pi support plugin
2018-07-17 14:59:10 +02:00
Gina Häußge
c6f5f1a0f7
Less scary message if a plugin doesn't pass check
2018-07-17 14:38:28 +02:00
Gina Häußge
1cff2581db
OctoPi support => Pi support
...
* changed model detection implementation to use device-tree
* now active if running on a Pi, regardless whether that runs OctoPi
or not
* detect undervoltage/overheat issues via vcgencmd and report back on
UI
2018-07-17 14:38:12 +02:00
Gina Häußge
7ab4b90d07
Fix a flask import
2018-07-16 15:32:19 +02:00
Gina Häußge
fd4ff2bf37
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/plugin/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# tests/timelapse/test_timelapse_helpers.py
2018-07-16 15:29:02 +02:00
Gina Häußge
5cf02ac9ee
Merge branch 'staging/maintenance' into maintenance
2018-07-16 15:21:49 +02:00
Gina Häußge
460481c9c2
staging/maintenance is now 1.3.9rc4.dev
2018-07-16 15:21:25 +02:00
Gina Häußge
2806676707
Preparing release of 1.3.9rc3
2018-07-16 13:15:00 +02:00
sti2d
76f93d8875
Fix import changes on python 3
...
Try python3 import & revert back to python2 if ImportError is raised
this include BaseHttpServer -> http.server, StringIO -> io, HTMLParser -> html.parser
2018-07-14 10:09:28 +02:00
sti2d
30359f52ab
In python 3, map/filter return specific object types that :
...
* are not directly iterable
* doesn't work with len() function
* doesn't allow list concatenation
This commit wraps all relevant map/filter outputs into a list object type
2018-07-14 09:22:27 +02:00
sti2d
0020f029d1
Python yaml now use numeric value for indent attribute, this commit take care of that
2018-07-14 07:06:18 +02:00
Gina Häußge
9559f09ec7
Merge pull request #2730 from eyal0/faster_analysis
...
Improve octoprint gcode analysis speed
2018-07-13 19:25:54 +02:00
Eyal Soha
542edbc3e6
Revert "Use infinity instead of None for faster MinMax3d"
...
This reverts commit 792fe328ef .
Most of the speed-up comes from removing the unneeded import and the unrolling so no big deal.
2018-07-13 20:07:35 +03:00
Gina Häußge
f82d50b0f6
Some compatibility fixes
2018-07-13 18:41:50 +02:00
Gina Häußge
e224b0ac71
Fix & extend unit tests
2018-07-13 18:02:42 +02:00
Gina Häußge
68f4ecefb0
Add hook to extend supported timelapse extensions
...
Implements #2729
2018-07-13 17:42:34 +02:00
Gina Häußge
d73d930e5f
Move to sarge 0.1.5
...
Replace async with async_ where necessary
2018-07-13 15:20:12 +02:00
Eyal
8c1262dd3f
Replace infinity tests with inequality
2018-07-13 11:57:52 +03:00
Eyal Soha
792fe328ef
Use infinity instead of None for faster MinMax3d
2018-07-13 00:44:04 +03:00
Eyal Soha
111a37e97e
Unroll record for improved speed
2018-07-13 00:42:33 +03:00
Eyal Soha
c2bb234c20
Remove extra import math
2018-07-13 00:29:43 +03:00
Gina Häußge
0a634a76a0
Different fix for #2632
...
Our original one causes dead locks as reported in #2677
2018-07-12 16:46:28 +02:00
Gina Häußge
41c0dac19d
Fix state comparisons in timeout handling
...
We weren't yet looking at the new intermediary states here.
2018-07-12 14:40:57 +02:00
Gina Häußge
f728423f29
Fix resend handling during job_on_hold
...
Missing response to a resent line was not properly detected and handled.
2018-07-12 14:39:45 +02:00
Gina Häußge
61e5184377
Fix "now" timestamp
...
Should be taken *after* reading from the serial line, not before.
2018-07-12 14:38:12 +02:00
Gina Häußge
a2527998c2
Resolve dead lock issue in job_on_hold implementation
...
(Hopefully) closes #2677
2018-07-11 18:10:51 +02:00
Eyal Soha
2dda3a0e32
Always run the GCodeAnalyser, even if the slicer provided analysis
...
The analysis from the Slicer or other sources is sent to the GCodeAnalyser, which can use it or ignore it.
This fixes https://github.com/foosel/OctoPrint/issues/2445#issuecomment-403599347
This fixes https://github.com/eyal0/OctoPrint-PrintTimeGenius/issues/13
2018-07-10 09:06:15 +03:00
Gina Häußge
e2394446b0
Merge branch 'pr/2717' into maintenance
2018-07-06 17:15:45 +02:00
Gina Häußge
d248df3826
Merge branch 'maintenance' into devel
2018-07-06 17:00:19 +02:00
Gina Häußge
1befd0ecc1
Merge branch 'staging/maintenance' into maintenance
2018-07-06 16:59:48 +02:00
Gina Häußge
386ae7609d
Fix initialization order of estimator
...
Closes #2719
2018-07-06 16:55:05 +02:00
Gina Häußge
7587f34c94
Tracking: track software updates
2018-07-06 16:19:32 +02:00
Gina Häußge
6b54a15ed9
Tracking: add shutdown & extend startup data
2018-07-06 16:16:09 +02:00
Gina Häußge
d391f0c12b
Tracking: better kwarg encoding
2018-07-06 15:44:29 +02:00
Gina Häußge
8460a4173d
Tracking: fix print reporting
2018-07-06 15:43:42 +02:00
Brad Fisher
fe7149c715
Rendering speed enhancements; New event hooks 'onDragStart', 'onDrag', 'onDragStop', 'onViewportChange'; Bugfix to correct refresh() and refresh(0) both causing redraw of last drawn layer instead of refresh(0) drawing layer 0
2018-07-06 08:16:50 -05:00
Gina Häußge
443647e78e
Add detection for Pi3B+
2018-07-06 15:11:45 +02:00
Gina Häußge
dc19ad4c4c
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/util/__init__.py
2018-07-06 14:40:46 +02:00
Gina Häußge
50bb0bcfd4
Merge branch 'staging/maintenance' into maintenance
2018-07-06 14:35:54 +02:00
Gina Häußge
e15946ff79
staging/maintenance is now 1.3.9rc3.dev
2018-07-06 14:34:19 +02:00
Gina Häußge
fd94fc94a0
Merge branch 'staging/maintenance' into rc/maintenance
2018-07-06 13:01:31 +02:00
Gina Häußge
798bc2b225
Preparing release of 1.3.9rc2
2018-07-06 13:01:19 +02:00
Gina Häußge
6728302bb3
Preparing release of 1.3.9rc2
2018-07-06 12:55:25 +02:00
Gina Häußge
f7a3e6a6ee
Add --no-cache-dir flag to update pip operations
...
Otherwise we might run into some weird infinite loop issues within
pip's cache handling under certain circumstances, and we really
don't want to risk that in the field.
See also #2543 for another issue worked around by this, and
pypa/pip#3532 for the core issue
2018-07-06 12:08:52 +02:00
Gina Häußge
0834288cfc
Fix estimator initialization on SD print start
...
Closes #2715
2018-07-05 10:59:14 +02:00
Gina Häußge
faff20943f
Capture & log any errors in the state update worker
...
See #2715
2018-07-05 10:58:45 +02:00
Gina Häußge
14661339ef
Merge branch 'improve/tracking' into maintenance
2018-07-04 15:14:59 +02:00
Gina Häußge
8ca188e509
Tracking: rename tab in settings
2018-07-04 15:10:48 +02:00
Gina Häußge
3da4877d50
Tracking: Display instance ID in settings
2018-07-04 15:08:09 +02:00
Gina Häußge
382f10557e
Tracking: Add explanation text & links
2018-07-04 11:17:17 +02:00
Gina Häußge
d9c6cca370
Anonymous usage tracking
2018-07-03 19:06:53 +02:00
Salandora
88a962b3ab
Fix for _test_url
...
Snapshot test threw a 500 Internal Error.
After some investigation (no exception got thrown, except in debug mode) I noticed that the test url function tried to access octoprint util which was not imported.
Because util was used in different locations of this function I decided to put it at the top of the function right after import requests.
2018-07-01 03:07:49 +02:00
Gina Häußge
abf4f90f0e
Fix an issue with collision free sd name detection
2018-06-26 17:32:58 +02:00
Gina Häußge
13ab34a5c8
Better API key check
2018-06-25 18:53:42 +02:00
Gina Häußge
033e567d2a
Merge pull request #2701 from Salandora/fix/firstRunWizard
...
Fix add user part of the first run wizard
2018-06-25 12:54:47 +02:00
Gina Häußge
2a67772f46
Different base icon & setting
...
(cherry picked from commit dc61b61)
2018-06-25 12:47:31 +02:00
tedder
f69718b060
make favicon color match custom theme color
...
With multiple octopis, the theme/header color is really nice for quickly distinguishing them. But it doesn't help with an ocean of open tabs. This does- simply carry the theme color onto the favicon.
I could do this as a plugin and/or make it a configurable setting, but it's very small change that doesn't need that much overhead, and generally I have opinions about having a plethora of setting flags for nonfunctional things. Thanks to @jneilliii for [helping me through the viewmodels](https://discourse.octoprint.org/t/where-can-i-get-the-theme-color/2354/5 ).
(cherry picked from commit e1089de )
2018-06-25 12:47:31 +02:00
Gina Häußge
a97b8c2fd9
Sanity check disabled plugin list just in case
...
See https://github.com/foosel/OctoPrint/issues/2687#issuecomment-399797596
2018-06-25 11:20:31 +02:00
Gina Häußge
08c384ac68
Merge pull request #2697 from eyal0/patch-2
...
estimatedPrintTime is in seconds, not minutes
2018-06-25 11:07:41 +02:00
Gina Häußge
00354f4a1e
Merge pull request #2696 from eyal0/patch-1
...
Fix comment in types.py to match the code
2018-06-25 11:06:34 +02:00
Marc Hannappel
d03d4b7b4c
Fix add user part of the first run wizard
2018-06-25 10:15:28 +02:00
Eyal
1a9b6c01a6
estimatedPrintTime is in seconds, not minutes
...
The documentation says that the estimated print time should be given in minute. But in practice, when I give it in minutes, the GUI shows an error factor of 60. By supplying it in seconds, the correct value is shown.
So it should probably actually be "in seconds"
2018-06-24 15:45:29 +03:00
Eyal
c4dc7d0f55
Fix comment in types.py to match the code
...
The comment says that the key should be `_analysis` but in the code it is `analysis`: https://github.com/foosel/OctoPrint/blob/master/src/octoprint/slicing/__init__.py#L312
This fixes the comment but leaves the code unchanged.
2018-06-24 15:04:38 +03:00
Gina Häußge
38ddd3102d
Fix another broken permission
...
Closes #2689
2018-06-22 12:49:51 +02:00
Gina Häußge
6dd501217a
Remove an unnecessary debug line
2018-06-22 11:48:57 +02:00
Gina Häußge
5a60af9d13
Improve SD print detection
2018-06-22 11:22:22 +02:00
Gina Häußge
887304fe18
Some more badges
2018-06-20 23:01:23 +02:00
Gina Häußge
2bd8aa00f3
Add build status and IRC badge
2018-06-20 20:03:19 +02:00
Gina Häußge
e58387b4f2
Make new additions from 1.3.x use permissions
2018-06-20 16:36:15 +02:00
Gina Häußge
1de58b7be1
error => fail
2018-06-20 16:31:13 +02:00
Gina Häußge
58d8deefcd
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# setup.py
# src/octoprint/plugins/announcements/static/js/announcements.js
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/server/api/__init__.py
# src/octoprint/static/css/octoprint.css
# src/octoprint/static/js/app/dataupdater.js
# src/octoprint/static/js/app/viewmodels/printerstate.js
2018-06-20 16:29:18 +02:00
Gina Häußge
cb8ce62ec4
maintenance is now 1.3.10.dev
2018-06-20 15:52:46 +02:00
Gina Häußge
e49a4d8cfa
staging/maintenance is now 1.3.9rc2.dev
2018-06-20 15:52:00 +02:00
Gina Häußge
fdf0f75ffa
Preparing release of 1.3.9rc1 (part 2)
2018-06-20 15:18:42 +02:00
Gina Häußge
5fb8674937
Merge branch 'master' into maintenance
2018-06-20 13:08:25 +02:00
Gina Häußge
d3871e3487
Pin sarge to 0.1.4
...
0.1.5 renamed the async keyword.
Library authors, please, stick to semantic versioning :(
2018-06-20 12:48:10 +02:00
Gina Häußge
9dd9badb33
Pin tornado to 4.5.3
...
We don't want to accidentally pull in 5.0b1
2018-06-19 18:49:41 +02:00
Gina Häußge
3de9635180
Preparing release of 1.3.9rc1
2018-06-19 18:48:28 +02:00
Gina Häußge
e2f626d421
Virtual printer: select_sd command
2018-06-19 11:24:05 +02:00
Gina Häußge
b7a8c29fb4
Add an API endpoint to fetch template order
...
That should make it easier for third party plugins that want to offer
reordering capabilities of tab, sidebar, etc
2018-06-18 19:35:47 +02:00
Gina Häußge
15f10d4a84
sidebar > tabs
2018-06-18 18:23:03 +02:00
Gina Häußge
0faf2792e9
Clarify something about component ordering
2018-06-18 18:21:59 +02:00
Andy Castille
caa1a3d76f
Display absolute file upload times on hover
2018-06-18 18:03:01 +02:00
Gina Häußge
fae01d2c75
Merge branch 'pr/2633' into maintenance
2018-06-18 17:53:47 +02:00
Gina Häußge
248235c5e0
Fix indentation
2018-06-18 17:53:32 +02:00
Gina Häußge
2febfcd8b3
Announcements: Don't reload on mark read
...
Only reload if we mark read from the management dialog.
2018-06-18 16:05:10 +02:00
Gina Häußge
704331525f
Split settings init to allow better error logging
2018-06-18 15:37:51 +02:00
Gina Häußge
6c279f155a
Improve fatal startup error handling
2018-06-18 15:07:18 +02:00
Gina Häußge
e5afde2c2c
Up a couple of versions
2018-06-18 14:33:28 +02:00
Gina Häußge
f5b99a6e34
Fix symlink test util
...
That was resolving the path completely before checking
whether the symlink is broken or not.
2018-06-18 14:24:04 +02:00
Gina Häußge
8ef13ba529
Fix flask version
2018-06-18 14:22:56 +02:00
Gina Häußge
654055da61
Add symlink check to test API endpoint
2018-06-18 11:37:36 +02:00
Gina Häußge
68f67219ed
Refactor test API endpoint
2018-06-18 11:37:02 +02:00
Gina Häußge
436ffb6db8
Detect broken symlinks during folder validation
...
Closes #2644
2018-06-18 11:20:21 +02:00
Gina Häußge
b569cc456b
Fix typePath missing for sdcard files on files API
...
Closes #2589
2018-06-18 10:48:27 +02:00
dadosch
023b9eda90
Two spaces were missing
2018-06-18 09:54:33 +02:00
Gina Häußge
fe2dbf699d
SWU: Lock down UI while updating
...
Implements #1217
2018-06-15 18:15:13 +02:00
Gina Häußge
17c6c83503
Fix SD printing
2018-06-15 17:02:53 +02:00
Gina Häußge
688e4d36d1
Fix script order
...
beforePrint* should always precede any commands from the print job.
Also make sure we only jump from "finishing" to "operational" after the
afterPrintDone script has been sent. Also wait for all moves to finish.
2018-06-15 15:44:34 +02:00
Gina Häußge
86b886ede7
Remove resend repetition code
...
It's apparently completely broken and the fact that no one noticed
and reported that means it never really gets used either from the looks
of it.
So instead of allowing it to introduce broken resend handling, we'll
rather remove it for now.
2018-06-15 13:15:27 +02:00
Gina Häußge
392149b504
Add view model list to coreui object
2018-06-14 19:25:46 +02:00
Gina Häußge
85ef3f1df2
Fix modals not hiding fully anymore
2018-06-09 13:07:34 +02:00
Gina Häußge
6e44149284
Treat scripts triggered by job as part of the job
...
Including blocking their sending via job_on_hold.
Closes #2583
2018-06-09 11:58:53 +02:00
Gina Häußge
534f3aa2d4
Fix for potential division by zero on SD upload
...
Closes #2675
2018-06-09 10:15:56 +02:00
Gina Häußge
13e5cf45ec
Fix reset handling while printing
...
Could get stuck in cancelling due to resend issues.
Should fix #2509
2018-06-08 17:14:40 +02:00
Gina Häußge
4cb103e042
Fix cancel_preparation call in case of failure
...
It should be _failed if the timer runs out, not _done. Only difference
is a log entry though, so not that big of a deal.
2018-06-08 11:03:44 +02:00
Gina Häußge
f8e6e4e3db
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/printer_safety_check/__init__.py
2018-06-05 11:12:42 +02:00
Gina Häußge
db81bf1e72
Add new states "resuming" and "finishing"
...
The later allows us to distinguish between a file having been streamed
completely and the print job done script having streamed completely as
well.
Should fix #2547
2018-06-05 11:07:31 +02:00
Gina Häußge
9c89c4c999
Simplified a log handler
2018-06-04 18:44:10 +02:00
Gina Häußge
d133bd47e5
Fix uninstall detection of disabled plugins
...
Fixes #2549 part 2
2018-06-04 18:01:34 +02:00
Gina Häußge
90391d2897
Forbid <=0 for various timeouts & intervals
...
Closes #2551
2018-06-04 15:13:45 +02:00
Gina Häußge
d124efdb71
Fix race condition in resend handling
...
Could be triggered if two resend requests without an ok were directly
following each other, causing a resend ok timer to be triggered for each
and a consequent attempt to process the same resend status again.
Should fix #2632
2018-05-29 17:30:59 +02:00
Gina Häußge
4f1b781219
docs: forgot to push two images
2018-05-29 16:13:50 +02:00
Gina Häußge
6673536e10
Added some additional printer safety checks
...
* Repetier firmware versions prior to 0.92 don't have thermal runaway/
decouple detection, so we always warn about those
* If the firmware supports the THERMAL_PROTECTION capability report
but it's reported as disabled, we also warn about that (see also
MarlinFirmware/Marlin#10465 )
2018-05-29 15:19:35 +02:00
Gina Häußge
118afd4720
Refactor version parsing helpers
...
Extract get_comparable_version for use in other places as well.
2018-05-29 15:16:14 +02:00
Gina Häußge
a0cbc10ba7
Add two new hooks for firmware information
...
octoprint.comm.firmware.info - response to M115
octoprint.comm.firmware.capabilities - capability report lines
2018-05-29 15:13:25 +02:00
Gina Häußge
38b7640769
Add support for prompt_* action commands
2018-05-28 18:16:06 +02:00
Gina Häußge
b266f1ca55
Update psutil dependency
...
Might fix #2658 (although I'm still at a complete loss as to how that
lib could influence serial connection stability O_O).
2018-05-28 10:46:40 +02:00
Gina Häußge
0ef0eff917
Add paused and resumed action commands
...
Slightly different behaviour than the already existing pause and resume,
see the docs.
2018-05-25 18:21:11 +02:00
Gina Häußge
fd29efe88e
Update jQuery to 3.3.1
2018-05-25 17:25:58 +02:00
Gina Häußge
cd3acfb384
Merge branch 'pr/2606' into maintenance
2018-05-25 16:49:33 +02:00
Gina Häußge
f9548a7ece
Sort serial ports naturally
2018-05-25 16:42:46 +02:00
Gina Häußge
ce5275c91e
docs: Add example for float factors
...
Closes #2663
2018-05-25 14:57:35 +02:00
Gina Häußge
a92372ec7e
Fix permission on temperature set button
...
Closes #2662
2018-05-24 10:36:20 +02:00
Gina Häußge
8a1db8e4c5
Disable fade in for cancel confirmation
...
Requests to add an option for it in 3, 2, 1...
Closes #2597
2018-05-18 18:22:19 +02:00
Gina Häußge
7b773f6fd2
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/templates/dialogs/settings/accesscontrol.jinja2
# src/octoprint/templates/sidebar/files_header.jinja2
2018-05-18 13:45:42 +02:00
Gina Häußge
0d120b2977
Merge pull request #2650 from ntoff/fix/grey-plugin-delete-clickable
...
Fix greyed plugin manager delete icons still being clickable
2018-05-18 12:42:00 +02:00
ntoff
bf71a20ac1
Fix greyed plugin manager delete icons still being clickable
...
Fixes https://github.com/foosel/OctoPrint/issues/2549
2018-05-18 19:21:50 +10:00
Gina Häußge
846d3a63bc
Merge pull request #2648 from malnvenshorn/class-methods-as-callbacks
...
Allow class methods as callbacks in view model
2018-05-18 10:00:48 +02:00
malnvenshorn
15d6bf3a70
Allow class methods as callbacks in view model
2018-05-17 19:11:52 +02:00
Gina Häußge
cec1bc6c0f
Allow plugins to override analysis & print time estimation
...
Using two new hooks, plugins may now provide alternative implementations
for the GCODE analysis and the live print time estimation.
Should allow people to get creative with regards to #1203 , #1905 , #2281 ,
#2445 , #2514
Implements #1797 , #1905
2018-05-17 18:58:15 +02:00
Gina Häußge
69681a27d6
Fix the unrendered timelapse list being visible when empty
2018-05-17 17:27:00 +02:00
Gina Häußge
0adcfc693d
Merge branch 'pr/2410' into devel
2018-05-17 16:29:09 +02:00
Gina Häußge
b73507fd2b
Increase default bitrate for timelapses
2018-05-17 16:27:18 +02:00
Gina Häußge
bea6bd013c
Some small fixes
...
* fixed whitespace
* less repetition for output/capture format
* value range check for ffmpegVideoCodec as suggested
2018-05-17 16:23:50 +02:00
Gina Häußge
5456f5a70a
Fix potential for invalid sorting of uploads
...
"date" and "size" might be undefined on both parameters (e.g. for
folders, SD files). We have no guarantee that "a" will always have
either defined, so make sure to test or a wrong sorting order might be
the consequence.
Fixes #2355
2018-05-17 10:57:01 +02:00
Gina Häußge
9a881012e2
Add new 3rd party lib to list
2018-05-16 18:36:07 +02:00
Gina Häußge
d62df7643b
Use resize sensor to fix progress bar text widths
...
Closes #2635
2018-05-16 18:29:39 +02:00
Gina Häußge
e980444f86
Merge pull request #2642 from malnvenshorn/itemlisthelper-add-update
...
ItemListHelper - Methods for adding and updating items
2018-05-15 17:14:37 +02:00
Gina Häußge
7d40320a5b
SWU: Fix another leftover wrong permission name
2018-05-15 17:05:54 +02:00
Gina Häußge
09456b923f
SWU: Fix update button not working
...
Closes #2641
2018-05-15 17:01:12 +02:00
Gina Häußge
39e6c11c39
Fix overflown tabdrop tabs not being selectable
...
Closes #2643
2018-05-15 16:45:38 +02:00
Koen Kooi
5aef014773
unit tests: timelapse: add videocodec test
...
This test checks if both videocodec and container format have been set
correctly.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net >
2018-05-15 10:42:11 +02:00
Koen Kooi
9738884ff8
messages.pot: add videocodec settings entries
...
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net >
2018-05-15 10:42:11 +02:00
Koen Kooi
27b625a614
timelapse: pick container and suffix based on setting
...
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net >
2018-05-15 10:42:07 +02:00
malnvenshorn
9d1f4fb126
Add methods for adding and updating items
2018-05-14 13:52:03 +02:00
Koen Kooi
096e9fc326
timelapse: change videocodecs to predefined list
2018-05-11 12:19:39 +02:00
Koen Kooi
f577d6b45d
timelapse: add setting for videocodec
...
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net >
2018-05-11 12:19:34 +02:00
Gina Häußge
bd7a28af5b
Fix unit test
2018-05-10 18:35:25 +02:00
Gina Häußge
104b0a504c
Merge branch 'pr/2586' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/server/util/sockjs.py
# src/octoprint/static/js/app/viewmodels/timelapse.js
2018-05-10 18:18:05 +02:00
Gina Häußge
40bfbe0d7b
knockoutify progress bar
...
Also hide it when we are not rendering anything.
2018-05-10 18:15:49 +02:00
Gina Häußge
4bf5984ace
ffmpeg needs help for continuous progress reporting
...
See https://stackoverflow.com/a/35422274
2018-05-10 18:15:25 +02:00
sylvled
3de5bca48b
Update config_yaml.rst
...
gcodeAnalysis and gcodeViewer were without section name. Added them.
2018-05-07 10:28:14 +02:00
Gina Häußge
81471df419
Option to send M0/M1 to the printer
...
Also added a message to the serial output if M0/M1 is blocked.
Closes #1513
2018-05-05 15:49:59 +02:00
Gina Häußge
99ef84788a
SWU: Support updating single items via UI
...
Closes #2615
2018-05-05 15:13:25 +02:00
Gina Häußge
bfbf9fb66e
Confirmation dialog helper now supports an html body
2018-05-05 15:12:03 +02:00
Gina Häußge
6074a3d964
Never send referrers with links
2018-05-05 14:01:29 +02:00
Gina Häußge
74e82afa24
About: Use github logo for source link
2018-05-05 13:50:27 +02:00
Gina Häußge
2b5c14b3c3
Change "Cancel" to "Close" on Settings
...
The Settings dialog also allows some "instant actions" (e.g. adding
users, changing specific plugin settings and so on). Having to click on
"Cancel" after actually doing something just feels wrong in such cases
so the Settings dialog now has a "Close" instead of a "Cancel" button.
Other sub dialogs will stay as is since that better reflects their
behaviour.
2018-05-05 13:48:19 +02:00
Gina Häußge
e5b167bcb4
Merge branch 'pr/2595' into maintenance
2018-05-05 13:29:33 +02:00
Gina Häußge
a70928aac6
Revert "Fix trivial copy and paste errors"
...
This reverts commit e02679a
It actually wasn't a copy and paste error - it *is* a plugin after all,
so "PluginSettings" makes sense.
2018-05-05 13:29:11 +02:00
Gina Häußge
7548e7a623
Revert "Replace "Cancel" label with "Abort" on buttons for consistency"
...
This reverts commit eb37607
2018-05-05 13:28:04 +02:00
Gina Häußge
8d9034b5a4
Gcode viewer: show approx. print head position
...
Also change retract/resume from dot to triangle/inverted triangle.
Closes #2318
2018-05-05 12:56:12 +02:00
Gina Häußge
b5194ffc00
Plugin core: Fetch package name from entry point
...
See also #2625
2018-05-05 12:56:12 +02:00
Gina Häußge
fa6cda3356
Merge pull request #2620 from malnvenshorn/itemlisthelper-save-pagesize
...
ItemListHelper - Save page size to local storage
2018-05-05 10:14:25 +02:00
Ben Lye
4d9ec9a7e3
Add M118 to commands to not uppercase
...
Adds M118 to the default list of commands which should not automatically be converted to uppercase.
2018-05-05 10:10:02 +02:00
Gina Häußge
e44a2fdd97
Update pkginfo dependency
2018-05-04 12:55:32 +02:00
Gina Häußge
95ac669d5c
Plugin subsystem: Use entry_point.dist to fetch metadata
...
Support egg "PKG-INFO" and wheel "METADATA" files in metadata folder. Less
guess work throughout the include path this way.
Better solution for #2625 than c3eebdb
2018-05-04 12:55:16 +02:00
Gina Häußge
5e899204f0
Merge branch 'hotfix/pip10' into maintenance
2018-05-03 18:02:14 +02:00
Gina Häußge
c3eebdb158
Fix plugin metadata parsing for pip 10+
2018-05-03 18:00:28 +02:00
Gina Häußge
8369d311bf
Small refactoring & fixed tests
2018-05-03 17:42:30 +02:00
Gina Häußge
13b85fbbd0
Fix fps source when rendering unrendered timelapse
...
Should be taken from config unless provided as parameter, not hard coded
to 25.
Closes #2621
2018-05-03 15:40:36 +02:00
Gina Häußge
ddd2711f95
Fix a broken unit test
...
We now initialize the folders when initializing the settings, so the
test that the folder didn't yet exist before retrieving its path
naturally failed.
2018-05-03 12:18:10 +02:00
Gina Häußge
9addbbb9a1
Fix refactoring bug
...
Closes #2617
2018-05-03 11:45:46 +02:00
malnvenshorn
735e2c6c94
Convert page size to integer when reading from local storage
2018-05-01 15:50:27 +02:00
malnvenshorn
9d2ee2b55b
Save page size to local storage
2018-05-01 12:32:55 +02:00
malnvenshorn
7988e7487f
DRY principle for storage IDs
2018-05-01 12:21:01 +02:00
Gina Häußge
4bbe49ac6d
Sanity check for configured folders
...
* On startup: Check they are writable, if not revert to defaults
* On settings save: Check they are writable, if not return an HTTP 400
* In the settings dialog: Allow quick check of writability via Test
buttons
Should hopefully prevent users from nuking their instance by configuring
some custom folder that isn't writable.
TODO:
Currently simply doesn't close the settings dialog, needs some message
or something (or client side folder validation on clicking the button).
2018-04-27 17:44:07 +02:00
Gina Häußge
9e32439f44
Watchdog: Ignore hidden & removed files
...
Closes #2558
2018-04-27 16:17:04 +02:00
Gina Häußge
3ebb36f877
Disable user display if access control is disabled
...
Also show something more human friendly if the active user for a print
job is the "_api" user of the global api key.
2018-04-27 11:53:49 +02:00
Gina Häußge
d8eb57548d
Merge branch 'dev/granularPermissions' into devel
...
# Conflicts:
# src/octoprint/server/api/files.py
# src/octoprint/server/api/job.py
# src/octoprint/static/js/app/viewmodels/users.js
2018-04-26 19:27:11 +02:00
Gina Häußge
d8072f0e05
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
2018-04-26 19:10:16 +02:00
Gina Häußge
3d7016f500
Fixed/removed completely outdated & broken tests
2018-04-26 19:09:03 +02:00
Gina Häußge
41e3a0390f
Removed CombinedPermissions
...
We now support adding other permissions to Permissions on creation, so
there's no need for this anymore.
Adjusted plugin permission addition accordingly by merging "regular" and
"combined" types.
Migrated log download permission.
Fixed some stuff here and there that I can't remember right now.
2018-04-26 19:08:30 +02:00
Gina Häußge
42a9a1976d
Fix anonymous user & disabled ACL mode
2018-04-26 18:25:27 +02:00
Gina Häußge
569991e55c
removeable => removable, changable => changeable
2018-04-26 13:06:14 +02:00
Gina Häußge
b2996f10ff
Get rid of a bit of Python2 only code
2018-04-26 12:56:07 +02:00
Gina Häußge
42fb4f4700
Fix remember me and IPv4/IPv6 sessions
...
Session protection mode "strong" is apparently incompatible to the
remember me function in general and on top of that I observed issues
with at least Windows happily switching between connecting to an
instance via IPv4 and IPv6, causing changes in the reported client IP
and hence the session protection killing the session as a result.
2018-04-26 12:40:07 +02:00
Gina Häußge
52934602cd
Fix forgotten self
2018-04-26 12:03:34 +02:00
Gina Häußge
2a0eda5c34
Make sure we have the current user data in editor
...
Fixes #2534
2018-04-26 11:30:48 +02:00
Gina Häußge
a3b3fbe269
Add some more strings to the known error classes
...
"Missing linenumber" is apparently also an option we want to recognize
as non critical error, and while we are at it let's make sure we also
capture "linenumber" without a space for resend request communication
errors, just in case firmware devs add some variance here.
2018-04-26 11:00:29 +02:00
Gina Häußge
2fe177ffb8
Virtual: Fix default M114 format string
2018-04-25 17:01:24 +02:00
Gina Häußge
d8bc75222f
Remove some left overs from a small refactor
...
Closes #2610
2018-04-25 17:01:24 +02:00
Gina Häußge
c3bb651d9e
Properly decouple individual metadata locks
...
Thanks to @CapnBry for the heads-up here.
2018-04-25 17:01:24 +02:00
Gina Häußge
135cf6a9cc
Migrate file storage metadata to json
...
As suggested by @CapnBry, that should give us a significant speed
boost considering that yaml serialization and deserialization is some
orders of magnitude slower than json.
We only do that for the file metadata for now - it has the biggest gain
to expect from a speed boost, and having the configuration as yaml
actually has its readability advantages.
2018-04-25 17:01:24 +02:00
Gina Häußge
be4b98b9da
Merge pull request #2604 from dforsi/fix/issue/2534
...
Reload older values after cancelling the Settings dialog
2018-04-25 10:51:41 +02:00
Gina Häußge
673b367902
Merge pull request #2591 from dforsi/fix/valid-html
...
Fix markup for some HTML labels
2018-04-25 10:41:57 +02:00
Gina Häußge
81626ceec5
Small change in user display in state panel
2018-04-24 16:52:17 +02:00
Gina Häußge
b653ee59c8
Merge branch 'pr/2576' into maintenance
...
# Conflicts:
# src/octoprint/printer/standard.py
2018-04-24 16:45:08 +02:00
Gina Häußge
79abe31a06
Move printing user into job data & add UI representation
2018-04-24 16:44:41 +02:00
Gina Häußge
30a523b8c1
Fix printer.select_file
...
* properly handle relative paths for selection
* properly handle absolute paths for recovery data comparison
Fixes #2601
2018-04-24 16:00:09 +02:00
Gina Häußge
c104f45b16
SWU: Default to force_base = False
2018-04-24 13:49:21 +02:00
Gina Häußge
a9bc814016
Merge branch 'master' into maintenance
2018-04-24 13:18:47 +02:00
Gina Häußge
edd00cfa80
Some adjustments for PyPI stuff
2018-04-24 12:41:45 +02:00
Daniele Forsi
60baf54d7b
Refresh the details in the Connection pane when settings are updated
2018-04-23 23:54:02 +02:00
Daniele Forsi
536f5458bb
Show details in the Connection pane ordered as in the Settings dialog
...
Return the Serial Port and the Baudrate lists without sorting them.
2018-04-23 16:05:47 +02:00
Daniele Forsi
a4cc3a9309
Reload older values after cancelling the Settings dialog
...
Fixes #2534
2018-04-22 23:09:37 +02:00
ZachNo
b7adf115ee
Changed to CommandlineCaller, added test
...
Now using CommandlineCaller using a custom logger function.
Added test in test_timelapse_helpers.py for _process_ffmpeg_output
2018-04-21 21:44:52 -04:00
Gina Häußge
f72b92caff
Revert Tornado 5 fixes for sockjs
2018-04-20 22:39:26 +02:00
Gina Häußge
d3e7842c3a
Revert "Minor adjustments for Tornado 5"
...
This reverts commit 258f3725bf .
2018-04-20 22:39:25 +02:00
Gina Häußge
555bdefd46
Pin tornado to >=4.5.3,<5 for now
...
There appears to be a memory leak issue with tornado 5.x as reported in #2585
2018-04-20 22:39:20 +02:00
Gina Häußge
7cf0f552f5
Track group flags from default groups
2018-04-20 20:31:10 +02:00
Gina Häußge
246c614635
Allow plugins to declare permissions as default for standard groups
2018-04-20 20:00:34 +02:00
Gina Häußge
df62f08ec3
React to permission changes & fix timelapse permissions
2018-04-20 14:32:21 +02:00
Gina Häußge
b6f71eeb3b
restricted_access => require_firstrun
...
We don't want to require a login session anymore in most cases, we have granular permissions for this.
2018-04-20 14:08:02 +02:00
Gina Häußge
e2a7e07a0a
Fix some imports
2018-04-20 14:04:38 +02:00
Gina Häußge
b3acd36092
Don't try to login/out anonymous users
2018-04-20 14:02:39 +02:00
Gina Häußge
7a037b9c66
Make sure to update data if current permissions change
2018-04-19 22:01:52 +02:00
Gina Häußge
c1cf359b43
Fix a group duplication bug
2018-04-19 18:49:05 +02:00
Daniele Forsi
206c22f6aa
Add some icons to the About page
...
Also moves Documentation so that the first 4 items are the same as in the footer.
2018-04-19 18:34:40 +02:00
Daniele Forsi
14959c2d66
Hide the buttons when the file list is hidden
2018-04-19 17:51:00 +02:00
Daniele Forsi
eb3760715f
Replace "Cancel" label with "Abort" on buttons for consistency
...
Now only the main settings dialog has a "Cancel" button and the other
dialogs have "Abort" on the buttons that do not save the changes.
2018-04-19 15:55:35 +02:00
Daniele Forsi
e02679a587
Fix trivial copy and paste errors
2018-04-19 15:36:09 +02:00
Daniele Forsi
4064b3fc72
Make the API buttons and title in the Settings similar to those in other dialogs
2018-04-19 15:36:09 +02:00
Daniele Forsi
e3f2a16e92
Fix caret icon always shown in position "closed" even whe details are visible
2018-04-19 15:36:09 +02:00
Gina Häußge
2d883d6d20
Make "users" group mandatory for logged in users
...
That makes the migration scenario way easier and also makes sense
in general.
2018-04-19 14:55:47 +02:00
Gina Häußge
a9441400b3
Merge branch 'fix/positionLogTimeout' into maintenance
...
# Conflicts:
# src/octoprint/util/comm.py
2018-04-19 14:10:16 +02:00
Gina Häußge
09781613ce
Add timeout for position log on pause/cancel
...
Workaround for firmware which doesn't provide a proper M114 report that might
be unparseable. We don't want to get stuck in such cases (which appear to be more
common than should be the case - this whole comm situation is just FUBAR).
2018-04-19 14:09:18 +02:00
Gina Häußge
63b63f6aad
Test for image/* in snapshot test
2018-04-19 13:10:58 +02:00
Gina Häußge
1637187c76
Extend URL test to also allow whitelist/blacklist check for the returned content type
2018-04-19 13:10:41 +02:00
Gina Häußge
303ef405bb
Fix snapshot test button not resetting on error
2018-04-19 13:01:37 +02:00
Gina Häußge
bf3da2a662
Fixes a race condition causing stalls when pausing/cancelling
...
Closes #2581 & closes #2587
2018-04-18 13:02:36 +02:00
Gina Häußge
b8194ecc84
Fixes a race condition causing stalls when pausing/cancelling
...
Closes #2581
2018-04-18 12:59:38 +02:00
Gina Häußge
472ab367b0
Disable logging the position on cancel by default
...
Apparently that is causing too many issues in the field. If someone
actually DOES need the position data, they can always enable this.
2018-04-18 12:59:38 +02:00
Gina Häußge
8f50180543
Virtual: allow defining custom M114 responses
2018-04-17 09:10:33 +02:00
Zachary N
2fa18f5855
Merge branch 'devel' into dev/timelapseProgress
2018-04-16 18:25:48 -04:00
Daniele Forsi
11eae082fc
Remove invalid xmlns attributes so that the default value is used
...
Fixes 2 validation errors:
Error: Bad value http://www.w3.org/1999/html for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).
<div id="offline_overlay" xmlns="http://www.w3.org/1999/html ">↩ <
Error: Bad value http://www.w3.org/1999/html for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).
<div id="reloadui_overlay" xmlns="http://www.w3.org/1999/html ">↩ <
2018-04-16 20:07:28 +02:00
Daniele Forsi
885446328d
Add missing "for" and "id" attributes to some HTML labels
2018-04-16 20:07:28 +02:00
Daniele Forsi
8cb4d84905
Fix HTML labels with wrong "for" attribute
...
Fixes some validation errors detected by https://validator.w3.org and other errors.
2018-04-16 20:07:28 +02:00
ZachNo
a4ce92c963
Added timelapse render progress bar
...
For issue @485
Added progress bar to the Timelapse tab between the settings and files
Added code to process the output of ffmpeg and compute a percentage
Added code to communicate the percentage from the server to the client
Added myself to the authors
Changed tests to reflect new loglevel
2018-04-16 06:05:25 -04:00
Gina Häußge
0da52cb366
Update pyserial to 3.4
...
Final part of the fix for #2333
2018-04-13 18:32:09 +02:00
Gina Häußge
57ea18a9a4
Fix Print Job Left display
...
Fixes #2579
2018-04-13 18:17:03 +02:00
Gina Häußge
c84d39a803
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
2018-04-13 17:23:42 +02:00
Gina Häußge
06478415b5
Merge remote-tracking branch 'refs/remotes/origin/maintenance' into maintenance
2018-04-13 17:08:47 +02:00
Gina Häußge
6a8a1c31e3
maintenance is now 1.3.9.dev
2018-04-13 17:08:19 +02:00
Gina Häußge
cce7961ee3
Merge branch 'staging/maintenance' into maintenance
2018-04-13 17:07:48 +02:00
Gina Häußge
725227338a
Merge branch 'rc/maintenance' into staging/maintenance
2018-04-13 17:06:36 +02:00
Gina Häußge
c55c568bbd
Preparing release of 1.3.8
2018-04-13 16:22:44 +02:00
Gina Häußge
45d8c28883
Pin psutil to 5.4.3
...
Fixes #2577
2018-04-13 15:31:44 +02:00
Gina Häußge
8076e59861
Add hotfix branch type & set to tag tracking
2018-04-13 15:31:01 +02:00
Gina Häußge
d59eaa2a91
Admins are also users
2018-04-12 19:49:04 +02:00
Gina Häußge
f7ad87449a
Identify groups by a key & add group role
2018-04-12 19:07:59 +02:00
malnvenshorn
b41df46491
Added @malnvenshorn to AUTHORS.md
2018-04-12 17:00:37 +02:00
Gina Häußge
08bfae216c
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/printer_safety_check/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/util/sockjs.py
2018-04-12 16:37:27 +02:00
Gina Häußge
64db784d8d
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
2018-04-12 16:35:53 +02:00
Gina Häußge
5a91b8db48
Some permission changes & fixes
2018-04-12 16:34:17 +02:00
malnvenshorn
5205d2e352
Tracking user of print job
2018-04-12 16:15:53 +02:00
Gina Häußge
9c923be5f0
Better solution for the Tornado 5 + SockJS + haproxy issue
...
Looks like Nagle's algorithm was the cause. Adding
option http-no-delay
to haproxy.cfg solves the problem without modification of the timeout,
however that is not an option for the thousands of instances already
deployed in the field.
So instead we add 300ms to the roundtrip based connection timeout, that
should hopefully get around any Nagle-induced delays (usually between
40 and 200ms according to various sites on the net).
2018-04-12 13:19:02 +02:00
Gina Häußge
88328bbe0e
Merge pull request #2568 from vitormhenrique/master
...
Fix dead link on hooks documentation
2018-04-12 12:58:46 +02:00
Gina Häußge
132614045c
Early detection & logging of broken files response
...
Fixes #2572
2018-04-12 12:08:19 +02:00
Gina Häußge
a33b037364
Fix ItemListHelper throwing an error on undefined items
...
Just fall back to an empty list.
Fixed #2572 (at least the bit that isn't a broken nginx config)
2018-04-12 11:55:14 +02:00
Gina Häußge
33b27e450f
Merge branch 'fix/sockjs' into maintenance
2018-04-11 18:47:18 +02:00
Gina Häußge
a5d541dafc
Fix sockjs not working behind haproxy
...
For some reason the websocket connection runs into a timeout, the xhr
transport doesn't properly take over, and then stuff takes ages to
realign again.
Only happens under Tornado 5, doesn't happen under Tornado 4.5
Increasing the timeout for now instead of pinning to Tornado 4.5 in the
hopes that might still be figured out.
Incredibly weird though.
2018-04-11 18:47:08 +02:00
Gina Häußge
258f3725bf
Minor adjustments for Tornado 5
2018-04-11 18:43:23 +02:00
Gina Häußge
c4d8e344d1
Remove wrongly placed whitespace
2018-04-11 11:15:46 +02:00
Gina Häußge
f3128a15d9
Safety Plugin: Add Malyan M200 & CR-10S
...
Malyan M200 identified by firmware name "Malyan" and model "M200".
Printer also known as Monoprice Select Mini, see also ID strings in
#2271 .
CR-10S identified by "Author: (CR-10Slanguage)".
2018-04-11 11:15:18 +02:00
Gina Häußge
6f224bd825
Workaround for typo & whitespace in Malyan M115 responses
...
NAME. instead of NAME:, whitespace between key and value component.
2018-04-11 11:12:56 +02:00
Vitor de Miranda Henrique
58bbbc2ad9
Update hooks.rst
...
Fix Software Update plugin link, it was pointing to an old github page --> https://github.com/OctoPrint/OctoPrint-SoftwareUpdate
instead of the bundled plugin--> https://github.com/foosel/OctoPrint/tree/master/src/octoprint/plugins/softwareupdate
2018-04-10 16:19:55 -05:00
Gina Häußge
75de062b55
Safety Plugin: Add detection of Anycubic Mega
...
Identified by "Author: (Jolly, xxxxxxxx.CO.)" in startup messages.
2018-04-10 18:09:55 +02:00
Gina Häußge
58f73f3ed9
Merge branch 'maintenance' into devel
2018-04-09 17:03:30 +02:00
Gina Häußge
85dfcbd156
Merge branch 'staging/maintenance' into maintenance
2018-04-09 17:03:15 +02:00
Gina Häußge
a6cec7d2ef
Merge branch 'rc/maintenance' into staging/maintenance
2018-04-09 17:02:51 +02:00
Gina Häußge
6d7f8a2a64
Don't raise error when trying to read from finished print
...
Could be caused by timing issues and one `continue_sending` too many, so
just ignore this but log a warning.
2018-04-09 15:56:35 +02:00
Gina Häußge
8869748ecc
Don't trigger ok timeout while heating or in long running command
...
Workaround for printers that don't send busy:processing during heatups
like they should.
2018-04-09 15:53:25 +02:00
Gina Häußge
e0b0f2ae18
Preparing release of 1.3.7
2018-04-09 12:38:56 +02:00
Gina Häußge
440ccf165e
[Docs] Add missing image
...
Fixes #2557
2018-04-09 11:50:16 +02:00
Gina Häußge
7e0b187cb8
Bundle sockjs-tornado dependency
...
It appears to be unmaintained at the moment, and the current version
is incompatible to Tornado 5.
Instead of monkey patching ad infinitum we instead bundle the dependency
in the new vendor sub package.
2018-04-06 18:38:06 +02:00
Gina Häußge
025f545ef7
Better requirement detection in octoprint_setuptools
...
Plus unit tests.
2018-04-06 14:59:11 +02:00
Gina Häußge
6af1afb546
Don't tab to "forget password" link
2018-04-06 14:59:11 +02:00
Gina Häußge
1dd1eb3768
Merge pull request #2554 from tedder/upstream_maintenance
...
docfix: make 'settings' proper yaml
2018-04-06 09:33:32 +02:00
tedder
77d126fc09
make 'settings' proper yaml
...
See PR #2530 ; I assumed it should go into 'devel' so it is right in new releases, but Gina asked for it to be done here.
2018-04-05 13:38:25 -07:00
Gina Häußge
4a3902c060
Merge pull request #2533 from dforsi/fix/fix-api-buttons
...
Fix buttons not disabled when there isn't an API key available
2018-04-05 12:59:08 +02:00
Gina Häußge
83cdd4d79d
Merge pull request #2552 from dforsi/fix/fix-typos
...
Fix typos in the docs
2018-04-05 12:58:00 +02:00
Daniele Forsi
1d1191eae0
Fix typos in the docs
2018-04-04 23:13:32 +02:00
Daniele Forsi
1efa0fa1e6
Fix buttons not disabled when there isn't an API key available
...
Also keeps always enabled the button to refresh the global API key.
Bootstrap buttons made from HTML <a> tags can only be disabled with CSS.
2018-04-04 20:09:06 +02:00
Gina Häußge
1852578136
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/logging/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/static/css/octoprint.css
2018-04-04 16:47:51 +02:00
Gina Häußge
085424f192
Support for binding to IPv6 addresses
...
Defaults to :: if IPv6 is supported, 0.0.0.0 otherwise. Both
intermediary server and Tornado are instructed to bind their sockets to
both IP versions.
Positive IPv6 support detection relies on
* socket.has_ipv6 being True
* socket.IPPROTO_IPV6 and socket.IPV6_V6ONLY being available (or
redefined in case of Windows) in order to ensure dual stack binding
for the intermediary server
Implements #2351
2018-04-04 15:04:33 +02:00
Gina Häußge
db23bed00b
Remove intermediary dialog for "forgot password"
...
Might annoy people after all having to click twice just to get the
information they are looking for.
Can be changed if the process gets changed.
2018-04-04 13:12:53 +02:00
Gina Häußge
fdb2ba8146
Merge branch 'maintenance' into devel
2018-04-04 12:41:37 +02:00
Gina Häußge
9c31fa88a5
Merge branch 'staging/maintenance' into maintenance
2018-04-04 12:36:24 +02:00
Gina Häußge
c5439da9d2
staging/maintenance is now 1.3.7rc5.dev
2018-04-04 12:34:57 +02:00
Gina Häußge
e5caa3d0bf
Preparing release of 1.3.7rc4
2018-04-04 11:10:45 +02:00
Gina Häußge
a821346b07
Don't trigger PRINT_FAILED twice on disconnect
...
Fixes #2546
2018-04-04 11:10:43 +02:00
Gina Häußge
561bf83d88
Merge pull request #2540 from dforsi/fix/fix-rst
...
Add missing documentation for GCODE analysis and other small fixes
2018-04-04 09:51:06 +02:00
Gina Häußge
baf8941f31
Merge pull request #2532 from dforsi/fix/fix-typos
...
Fix typo
2018-04-04 09:49:42 +02:00
Daniele Forsi
f7dec5542b
Fix typos
2018-04-03 23:41:34 +02:00
Daniele Forsi
6ec8b97ddb
Add missing documentation for GCODE analysis and other small fixes
...
Adds documentation for `dimensions` and `printingArea`; fixes `length`
and `volume`; adds two internal references.
Fixes #2463 .
2018-04-03 20:35:58 +02:00
Gina Häußge
0ac9ea518c
SWU: Update "How to use release channels" link
2018-04-03 17:47:23 +02:00
Gina Häußge
9f80aefcc9
thaw_frozendict should be fully recursive
...
So far it was only deep-diving into frozendicts, not dicts (which might
contain frozendicts).
In principle we probably should also dive into tuples and lists and
other containers, but in our current application we don't put
frozendicts into those so let's not overdo it.
2018-04-03 16:56:59 +02:00
Gina Häußge
c1fe8f5a35
Fix RawWebsocketTransport of sockjs
...
Ran into issues due to session wrapping in order to support custom
Json encoding.
We now make sure to
* only wrap non-raw sessions (since only those have send_jsonified
defined which we overwrite)
* overwrite tornado.escape.json_encode to use our custom encoder as
fallback, since that is used for RawWebsocketTransport
Fixes an issue with the /sockjs/websocket endpoint hinted at in #2529
2018-04-03 16:45:14 +02:00
Gina Häußge
fcecb5c0f0
Fix heatup flag not resetting on external SD print start
...
If the start of the SD print could only be verified after the blocking
heatup was through, the start time was reset to None and hence the
heatup flag was not cleared on receival of the first ok, causing no
commands to be sent out and things to run into a timeout.
Fixes #2536
2018-04-03 15:41:13 +02:00
Gina Häußge
25005b547c
Virtual: Add some debug commands for sd printing
2018-04-03 15:38:43 +02:00
Gina Häußge
35343705ca
Merge pull request #2543 from ganey/bugfix/pip--no-cache-dir
...
Pip install with --no-cache-dir to handle plugin installations with MemoryError
2018-04-03 13:49:59 +02:00
Ganey
22e894c245
Merge branch 'maintenance' into bugfix/pip--no-cache-dir
2018-04-03 12:46:05 +01:00
Gina Häußge
4ef01610d0
Merge pull request #2541 from dforsi/dev/forgot-email
...
Add link to instructions to reset passwords
2018-04-03 13:34:29 +02:00
Michael Gane
bb065828f2
pip install using --no-cache-dir for low memory devices
2018-04-03 10:51:52 +01:00
Daniele Forsi
d0637f61d4
Add link to instructions to reset passwords
2018-04-02 23:46:06 +02:00
Daniele Forsi
84319366d1
Fix typo
2018-03-29 22:11:36 +02:00
Gina Häußge
92ea6ee9aa
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
# src/octoprint/server/util/tornado.py
2018-03-29 17:01:18 +02:00
Gina Häußge
2152c401bf
Merge branch 'staging/maintenance' into maintenance
2018-03-29 16:59:24 +02:00
Gina Häußge
dbfe7fece1
staging/maintenance is now 1.3.7rc4.dev
2018-03-29 16:58:55 +02:00
Gina Häußge
9c5d996ea2
Preparing release of 1.3.7rc3
2018-03-29 15:47:35 +02:00
Gina Häußge
b8e7cfb506
"Where to find versions" is not on the FAQ
2018-03-29 14:24:58 +02:00
Gina Häußge
822f757f9d
Ignore wait if job is on hold
...
See #2524
2018-03-29 14:23:17 +02:00
Gina Häußge
b04aff7d5e
Fix command expansion for non-gcode commands
2018-03-28 15:24:50 +02:00
Gina Häußge
0070349d66
Fix browser session getting overwritten by API key
...
Closes #2505
2018-03-27 16:53:14 +02:00
Gina Häußge
0cbad44055
Fix temperature profiles saving string values
...
Closes #2520
2018-03-27 16:23:13 +02:00
Gina Häußge
2571d32134
Include children on first level folder listings
...
This allows step-by-step traversal of file listings without the
recursive flag.
Fixes #2496
2018-03-27 15:29:53 +02:00
Gina Häußge
64ee8bac60
Support parsing xheaders in tornado
...
That will give us more accurate client ips, with a one hop limitation
however, see http://www.tornadoweb.org/en/stable/httpserver.html . If
more than one hop/reverse proxy is used in front of OctoPrint, their IPs
should be configured as server.reverseProxy.trustedDownstream in
config.yaml so they don't get detected as client IPs.
Implements #2512
2018-03-27 14:54:52 +02:00
Gina Häußge
da392b9c9f
Log asynchronously
...
Implements #2522
2018-03-27 13:50:03 +02:00
Gina Häußge
3179a1846f
Update to Tornado 5
2018-03-27 11:45:02 +02:00
Gina Häußge
b3912b2281
Remove legacyPluginAssets flag
2018-03-26 15:33:33 +02:00
Gina Häußge
db14723ea2
Use regular scrollbars instead of slimscroll
...
See #2379
2018-03-26 15:17:17 +02:00
Gina Häußge
28831a68dd
Add (configurable) small delay before baudrate detection
...
Solves issue with controllers that don't like baudrate switches right
after connection, e.g. the Einsy board.
Fixes #2517
2018-03-26 14:43:56 +02:00
Gina Häußge
fb4e95bf8e
Merge branch 'maintenance' into devel
2018-03-23 16:29:30 +01:00
Gina Häußge
6f18495395
Merge branch 'staging/maintenance' into maintenance
2018-03-23 16:29:06 +01:00
Gina Häußge
028425542f
staging/maintenance is now 1.3.7rc3.dev
2018-03-23 16:28:47 +01:00
Gina Häußge
339d1df5a9
Preparing release of 1.3.7rc2
2018-03-23 15:29:00 +01:00
Gina Häußge
2abe67a24c
Logging: Discourage disabling this plugin
2018-03-23 15:27:12 +01:00
Gina Häußge
fc2ef8a09c
Merge branch 'maintenance' of github.com:foosel/OctoPrint into maintenance
2018-03-23 14:59:25 +01:00
Gina Häußge
0809540bd7
force always means "now", even when printing
2018-03-23 14:58:47 +01:00
Gina Häußge
47267abcd1
Fix HTTP 500 in case of unconfigured slicer
...
Fixes #2508
2018-03-23 14:24:10 +01:00
Gina Häußge
23f130da58
Fix "undefined" settings values not saving
...
Fixes #2494
2018-03-23 14:17:23 +01:00
Gina Häußge
3a71d39785
Merge pull request #2504 from dforsi/fix/fix-typos
...
Fix typos
2018-03-23 10:11:55 +01:00
Gina Häußge
c41aecc2b8
Merge pull request #2502 from dforsi/fix/valid-html
...
Fix some invalid HTML
2018-03-23 10:11:21 +01:00
Gina Häußge
9af6b42bdd
Virtual: Fix queue clearing on reset
2018-03-22 17:50:48 +01:00
Gina Häußge
7cb910a69a
Forgot a monotonic.monotonic
2018-03-22 17:10:06 +01:00
Gina Häußge
c30db16085
Fire print failed event on error while printing
...
That will ensure to also stop timelapse
2018-03-22 16:17:25 +01:00
Gina Häußge
832a0c88aa
Virtual: also reset autoreporting & fix heatup
2018-03-22 16:15:56 +01:00
Gina Häußge
972c2823a0
Add missing _sprintf wrapper around messages
...
Fixes #2499
2018-03-22 14:21:20 +01:00
Gina Häußge
f10bfa67ca
Use "import pip" method of calling pip only as last resort
...
Doing that poses too much risk with pip's general "no API support", as
seen in #2499 .
2018-03-22 13:59:38 +01:00
Gina Häußge
fb834f81ee
Use pkg_resources to find out local pip version
...
Doing a "import pip; pip.__version__" or "from pip import __version__"
poses too much risk with pip's general "no API support", as seen in
#2499 .
2018-03-22 13:46:38 +01:00
Gina Häußge
957ba43320
Virtual: Support for simulated reset
2018-03-22 13:36:12 +01:00
Gina Häußge
133850f61c
Actually, make that a deepcopy
2018-03-22 13:08:01 +01:00
Gina Häußge
f782cfe83f
Thaw the frozendict on printer.get_current_data
...
We don't want calling code to run into trouble because of that.
Fixes #2506
2018-03-22 12:58:52 +01:00
Gina Häußge
70254e910c
Use octoprint.util.monotonic_time instead of monotonic
2018-03-22 11:41:31 +01:00
Gina Häußge
f981cca47e
Forgot a "global"
...
Fixes #2501
2018-03-22 11:34:39 +01:00
Daniele Forsi
06f62bd874
Fix a typo in the docs
2018-03-22 00:23:02 +01:00
Daniele Forsi
23bcbba013
Fix typo
2018-03-21 19:28:22 +01:00
Daniele Forsi
cb18d3fe32
Fix some invalid HTML
...
Fixes 4 kinds of errors found with https://validator.w3.org/nu/#textarea
Bad value javascript for attribute lang on element script
Bad character after < . Probable cause: Unescaped < . Try
escaping it as < .
The element label must not appear as a descendant of the label element.
Element legend not allowed as child of element form in this context.
Note: the change related to <legend> seems big because of the increased
indent of the existing code (use "git diff --ignore-all-space" or
"git log --patch --ignore-all-space" to see the lines actually added).
2018-03-21 16:14:02 +01:00
Gina Häußge
95694453f4
Merge pull request #2495 from dforsi/fix/remove-unneeded-format
...
Remove unneeded format() filter from template
2018-03-20 16:51:16 +01:00
Gina Häußge
0825e0660f
Merge pull request #2498 from dforsi/fix/issue/2487
...
Document the async flag of custom system commands
2018-03-20 16:50:19 +01:00
Gina Häußge
0224037478
Have OctoPrintJsonEncoder fall back to flask encoder
...
That supports some types we want to keep just in case.
2018-03-20 16:19:06 +01:00
Daniele Forsi
819d4d0fdf
Expand the description of custom system commands
...
Fixes #2487
2018-03-20 16:12:49 +01:00
Gina Häußge
cedbf039d2
Consolidate json encoding like in 1.3.x
2018-03-20 16:12:32 +01:00
Gina Häußge
d1711f0376
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/server/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/static/css/octoprint.css
# src/octoprint/static/js/app/viewmodels/printerstate.js
# src/octoprint/templates/tabs/timelapse.jinja2
2018-03-20 16:10:19 +01:00
Daniele Forsi
1c43e193ba
Remove unneeded format() filter
2018-03-19 18:55:14 +01:00
Gina Häußge
047b9f544a
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/__init__.py
# src/octoprint/server/util/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/users.py
2018-03-19 17:24:11 +01:00
Gina Häußge
4f1cd6b3a2
maintenance is now 1.3.8.dev
2018-03-19 17:19:38 +01:00
Gina Häußge
e4914b8bd3
staging/maintenance is now 1.3.7rc2.dev
2018-03-19 17:18:39 +01:00
Gina Häußge
8ea7528d41
Show control tab if webcam or control allowed
2018-03-17 18:03:41 +01:00
Gina Häußge
43bf55d503
Migrate logging plugin to new permission system
2018-02-20 15:43:20 +01:00
Gina Häußge
b9a5e1db69
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/corewizard/__init__.py
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/plugins/softwareupdate/__init__.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/job.py
# src/octoprint/server/api/log.py
# src/octoprint/server/util/__init__.py
# src/octoprint/server/views.py
# src/octoprint/static/css/octoprint.css
# src/octoprint/static/js/app/main.js
# src/octoprint/static/js/app/viewmodels/log.js
# src/octoprint/static/js/app/viewmodels/loginstate.js
# src/octoprint/static/js/app/viewmodels/printerstate.js
# src/octoprint/static/js/app/viewmodels/users.js
# src/octoprint/static/less/octoprint.less
# src/octoprint/templates/dialogs/settings/logs.jinja2
# src/octoprint/templates/tabs/control.jinja2
# src/octoprint/util/__init__.py
2018-02-20 15:42:43 +01:00
Gina Häußge
03d421c629
Merge remote-tracking branch 'origin/devel' into devel
2018-02-20 13:17:41 +01:00
Gina Häußge
066e7d1e39
flask.ext.foo => flask_foo
2018-02-20 13:15:30 +01:00
Gina Häußge
4fd641dc74
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
2018-02-20 12:55:55 +01:00
Gina Häußge
16b690089d
Merge pull request #2328 from tedder/grammar_fix_setup
...
grammatical fix in text
2018-01-12 15:31:09 +01:00
tedder
a77fbfe0c2
grammatical fix in text
...
[It's a common error](https://brians.wsu.edu/2016/05/31/setup-set-up/ ); I'm not sure if it needs to be fixed in all three places or perhaps only in the .pot file.
2017-12-27 19:57:47 -08:00
Gina Häußge
b36a776f51
Merge branch 'maintenance' into devel
2017-12-12 13:09:41 +01:00
Gina Häußge
9c39dd7303
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
2017-12-05 16:02:19 +01:00
Gina Häußge
eb5a3d1d36
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/static/js/app/main.js
2017-12-01 16:10:12 +01:00
Gina Häußge
d465f23309
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/corewizard/__init__.py
# src/octoprint/plugins/discovery/__init__.py
# src/octoprint/plugins/pluginmanager/__init__.py
2017-11-29 18:19:08 +01:00
Gina Häußge
987a6b3cf8
PLUGIN_SOFTWAREUPDATE_ACCESS is no longer used
2017-11-28 16:49:22 +01:00
Gina Häußge
6b3d68f9aa
Backwards compatibility for user_permission
2017-11-28 16:25:03 +01:00
Gina Häußge
fcd34265c8
Fix empty active checkbox
2017-11-28 13:21:20 +01:00
Gina Häußge
088b0cf1e7
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/util/flask.py
2017-11-28 13:19:54 +01:00
Gina Häußge
e6061fdd9c
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/util/flask.py
2017-11-28 13:08:34 +01:00
Gina Häußge
cf8a30cc4e
Reordering: Put settings related things together
2017-11-28 12:20:14 +01:00
Gina Häußge
6ba1e10b8b
Fix API key generation
2017-11-28 12:14:30 +01:00
Gina Häußge
2a96864c07
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/templates/dialogs/settings/accesscontrol.jinja2
2017-11-28 12:07:39 +01:00
Gina Häußge
48fceac0fe
Merge branch 'maintenance' into devel
2017-11-27 17:27:30 +01:00
Gina Häußge
ad246deb9e
Merge branch 'maintenance' into devel
2017-11-24 14:05:41 +01:00
Gina Häußge
c2509fad9c
Add icon to add printer profile/add cura profile
...
To consolidate with access control buttons.
2017-11-23 19:09:45 +01:00
Gina Häußge
eeb216e08d
More work on the permissions
...
* permissions and groups are now optional fields on users - if not
provided, will be set to empty permissions and default groups
* description is now an optional field on groups - if not provided
will be set to an empty string
* Made the group manager a bit leaner
* Removed code duplication for group and user editor
* OctoPrint.access.groups.update now takes an object just like the add
method - this enables to do partial updates and also is way easier
to remember
* Some bugs fixed
* Added wrappers for the old add/remove/changeRolesForUser methods -
just a simple rename is not correct since those took roles, not
permissions. Needs some tests, haven't been able to do that yet.
2017-11-23 19:09:14 +01:00
Gina Häußge
2761608c1e
Refactor user list to better fit user details
...
Also fix default group pre fill in user add dialog.
2017-11-23 15:59:04 +01:00
Gina Häußge
27536388f2
Refactor access control settings
...
Also fix some issues that were left over from/introduced by earlier
commits.
2017-11-22 19:28:07 +01:00
Gina Häußge
21c8bd54f5
__hash__ and __eq__ for OctoPrintPermission
2017-11-22 15:31:17 +01:00
Gina Häußge
fa5619fad7
Fix group permission propagation
...
Also refactored some bits
2017-11-22 15:28:58 +01:00
Gina Häußge
022c59a094
Fix unit tests again
2017-11-21 14:36:30 +01:00
Gina Häußge
bc8abdfc62
First throw at securing the socket & propagating user changes
...
The socket client will now authenticate with the socket after login,
using the session id from the login response. This will associate the
session with the socket server side. Any messages to the client apart
from "connected" and "reauthRequired", will be checked against the
STATUS permission and not be sent if that is missing from the current
user (which might also be the anonymous/guest user).
A logout of the session and any changes of the user or their permissions
will trigger trigger a reauthRequired message to be sent over the
socket, instructing the client to either perform a new passive login to
update the user's permissions, or to logout altogether (server side
logout or user removal).
Known bugs:
* Changing group permissions sometimes doesn't propagate through -
seems to be caused by the code not properly finding the login
sessions of affected users based on the changed group. Not yet sure
what's up there.
Open points:
* Deactivation of a user's account also needs to invalidate the
session
* Session timeout needs to be evaluated (currently 30min, unclear if
that suffices)
* possibly more I can't think of right now
2017-11-21 14:24:17 +01:00
Gina Häußge
d8cffc4b22
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/announcements/static/js/announcements.js
# src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/server/__init__.py
# src/octoprint/static/css/octoprint.css
# src/octoprint/static/js/app/viewmodels/connection.js
# src/octoprint/static/js/app/viewmodels/control.js
# src/octoprint/static/js/app/viewmodels/files.js
# src/octoprint/static/js/app/viewmodels/gcode.js
# src/octoprint/static/js/app/viewmodels/log.js
# src/octoprint/static/js/app/viewmodels/loginstate.js
# src/octoprint/static/js/app/viewmodels/navigation.js
# src/octoprint/static/js/app/viewmodels/printerprofiles.js
# src/octoprint/static/js/app/viewmodels/printerstate.js
# src/octoprint/static/js/app/viewmodels/settings.js
# src/octoprint/static/js/app/viewmodels/temperature.js
# src/octoprint/static/js/app/viewmodels/terminal.js
# src/octoprint/static/js/app/viewmodels/timelapse.js
# src/octoprint/static/js/app/viewmodels/users.js
2017-11-21 11:42:28 +01:00
Gina Häußge
312760f86a
flask.ext.babel => flask_babel
2017-11-21 11:33:55 +01:00
Gina Häußge
5ea22c602c
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/announcements/__init__.py
# src/octoprint/server/util/tornado.py
2017-11-21 10:30:38 +01:00
Gina Häußge
7540aa6b72
No longer require API keys for anonymous access
...
Old behaviour of insisting on API key presence for each and every
request can however still be enforced.
Making this part of the granular permission system epic since only then
will people be able to more finely tune what data will be available for
anonymous users.
Solves #1681
2017-11-17 15:57:45 +01:00
Gina Häußge
84cc89832b
Docs: Adapt web ui startup diagram
2017-11-14 17:36:53 +01:00
Gina Häußge
9554079e4b
Slight refactoring of CoreUI init order
...
We must not fire the StartupComplete callback before we've signaled that
we are done loading the UI in the UiStateViewModel.
2017-11-14 16:49:43 +01:00
Gina Häußge
481faf8da1
Fix graph initialization
...
We only want to initialize it when the graph is actually visible. For
this we hook into tab changes, user changes and StartupComplete. That
will hopefully ensure that once it DOES become visible it will get
initialized, but not before.
2017-11-14 16:49:42 +01:00
Gina Häußge
fd6c7cd48f
Make needlogin only become true after loading finishes
2017-11-14 16:49:36 +01:00
Gina Häußge
9441ea572d
Return anonymous user object on API
...
If we have logged out or passive login failed, that way we'll still get
the needs of the anonymous user. One less GET request to make from the
frontend which also means one less potential race condition during
initialization.
2017-11-14 16:45:35 +01:00
Gina Häußge
0414e4a6a6
Fix a binding
2017-11-14 16:42:40 +01:00
Gina Häußge
158f14df89
Fix alignment of default marker in group list
...
Also slightly change wording of columns ("Group" is kinda redundant)
2017-11-09 19:07:58 +01:00
Gina Häußge
93a80fe256
Have group actions mirror group flags in UI
...
Disable edit action for unchangeable groups, disable remove action for
unremovable groups.
2017-11-09 19:02:47 +01:00
Gina Häußge
398e10588c
Slight changes in permission resolution
...
* We now use a set key (derived from name used for setting the
attribute on Permissions or provided in permission definition from
plugins)
* We do a multipass resolution of combined plugin permissions (the
former approach was limited to two passes)
We also do logging on the permissions added through plugins. Also did
some code deduplication while at it.
2017-11-09 18:54:51 +01:00
Gina Häußge
6d1f610085
Full page loading and login screens
2017-11-09 14:14:13 +01:00
Gina Häußge
bd95dad85e
Move permissions into JS init script & socket
...
No need for an AJAX request that might produce a race condition.
2017-11-09 12:08:03 +01:00
Gina Häußge
bf8301bd6a
Fix CombinedPermission creation from plugins
2017-11-09 11:41:58 +01:00
Gina Häußge
231006ab26
Fix ApiUser creation for key
2017-11-09 11:18:12 +01:00
Gina Häußge
744f4d0f42
Require CONNECTION permission for connection panel
2017-11-08 16:24:59 +01:00
Gina Häußge
ad269751b8
Require PRINT permission for print/pause/cancel
2017-11-08 16:22:12 +01:00
Gina Häußge
4c77f07bc9
Default guest permissions mirror prior versions
2017-11-08 16:18:14 +01:00
Gina Häußge
e974cb8ec5
Refactored (Permissions|Group|User)Manager
...
* Removed PermissionsManager and merged functionality of that into
Permissions class
* Decoupled GroupManager from UserManager
* Renamed some things for less redundancy
* Removed unused YAML conversion methods
* Stricter differentiation between Manager parent class and concrete
implementations
* Marked broken tests as skipped and broken, separated them further
and added some
2017-11-08 15:59:31 +01:00
Gina Häußge
48c02e1018
Backwards compatibility for user.roles
...
Also includes not throwing that data away in users.yaml - we don't want
to prevent people from switching back and forth between 1.3.x and 1.4.0
during the RC period (or ourselves during development ;)), so we need to
stay backwards compatible here at least until 1.5.0.
2017-11-07 12:56:29 +01:00
Gina Häußge
f398ee90b0
Fix a merge error
...
And while at it also introduce groups and permission manager factories,
just like for the user manager.
2017-11-02 17:59:54 +01:00
Gina Häußge
23fcdc0365
Refactor SettingsPlugin.on_settings_load
...
Use current_user.has_permission instead of current_user.is_admin.
2017-11-02 16:38:27 +01:00
Gina Häußge
e91da1cd8d
include_doc => includedoc
2017-11-02 15:02:25 +01:00
Gina Häußge
4e0d3725cb
Refactor someName => some_name in access classes
2017-11-02 14:30:35 +01:00
Gina Häußge
f45cb1560f
Fix SessionUserTestCase
2017-11-02 14:14:57 +01:00
Gina Häußge
7214b9f2c2
Fix (dis)connect button
2017-11-02 12:48:48 +01:00
Gina Häußge
37990996b7
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/util/flask.py
2017-11-02 11:12:22 +01:00
Marc Hannappel
024b58097e
Check the connection sidebar a litte bit more, if the Connection permission is not granted, but the status permission is, one will be able to view the current settings, but not change them.
2017-11-02 09:23:07 +01:00
Marc Hannappel
2cc1fe7fe2
Fix a merge mistake
2017-11-02 09:21:23 +01:00
Marc Hannappel
e0cd48df92
Fix a wrong _.all to _.any
2017-11-02 09:21:00 +01:00
Marc Hannappel
d45d2f5123
Merge branch 'maintenance' of github.com:foosel/OctoPrint into dev/permission
2017-11-02 08:33:32 +01:00
Marc Hannappel
eb5e2c94a3
Fix a misalignment problem with the temperature graph
2017-10-27 15:19:41 +02:00
Marc Hannappel
ced74f5b45
Some minor fixes
2017-10-27 15:18:51 +02:00
Marc Hannappel
01e557a689
Merge branch 'maintenance' of github.com:foosel/OctoPrint into dev/permission
2017-10-27 14:24:30 +02:00
Gina Häußge
b8b01558ce
Merge branch 'maintenance' into devel
2017-10-27 14:24:21 +02:00
Marc Hannappel
08c90e0909
Merge branch 'maintenance' of github.com:foosel/OctoPrint into dev/permission
2017-10-27 09:11:26 +02:00
Marc Hannappel
052408982a
Revert "Some Changed to the temperature.js file"
...
This reverts commit ce2463588d .
2017-10-25 15:11:53 +02:00
Marc Hannappel
68c57cc4eb
Merge branch 'maintenance' of github.com:foosel/OctoPrint into dev/permission
2017-10-25 14:43:38 +02:00
Marc Hannappel
9eb4f3f843
Forgot to remove <<<<<< HEAD
2017-10-25 11:22:30 +02:00
Marc Hannappel
4ad7b38648
Changed a few == to === in temperature.js
2017-10-25 11:20:37 +02:00
Marc Hannappel
ce2463588d
Some Changed to the temperature.js file
2017-10-25 11:17:51 +02:00
Marc Hannappel
9804e3eca0
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-10-25 11:10:58 +02:00
Gina Häußge
e9fb3a3ebb
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/util/__init__.py
2017-10-25 09:32:38 +02:00
Marc Hannappel
b65b97870f
Remove a unnecessary function of the new permission system
2017-10-25 09:13:07 +02:00
Marc Hannappel
0c243e0dc2
Changed a few == to ===
2017-10-25 09:12:24 +02:00
Marc Hannappel
d88b1fbec0
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-10-25 09:11:13 +02:00
Marc Hannappel
0781cb1d41
Add a confirmation dialog to the delete request of a group.
2017-10-23 11:11:47 +02:00
Marc Hannappel
eb2ed341a2
Fixeda bug where the group description was not sent to the server side, which caused an exception while creating a group.
2017-10-23 11:11:06 +02:00
Marc Hannappel
e5f6824304
Redo the Migration part from old role system to new permission System
2017-10-23 11:08:32 +02:00
Gina Häußge
880124bbe0
Merge branch 'maintenance' into devel
2017-10-17 11:07:02 +02:00
Gina Häußge
b719fd1c15
Merge branch 'maintenance' into devel
2017-10-16 16:21:14 +02:00
Gina Häußge
464b431741
Merge branch 'maintenance' into devel
2017-10-11 16:28:12 +02:00
Marc Hannappel
ff0e4f50da
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-10-11 10:19:18 +02:00
Gina Häußge
8ba23e84ca
Merge branch 'maintenance' into devel
2017-10-04 15:04:30 +02:00
Marc Hannappel
4cbddf66d3
Merge branch 'maintenance' of github.com:foosel/OctoPrint into dev/permission
2017-10-04 09:55:51 +02:00
Marc Hannappel
9ba9c3b9c5
Merge devel into dev/Permissions with some additions
...
- Fixed a forgoten refactoring inside the first run wizard
- Added possibility to also throw a warning when deprecated JavaScript Variables are used
- Therefore made the whole deprecation logging a bit more generic, so it will be easy to reuse it in the future
- Reintroduces the "deprecated" USER_ARRAY as a non deprecated array, so we have a central place where we can adjust the permissions for users (only valid for first run and creating the user group on migration)
- User group will be created on first run now and when migrating from an older version
2017-09-28 09:00:05 +02:00
Gina Häußge
adbcc07bae
Merge branch 'maintenance' into devel
2017-08-25 14:57:00 +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
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
Marc Hannappel
fbd8a97ffd
Merge branch 'devel' of github:foosel/OctoPrint into dev/permission
2017-07-17 09:02:32 +02:00
Gina Häußge
4147ffa503
Merge branch 'maintenance' into devel
2017-07-14 11:29:49 +02:00
Marc Hannappel
be2ef79686
Fix OctoPrintJsonEncoder to properly work with wrapt, additionally fix a wrong Permission name and combine 2 lines of code
2017-07-10 08:33:28 +02:00
Marc Hannappel
120406d115
Merge branch 'devel' of github:foosel/OctoPrint into dev/permission
2017-07-05 11:44:24 +02:00
Marc Hannappel
d72ae6102b
Added missing files/folders
2017-07-05 10:07:20 +02:00
Marc Hannappel
4adfad8708
Added custom attribute permission_test for template.sidebar and template.tab this shall be used to set the visibility permission/s, therefore added a tabs.js file (name can still change, but I don't find a better name right now) and fixes a few brackets
2017-07-05 10:02:24 +02:00
Gina Häußge
2e6d65378f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/util/flask.py
# src/octoprint/static/js/app/main.js
# src/octoprint/users.py
2017-07-05 09:30:00 +02:00
Marc Hannappel
4ec1a9af39
Refactor a huge amount of code thanks to design failure, also add some comments and make things more translatable
2017-07-05 08:16:31 +02:00
Marc Hannappel
1109bd35e7
Replace a few leftovers of isUser with new permissions, also fix a few permission checks
2017-07-05 08:01:11 +02:00
Gina Häußge
24dc12023b
Merge branch 'maintenance' into devel
2017-06-13 16:01:36 +02:00
Marc Hannappel
f53be57f0d
Added User wrapper, this makes sure we stay backwards compatible
2017-06-09 09:31:50 +02:00
Marc Hannappel
9db4559b0c
User dict's get method, Renamed GroupCantbeChanged to GroupCantBeChanged, some smaller styling fixes
2017-06-09 09:28:03 +02:00
Marc Hannappel
23a249ca0f
Fix headers, as mentioned in the comments
2017-06-09 09:24:59 +02:00
Gina Häußge
3171958a8c
Merge branch 'maintenance' into devel
2017-06-02 16:36:08 +02:00
Marc Hannappel
422f1b2b5e
Combine user, permissions and group tests as access test, Fix a problem with GroupsCantbeChanged
2017-06-02 11:23:44 +02:00
Gina Häußge
fed3ec9616
Merge branch 'maintenance' into devel
2017-06-01 16:12:53 +02:00
Gina Häußge
751867d5b8
Merge branch 'maintenance' into devel
2017-05-31 16:58:56 +02:00
Mark Walker
c4fcc59efd
Fix typo: TRANFERING_FILE
2017-05-30 00:29:30 -07:00
Gina Häußge
528bbba6ed
Merge branch 'maintenance' into devel
2017-05-29 13:46:59 +02:00
Gina Häußge
905c05ba06
Merge branch 'maintenance' into devel
2017-05-24 18:06:43 +02:00
Gina Häußge
fcacf28c45
Merge branch 'maintenance' into devel
2017-05-24 14:53:40 +02:00
Gina Häußge
3e5d82c665
Merge branch 'maintenance' into devel
2017-05-19 18:18:59 +02:00
Marc Hannappel
1bea7654b8
More work on the tests
2017-05-19 11:46:06 +02:00
Marc Hannappel
38ea778ccf
Fix warning_factory warning
2017-05-19 11:45:45 +02:00
Marc Hannappel
31f300f6d8
Use lower case names for method names split with an underscore
2017-05-19 11:44:54 +02:00
Marc Hannappel
4e8bb688aa
Some adjustments in the users.py, remove sorting of permissions and groups, user has_permission instead of is_admin, not p in s -> p not in s
2017-05-19 09:49:38 +02:00
Marc Hannappel
563d623278
Use dict() instead of [] for the permissionManager, raise Exception if someone tries to add an already known permission
2017-05-19 09:47:21 +02:00
Marc Hannappel
24790e8b2a
Use gettext for Permission description. Fix __repr__ for Permissions, Group and User.
2017-05-19 09:45:11 +02:00
Marc Hannappel
58806dee68
Adjusted the permissionslist from [] to None, Fixed some styling
2017-05-19 08:59:35 +02:00
Gina Häußge
4fda12b512
Merge branch 'maintenance' into devel
2017-05-17 14:00:17 +02:00
Gina Häußge
0c62465a22
Merge branch 'maintenance' into devel
2017-05-17 12:22:19 +02:00
Marc Hannappel
785b0caaf2
Fixed a few left overs of the old hasPermission check in the pluginmanager and softwareupdater
...
Fixed a few left overs from removing the groups and permissions enabled property
2017-05-12 08:46:35 +02:00
Gina Häußge
3d4c50d481
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/api/settings.py
2017-05-11 17:43:42 +02:00
Marc Hannappel
c0975ed15e
Started to adjust the tests to the new permission system
2017-05-10 13:56:09 +02:00
Marc Hannappel
ce6de6efa6
Moved users.py to new access package, add wrapper file users.py for backwards compatibility
...
Removed the Enabled stuff from Permissions and Groups, because both have an always on requirement
Fixed a wrong Permission
Moved the previously splitted javascript access client back into one file
2017-05-10 13:52:30 +02:00
Marc Hannappel
561c1fc338
Fixed the comment about rereference functions
2017-05-05 15:01:13 +02:00
Marc Hannappel
e94affe588
Refactored the way the permissions gets checked on the frontend, also made corresponding changes to the backend
2017-05-05 14:55:17 +02:00
Marc Hannappel
43e3648ba7
Fixed a few missing thing, Added a few Comments to some functions to explain their functionality
2017-05-05 14:53:07 +02:00
Marc Hannappel
63938c6fd3
Added migration steps from old permission system to new permission system
...
Combined users, permissions and groups as access.users, access.permissions and access.groups
Many refactorings inside the javascript part
Added general javascript deprecated function, logs a message to the javascript console
Adjusted the user add and edit modals to recenter themself when uncollapsing the groups and/or permissions sections
2017-05-03 11:21:43 +02:00
Marc Hannappel
9cab4d510a
WIP: More Refactorings
2017-04-18 16:37:45 +02:00
Marc Hannappel
41621826d8
WIP: More Refactorings
2017-04-12 10:41:43 +02:00
Marc Hannappel
2149030dbb
Added Function to register default permissions, WIP
2017-04-12 09:09:47 +02:00
Marc Hannappel
8c0bd7e5e3
Fix leftover merge conflict
2017-04-12 09:08:43 +02:00
Marc Hannappel
5283682c47
Readded somehow lost import requests
2017-04-12 08:37:38 +02:00
Marc Hannappel
b53d20d2ee
WIP: Refactored the groups and permissions into access
2017-04-12 08:34:06 +02:00
Marc Hannappel
ed6bdf97d1
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-04-12 08:33:27 +02:00
Marc Hannappel
93cfa564f7
WIP: Some more Refactorings
2017-04-12 08:21:06 +02:00
Marc Hannappel
579b8fce96
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-04-12 08:18:41 +02:00
Shawn Bruce
d1d9462423
Add octoprint.timelapse.capture.[pre/post] hooks ( #1854 )
...
* Add octoprint.timelapse.capture.pre and octoprint.timelapse.capture.post hooks
* Adjust underline length
2017-04-11 18:29:52 +02:00
Gina Häußge
299f9c4a26
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/pluginmanager/__init__.py
2017-04-04 15:28:28 +02:00
Gina Häußge
5c27e974fb
Merge branch 'maintenance' into devel
2017-03-19 10:53:58 +01:00
Gina Häußge
53bd4b1ea9
Merge branch 'maintenance' into devel
2017-03-16 18:10:38 +01:00
Gina Häußge
3d10fff7de
Merge branch 'maintenance' into devel
2017-03-13 17:48:49 +01:00
Gina Häußge
8107d65504
Merge branch 'maintenance' into devel
2017-03-09 18:44:54 +01:00
Gina Häußge
9a4cebfb61
Merge branch 'maintenance' into devel
2017-03-09 12:04:35 +01:00
Shawn Bruce
5c81833415
Only reset scroll position for settings content. ( Fixes #1812 )
2017-03-08 14:16:17 -05:00
Gina Häußge
d88ca50de0
Merge branch 'maintenance' into devel
2017-03-08 18:11:54 +01:00
Andy Werner
b75b53d05a
Fix an issue in user settings
...
* UserSettings: crashed if overwrite an existing key with primitive value by same key with complex value. Also reduced number of calls to user.get_setting()
* Updated tests
2017-03-07 10:35:33 +01:00
Marc Hannappel
c2cae5b2fc
Added ability to give a description to groups
2017-03-01 11:47:23 +01:00
Gina Häußge
30e962b447
Merge branch 'maintenance' into devel
2017-02-24 15:28:01 +01:00
Gina Häußge
f710bb535e
Merge branch 'devel' into pr/kevans91/dep-up
2017-02-21 16:41:02 +01:00
Gina Häußge
814b02900b
Fixed a test left-over
...
Thanks for the heads-up @kevans91
2017-02-21 16:39:51 +01:00
Gina Häußge
4958353335
Fix repr for User and SessionUser
2017-02-21 14:00:50 +01:00
Gina Häußge
9884c52c4e
Upgrade to current versions again
2017-02-21 13:23:52 +01:00
Gina Häußge
0cd4fc8655
Enable template auto reload by default
...
We have our own cache, and that would get confused by not
allowing a reload of the templates at runtime, which Flask 0.11+
will not allow anymore unless this setting is set to True.
2017-02-21 13:21:42 +01:00
Gina Häußge
5d07c5a0b2
Updated mirrored methods of custom tornado http server
...
Should now be up to date with stock implementation again.
2017-02-21 13:21:18 +01:00
Gina Häußge
cf20b3a3c3
flask.ext.foo => flask_foo for things new on devel
2017-02-21 13:19:44 +01:00
Gina Häußge
dbe4acd47d
flask.request.json => flask.request.get_json()
...
Old property is deprecated as of Flask 0.11
2017-02-21 13:18:59 +01:00
Gina Häußge
b7a0f5bee5
Compatibility layer for plugins depending on user.is_anonymous() etc
...
Logs a deprecation warning when any of the made-property fields is
accessed as a getter and return value. Implements __eq__, __ne__,
__bool__ and __nonzero__ to allow things like "user.is_anonymous ==
True" or "not user.is_anonymous" is used.
Careful with serialization to json, needs "bool(...)" wrapper to not
cause an exception (or inclusion in a custom serializer).
Affected fields:
* is_anonymous
* is_authenticated
* is_active
* is_user
* is_admin
To be removed again in OctoPrint 1.5.0
2017-02-21 12:24:21 +01:00
Gina Häußge
0adb62b485
Compatibility layer for plugins depending on flask.ext
...
Logs a deprecation warning when anything from flask.ext is accessed,
imports flask_<name> instead and returns it.
To be removed again in OctoPrint 1.5.0
2017-02-21 11:56:31 +01:00
Gina Häußge
a439608fe7
Merge pull request #1786 from ghulands/safari_fix
...
Issue #1780 : Safari Webcam Fix.
2017-02-21 09:17:05 +01:00
Greg Hulands
e82efd24d3
Issue #1780 : Safari Webcam Fix.
2017-02-20 11:02:07 -08:00
Gina Häußge
3d1f3ed068
Merge branch 'dep-up' of https://github.com/kevans91/OctoPrint into pr/kevans91/dep-up
2017-02-20 14:48:59 +01:00
Gina Häußge
bac972de53
Merge branch 'maintenance' into devel
2017-02-20 14:34:42 +01:00
Marc Hannappel
95310991b8
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-02-17 14:15:51 +01:00
Marc Hannappel
f60a759dca
Some Refactorings to the Granular Permission System
2017-02-17 13:57:02 +01:00
Gina Häußge
4f6f829dc3
Merge branch 'maintenance' into devel
2017-02-17 13:49:56 +01:00
Marc Hannappel
8962ebd175
More wor done on the Encoder/Decoder part, additionally cherry-picked the Update flask commit from @kevans91
2017-02-15 17:00:52 +01:00
Kyle Evans
218b3c87db
Cherry-picked
...
Update flask, flask-{login,principal,babel,assets} versions to the latest, flask.ext. => flask_
2017-02-15 16:47:58 +01:00
Marc Hannappel
c12a0f8cdf
Added OctoPrintJson Encoder and Decoder
2017-02-13 16:32:41 +01:00
Gina Häußge
4a41ccb4e6
Merge pull request #1768 from eyal0/same_device_view_model
...
add sameDevice to SlicingViewModel
2017-02-13 12:50:53 +01:00
Marc Hannappel
0d1f53d58d
Moved Yaml Representer and Constructors into src/octoprint/util/yaml.py
2017-02-13 11:56:24 +01:00
Eyal Soha
fea07917fa
add sameDevice to SlicingViewModel
2017-02-12 12:35:57 +02:00
Gina Häußge
003c2e0dca
Merge pull request #1748 from eyal0/add_same_device_to_slicing_api
...
Add sameDevice to api/slicing API
2017-02-08 11:49:52 +01:00
Eyal Soha
ce38ef6289
add same device to the slicing API
2017-02-02 10:47:41 +02:00
Gina Häußge
2457c58817
Merge branch 'maintenance' into devel
2017-01-25 12:55:29 +01:00
Gina Häußge
ab6dd66bad
Merge branch 'maintenance' into devel
2017-01-25 12:51:45 +01:00
Gina Häußge
d430fe35c5
Merge branch 'maintenance' into devel
2017-01-20 16:29:08 +01:00
Gina Häußge
9650c71155
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
2017-01-13 15:12:25 +01:00
Marc Hannappel
95da7551d2
Added the possibility to set default Groups and fixed a typo
2017-01-13 14:47:18 +01:00
Marc Hannappel
667473f90e
Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
2017-01-13 12:41:55 +01:00
Gina Häußge
cf9e17ebfd
Merge branch 'maintenance' into devel
2017-01-12 19:05:15 +01:00
Gina Häußge
ec55909305
Merge branch 'devel' of github.com:foosel/OctoPrint into devel
2017-01-11 12:17:12 +01:00
Gina Häußge
3e03f7c12a
Merge branch 'maintenance' into devel
2017-01-11 12:15:07 +01:00
Gina Häußge
edc2005b2c
Merge pull request #1703 from noahsmartin/nm/pollingComment
...
Changed old comments to not claim a method does more than it really does
2017-01-11 11:17:49 +01:00
Noah Martin
72f3fa6eda
Changed old comments to not claim a method does more than it really does, because comments are there to clear up confusion, might as well start here.
...
poll_temperature and poll_sd_status are called by a RepeatedTimer now, the methods don't re-enqueue themselves.
2017-01-10 23:36:55 -08:00
Gina Häußge
48c02c6f55
Merge pull request #1665 from jammi/ttySfix
...
Octoprint /dev/ttyS* addition
2017-01-09 17:10:32 +01:00
Gina Häußge
8b7643332b
Merge branch 'devel' of github.com:foosel/OctoPrint into devel
2017-01-09 16:38:44 +01:00
Kyle Evans
639619ff93
Partially revert 57de36a
2017-01-09 08:51:52 -06:00
Kyle Evans
0a08ef0ed4
Merge branch 'devel' into dep-up
2016-12-27 23:46:39 -06:00
Marc Hannappel
b3f35c579b
Little update to the active tab using hash from URL, forgot to add a check if the hash is valid, fixed this now
2016-12-21 10:56:11 +01:00
Marc Hannappel
bcb74d01b6
Added active tab using hash from URL feature, as requested in issue #203
2016-12-21 10:51:19 +01:00
Marc Hannappel
8a8b88af13
Fix folders doesn't get listed when performing a filtering in file section, issue #1667
2016-12-21 09:44:24 +01:00
Marc Hannappel
58ed405c88
Fix Files not shown when user logged in, if guest user had no permission to view files
2016-12-21 09:33:23 +01:00
Marc Hannappel
a3d4f80599
Add GuestUser to handle guest permission, fix some missing braces
2016-12-21 09:06:18 +01:00
Marc Hannappel
7bfd55f3f0
Fix admin und guest group
2016-12-21 09:02:38 +01:00
Juha-Jarmo Heinonen
153b5de1d4
Added /dev/ttyS* into serial ports to find.
...
OctoPrint was unable to find any of the serial ports on my CubieBoard, which are all ttyS devices; this fixes that issue.
2016-12-19 20:49:23 +02:00
Marc Hannappel
932b7a094d
Added manually edited octopint.css file
2016-12-19 11:15:35 +01:00
Marc Hannappel
47b8c661e7
Changed a few more isAdmin to new Permissions.SETTINGS, started implementing the Groupsystem, refactored a few things with the Permissions
2016-12-16 14:27:41 +01:00
Marc Hannappel
3bb0f51d08
Ugly fix for Temperature graph not displayed correctly
2016-12-12 13:41:56 +01:00
Marc Hannappel
32fc5ccd3e
Fix a bug with gcode_viewer, make loginState.hasPermission commands pureComputedObservables
2016-12-12 13:40:48 +01:00
Marc Hannappel
4f3cba32da
Initial work for Granular Permission System, actually only per User Permission, Group system still needs to be programmed
2016-12-12 09:17:47 +01:00
Kyle Evans
b2c60ba884
Rebase to devel now that 1.3.0 has released
2016-12-08 08:56:40 -06:00
Kyle Evans
537ed2d11f
Rebase to devel
2016-11-27 00:32:38 -06:00
Kyle Evans
f318cc5e28
Update 970880d, flask.ext.login -> flask_login
2016-11-10 13:12:02 -06:00
Kyle Evans
1001cc607e
Merge branch 'devel' into dep-up
2016-11-10 12:37:21 -06:00
Kyle Evans
35d480bc48
Clean up bogus whitespace changes/inconsistency
2016-10-25 21:36:47 -05:00
Kyle Evans
37f51ef983
Botched the initial Flask-Login update -- is_active(), is_authenticated(), and is_anonymous() got converted into properties, so we should do the same
2016-10-07 11:37:36 -05:00
Kyle Evans
943d7ce31a
Update Click
2016-10-06 21:35:43 -05:00
Kyle Evans
bc54ddf19f
Update psutil
2016-10-06 21:25:48 -05:00
Kyle Evans
7d091d18ee
Update semantic_version
2016-10-06 21:19:54 -05:00
Kyle Evans
599e24634c
Update requests
2016-10-06 21:16:31 -05:00
Kyle Evans
e998edd083
Update pkginfo
2016-10-06 21:12:46 -05:00
Kyle Evans
e15ca55558
Update rsa
2016-10-06 21:11:33 -05:00
Kyle Evans
23a2801284
Update pyserial
2016-10-06 21:08:45 -05:00
Kyle Evans
9a6da3f46f
Update PyYAML
2016-10-06 21:03:29 -05:00
Kyle Evans
fbb881bb42
Update Tornado, adapt CustomHTTPServer to new usage
2016-10-06 21:00:14 -05:00
Kyle Evans
87d65c150b
Update werkzeug
2016-10-06 20:30:12 -05:00
Kyle Evans
bb2fcd5b00
Update flask, flask-{login,principal,babel,assets} versions to the latest, flask.ext. => flask_
2016-10-06 20:25:04 -05:00