Matthias Urlichs
e4d083028c
hashlib fix from razer
2019-01-28 07:50:54 +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
670ca15997
Merge remote-tracking branch 'origin/maintenance' into py23
2019-01-27 17:28:46 +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
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
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
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
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
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
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
4f58c64881
New asset type "clientjs" for client library bits
2018-09-29 15:00:27 +02: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
62120affae
PMGR: Finalize extraction of is_os_compatible into octoprint.util.platform
2018-08-17 14:13:01 +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
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
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
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
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
d9c6cca370
Anonymous usage tracking
2018-07-03 19:06:53 +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
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
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
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
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
7a037b9c66
Make sure to update data if current permissions change
2018-04-19 22:01:52 +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
Michael Gane
bb065828f2
pip install using --no-cache-dir for low memory devices
2018-04-03 10:51:52 +01:00
Gina Häußge
db14723ea2
Use regular scrollbars instead of slimscroll
...
See #2379
2018-03-26 15:17:17 +02: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
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
Gina Häußge
e0722e6c28
flask.ext.* => flask_*
...
And some refactoring in the server class
2018-03-12 16:39:35 +01:00
Gina Häußge
01d37fc9ee
PMGR: Reduce notification spam
2018-03-05 17:25:15 +01:00
Gina Häußge
40082456c1
Don't even import disabled plugins
...
We want to avoid disabled plugins interfering with our application
in any way at all.
Hence disabled plugins are now treated the same way as blacklisted ones.
The system will only create a dummy entry for them and not import them
at all. As a consequence, a restart of the platform will be necessary
for disabling plugins that were disabled.
The Plugin Manager has been adjusted accordingly.
Note that by no longer even importing the base file, plugin name,
version, description and other such metadata defined through control
properties won't be accessible.
Closes #2442
2018-02-23 19:05:34 +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
b36a776f51
Merge branch 'maintenance' into devel
2017-12-12 13:09:41 +01:00
Gina Häußge
8229842334
Revert "Some long overdue == vs === view model cleanup"
...
This reverts commit 8a977e8777 .
Was causing at least one regression, to be redone for 1.3.7
2017-12-12 10:09:27 +01:00
Gina Häußge
133a4658ee
Switch to https for (plugins.)octoprint.org
...
Also add utm tags to the two support-octoprint links so we have a chance
to see if anyone ever actually clicks on those.
2017-12-07 16:35:01 +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
ca7aa322c3
Some cleanup, refactoring & docs
2017-11-29 15:55:33 +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
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
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
8a977e8777
Some long overdue == vs === view model cleanup
2017-11-21 10:18:46 +01:00
Gina Häußge
65753a0539
Convert to new viewmodel declaration
...
We've been supporting the new object based view model declaration
format since 1.3.0, time to move the bundled view models towards
actually using it.
2017-11-21 10:17:52 +01:00
Gina Häußge
b2d70de144
Environment detection & logging on startup
...
Incl. OctoPi version & RPi model through bundled plugin that only
gets loaded if OctoPi is detected.
2017-11-10 17:32:59 +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
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