Paul de Vries
f67da6507f
Fix typo and move prefix into function call
2016-02-18 21:55:22 +00:00
Paul de Vries
ef411298e2
Add ability to push only a function in the OCTOPRINT_VIEWMODELS array
...
Add more comments
Fine tweak code:
- Remove vanilla Object check with jQuery (lodash gives invalid result on arrays with isObject)
- Add function check on constructor
- Generate function name on anonymous functions
2016-02-18 21:27:36 +00:00
Gina Häußge
c82ec3d3af
Improved connecting phase
...
M110 is now sent every second until either a connection is established or the connection
attempt times out. That should prevent connection handshakes from failing due to
some initial garbage on the line that swallows an ok.
2016-02-17 11:33:49 +01:00
Paul de Vries
f5fbd773dc
1. Objectify the OCTOPRINT_VIEWMODEL pool
...
2. Add optional viewmodel(s) by pushing an extra array or by using object.optional
3. Add format option and return dependencies as object, by default it will return an array
2016-02-17 00:19:14 +00:00
Paul de Vries
fbbb5b4d7e
Simplefy debug message with lodash/underscore
2016-02-16 20:46:02 +00:00
Gina Häußge
5c06bd5036
Kill background tasks of virtual printer on disconnect
...
Otherwise there might be errors with wait-for-heatup or sd printing
situations where self.outgoing is gone suddenly.
2016-02-16 15:09:22 +01:00
Gina Häußge
21034b381c
Cancelling a print that is not ongoing doesn't make sense
2016-02-16 10:04:06 +01:00
Gina Häußge
beb5850361
Only try to record recovery data if a print was ongoing
2016-02-16 10:03:02 +01:00
Gina Häußge
1ea0cf9213
Always reset the job data on disconnect
...
If former state was "Printing", so far the full disconnect state handling
wasn't done properly.
2016-02-16 09:52:56 +01:00
Gina Häußge
4081a25f48
Merge branch 'fix/errorOnSdCardFail' into maintenance
2016-02-16 09:28:43 +01:00
Gina Häußge
49f4a0c5b0
line == "ok" => line.startswith("ok")
...
Fixes an issue introduced with M109 fix that causes
"SD card ok" not to be parsed correctly anymore.
2016-02-16 09:23:25 +01:00
Gina Häußge
d267a752cd
Capture NoSuchStorage error on SD card fails
...
We currently do not have a storage configured for SD card since
that hasn't yet been ported to the storage interface. So on an
SD card fail we need to capture that error when attempting to log
the print recovery data, or there will be issues processing
the cancel properly. A bit more of error handling is a good
idea here in any case too.
Fixes #1226
2016-02-16 09:13:22 +01:00
Gina Häußge
eb48a50139
Fixed wrong tracking of current tool for M109 Tn heat-ups
2016-02-15 19:44:21 +01:00
Gina Häußge
cb687f01f7
Merge branch 'maintenance' into devel
...
Conflicts:
src/octoprint/static/js/app/viewmodels/files.js
src/octoprint/util/pip.py
2016-02-15 10:01:02 +01:00
Gina Häußge
0a3dc4b354
Fixed a bug that prevented the "Upload to SD" button from working
...
Introduced with the bug fix for #1196
Closes #1224
2016-02-15 09:58:04 +01:00
Gina Häußge
eacd9f7b66
Always read all available lines from stdout and stderr
...
Should produce faster output.
2016-02-11 10:37:56 +01:00
Gina Häußge
b5f40cfd69
Always read all available lines from stdout and stderr
...
Should produce faster output.
2016-02-11 10:36:19 +01:00
Gina Häußge
f07e3d9f2d
Fixed output processing for pip processes
2016-02-11 09:55:44 +01:00
Gina Häußge
b2391322d4
Removed sudo stuff from plugin manager, don't display full pip command
2016-02-11 09:38:35 +01:00
Gina Häußge
98b512b32e
Correctly handle pip 1.1
2016-02-11 09:38:09 +01:00
Gina Häußge
e28ca60f21
Merge branch 'maintenance' into devel
...
Conflicts:
CHANGELOG.md
2016-02-10 16:46:56 +01:00
Gina Häußge
3fb9248d2a
More timelapse unit tests
2016-02-10 16:44:46 +01:00
Gina Häußge
742818c2ca
Delete unrendered legacy timelapses when encountering them
2016-02-10 14:34:33 +01:00
Gina Häußge
d4072a3afd
Updated translation files & german translation
2016-02-10 12:43:13 +01:00
geoporalis
ed82488c5b
typo fixed
...
(cherry picked from commit 4e91284 )
2016-02-10 10:15:41 +01:00
Gina Häußge
963f22db36
Merge pull request #1215 from geoporalis/typo
...
Typo in git_commit.py
2016-02-10 10:13:12 +01:00
Gina Häußge
5955d3d32e
Added estimates total time from gcode viewer to gcode viewer tab
...
Implements request in #1204
2016-02-10 09:58:40 +01:00
Gina Häußge
14da24413b
selef => self, setProgressBar => _setProgressBar
...
The one in which @foosel finally understands why the progress bar didn't
seem to work on devel anymore.
2016-02-10 08:45:57 +01:00
Gina Häußge
90353c6e7d
Merge branch 'improve/uploadFileFilter' into devel
...
Conflicts:
src/octoprint/server/views.py
2016-02-09 18:05:27 +01:00
Gina Häußge
682c3dd8e3
Limit file upload dialogs to supported file extensions
...
See #1196
2016-02-09 18:03:04 +01:00
Gina Häußge
71941f337d
Include cursor control characters in CSI ANSI regex pattern
2016-02-09 14:48:30 +01:00
Gina Häußge
910d965ede
Merge branch 'fix/stripAnsiFromPipOutput' into devel
...
Conflicts:
src/octoprint/util/pip.py
2016-02-09 14:39:34 +01:00
Gina Häußge
b347e96748
Pip 8 outputs ANSI codes which we don't want in our output
2016-02-09 12:54:59 +01:00
Gina Häußge
b51274c145
Merge branch 'fix/m28hiccup' into devel
2016-02-09 11:33:20 +01:00
Gina Häußge
8069d08d3b
Do not hiccup on manually sent M28 commands
...
In case of trying to switch to state printing with no selected file that
scenario is now caught by setting an internal manualStreaming flag.
That will stop the M105 polling until M29 is sent (through whatever
means).
Note that printing is not disabled... this is merely for testing stuff and
not encouraged to be used for actually streaming files to the printer,
use the built-in functionality for that!
2016-02-09 11:32:56 +01:00
geoporalis
4e9128454a
typo fixed
2016-02-09 09:47:49 +00:00
Gina Häußge
ae23f09edf
Merge branch 'maintenance' into devel
2016-02-09 10:46:14 +01:00
Gina Häußge
4b7552e56e
Fixed file manager unit tests, added tests for print recovery functionality
2016-02-09 10:45:54 +01:00
Gina Häußge
d54dcd1d8d
Merge branch 'maintenance' into devel
...
Conflicts:
src/octoprint/util/comm.py
2016-02-09 09:41:49 +01:00
Gina Häußge
c4a1ed2590
Merge branch 'maintenance' into fix/persistPrintRecoveryData
2016-02-08 19:28:40 +01:00
Gina Häußge
e443c7df2f
Use path in storage instead of full path for print recovery
2016-02-08 16:44:37 +01:00
Gina Häußge
b9372d7300
Fixed wrongly positioned parenthesis
...
Caused an internal server error if / was requested with a different default language than
english that was not available in the i18n bundles.
2016-02-08 13:04:02 +01:00
Gina Häußge
9e8b5312d5
Persist print recovery data on print failures
2016-02-08 12:47:13 +01:00
Gina Häußge
892ebf3979
Fixed something missed by refactoring due to different branch...
2016-02-08 11:30:48 +01:00
Gina Häußge
fd90326fba
Use [sys.executable, "-m", "pip"] for the CLI pip stuff too
2016-02-04 13:55:42 +01:00
Gina Häußge
7a7b0e7c68
Have the plugin manager use the LocalPipCaller
...
We don't need user-definable pip command paths here,
that will only lead to tears when the pip command belongs
to a wrong Python environment and nothing installs as
expected.
2016-02-04 13:55:10 +01:00
Gina Häußge
e68ec435ea
Made PipCaller compatible to pip 8.0.0
...
pip 8 doesn't output ANY of the generated stdout output from
setup.py anymore. So instead of transfering the info we need about
a pip environment on stdout, we now need a temporary folder.
Yay.
2016-02-04 13:54:03 +01:00
Gina Häußge
c3776106ec
Merge branch 'maintenance' into devel
2016-02-03 12:53:12 +01:00
Gina Häußge
f79d496c7c
Revert "Only trigger drag overlay for files, not texts"
...
This reverts commit 1e429606e1 .
Commit used functionality that currently is only available in
Chrome and maybe Opera. No alternative solution could be found
that works reliably across browsers.
2016-02-03 11:43:55 +01:00
Gina Häußge
6f0bfb38d7
Merge branch 'maintenance' into devel
...
Conflicts:
src/octoprint/static/css/octoprint.css
2016-02-03 09:16:20 +01:00