Gina Häußge
7317814ce0
📝 Document needed permissions & fix some stuff
2020-01-23 13:21:52 +01:00
Gina Häußge
7f2eb470e4
Merge branch 'maintenance' into devel
2019-11-08 14:52:20 +01:00
Gina Häußge
9c775bd899
🐛 Fix overzealous filtering of history entries
...
Closes #3309
2019-10-30 18:28:53 +01:00
Kelly Anderson
1c3e463ac6
fix RuntimeError: dictionary changed size during iteration
2019-06-22 18:11:36 -06: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
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
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
Matthias Urlichs
cf77053901
missing imports
2019-02-04 21:10:04 +01:00
Matthias Urlichs
e08dc0b5aa
missed importing "long" from past.builtins
2019-02-04 17:04:33 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +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
f3fdac7e5a
Use raw strings for all regexps.
...
No exceptions please.
2019-01-28 14:14:23 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +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
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
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
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
5a91b8db48
Some permission changes & fixes
2018-04-12 16:34:17 +02: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
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
00e6a3856f
Allow tagging of GCODE commands throughout their lifecycle
...
Commands injected/extended/rewritten through one of the phase hooks or
sent by a plugin through self._printer.commands will also be tagged with
"plugin:<plugin identifier>", allowing other code to detect these tags
and handle such commands differently.
That will be interesting for plugins that need to differentiate between
commands originating from the printed file vs the user vs the system vs
other plugins.
2018-02-16 18:41:17 +01: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
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
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
Gina Häußge
dc874d98ac
Merge branch 'dev/python3E' of https://github.com/ByReaL/OctoPrint into pr/ByReaL/dev/python3E
...
Conflicts:
src/octoprint/server/__init__.py
src/octoprint/users.py
src/octoprint/util/jinja.py
2016-07-15 12:32:24 +02:00
MirceaDan
a48241d45e
python3: iterators, bytes and next
...
iteritems got removed items is to be used for python 2 and 3
compatibility , it returns a view in python 3 and must be casted to a
list if the list is needed.
bytes form builtins
using builtin function next is the compatible way between python 2 and 3
2016-07-15 01:43:31 -07:00
MirceaDan
c33a9f9aa2
from __future__ import absolute_import, division, print_function
...
changed the behavior to import division and print to be consistent
across all app and similar with python 3.x
2016-07-15 00:16:58 -07:00
Gina Häußge
294203ffd5
Add absolute jog mode to printer API
2016-07-01 17:54:26 +02:00
Gina Häußge
93bbedae86
Only process bed temps & commands if printer profile has heated bed
...
Solves #1125
2015-11-30 11:11:35 +01:00
Dan Lipsitt
013d221398
BadRequest is actually in werkzeug.exceptions.
2015-04-23 13:17:39 -07:00
Dan Lipsitt
ca914bd419
Use BadRequest instead of JSONBadRequest.
...
JSONBadRequest is removed in Flask version 0.10. BadRequest is backwards
compatible with Flask 0.9.
2015-04-21 23:10:03 -07:00
Gina Häußge
9b3daeea01
Exception.message => str(Exception)
2015-03-26 12:04:05 +01:00
Gina Häußge
aecc7a4734
Added triggering GCODE scripts to the REST API and custom controls
2015-03-06 16:04:43 +01:00
Gina Häußge
edd560f5a4
Fixed a bug causing feed rate adjustment to not work while printing
2015-03-04 20:38:49 +01:00
Gina Häußge
333c9ba205
Refactoring of "printer" modules
...
- renamed methods from camelCase to snake_case
- renamed callback mathods from comm module from camelCase to snake_case
- extracted and documented public interface to be used by plugins
- extracted callback interface to be implemented by subscribed callbacks to printer
- moved standard implementation to custom package
- moved time estimation classes to custom package
2015-03-03 17:01:33 +01:00
Gina Häußge
0a92b340ac
Refactoring in octoprint.util
...
* Renamed a couple of camelCased methods to snake_case
* Moved to better location what didn't make sense in the common util module
2015-02-27 10:28:16 +01:00
Gina Häußge
4abcf1054b
Added controls for changing feed and flow rate factors to Controls tab
...
Closes #362
2015-02-22 21:20:56 +01:00
Gina Häußge
657629183b
Custom 400 response if requests that need json don't contain proper json
2015-01-22 17:59:31 +01:00
Gina Häußge
c9c4066331
Fixed a bunch of doc issues, updated /api/printer/command to have more meaningful error messages
2014-12-31 15:47:12 +01:00
Gina Häußge
b4af85f405
Finalizing upload streaming support
...
Major refactoring of octoprint.server.util (divided into smaller submodules), extended Tornado to allow for request-specific max content lengths, introduced settings parameters to configure maximum upload size, maximum request body size and file suffixes
See #455
2014-08-05 11:26:13 +02:00
Gina Häußge
f6e2a59008
Correctly handle GET requests on /api/printer/{tool|bed} when printer is not operational
...
Closes #515
2014-07-17 13:02:00 +02:00
Gina Häußge
522eb40808
Documented SockJS interface, deprecated /api/state
2014-06-08 16:52:28 +02:00
Gina Häußge
9ab4fa608a
Corrected typo for print bed command "offset", expected parameter is called "offset" not "offsets"
...
Compare #444
2014-04-18 14:03:38 +02:00
Gina Häußge
072079df05
Further work on the REST API, documented most of /api/printer and while at it also fixed #365
2014-03-24 18:27:43 +01:00
Gina Häußge
908d39ad39
Refining temperature control REST API, also added support for multi extrusion while at it
2014-01-01 02:39:35 +01:00
Gina Häußge
a0374cb4ea
Hopefully fixed the issue where the /printer/... part of the api wouldn't be loaded
...
I'm still not happy with that circular import stuff I'm currently doing... there must be a better way to better split stuff built with flask? To investigate...
2013-12-22 18:29:12 +01:00
Gina Häußge
538338abfe
More work on the API + documentation
...
Changed some endpoints again (removed "/control" path element) and made API spit out only raw data (e.g. seconds, millimeters, unix timestamps etc) instead of formatted versions. Modified frontend to take care of formatting this data itself.
2013-12-22 02:01:48 +01:00