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