Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a1b07e46f | ||
|
|
670524c0f2 | ||
|
|
59cbfadf89 | ||
|
|
c935a29b8e | ||
|
|
5c098cebe9 | ||
|
|
4b12b0e6f0 | ||
|
|
118eaa66b4 | ||
|
|
3c094f5585 | ||
|
|
686eda3536 | ||
|
|
56e81d5ea0 | ||
|
|
270cb4f9de | ||
|
|
4455535423 | ||
|
|
2885244988 | ||
|
|
d60c5a631a | ||
|
|
444fe44d48 | ||
|
|
7d5474cb3d | ||
|
|
945825f03f | ||
|
|
1bd19e3fd5 | ||
|
|
fd8a72a77a | ||
|
|
dfe7dc7a78 | ||
|
|
16086741b8 | ||
|
|
3bbd3f7a3e | ||
|
|
995c8aa0c6 | ||
|
|
e3999ca5bb | ||
|
|
4a9e573107 | ||
|
|
58dc515990 | ||
|
|
d3e92db8a8 | ||
|
|
450d5bb9ae | ||
|
|
5444c46777 | ||
|
|
e451493c0d | ||
|
|
2a247672a6 | ||
|
|
1ae017954b | ||
|
|
1b04c08a1a | ||
|
|
ddfd333b62 | ||
|
|
2087c3da54 |
No files matched your search
@@ -1,19 +1,18 @@
|
||||
name: "Issue Automation"
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited, closed, reopened]
|
||||
types: [opened, edited, closed, reopened, labeled, unlabeled]
|
||||
|
||||
jobs:
|
||||
issue-automation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v2
|
||||
- uses: actions/github-script@v5
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
let labels = [];
|
||||
let labels = context.payload.issue.labels.map(label => label.name);
|
||||
let setLabels = false;
|
||||
context.payload.issue.labels.forEach(label => { labels.push(label.name) });
|
||||
|
||||
switch (context.payload.action) {
|
||||
|
||||
@@ -55,7 +54,7 @@ jobs:
|
||||
}
|
||||
|
||||
if (setLabels) {
|
||||
github.issues.setLabels({
|
||||
github.rest.issues.setLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
@@ -67,3 +66,96 @@ jobs:
|
||||
# if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited')
|
||||
# with:
|
||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/github-script@v5
|
||||
env:
|
||||
REMINDER: >
|
||||
Hi @${{ github.event.issue.user.login }}!
|
||||
|
||||
|
||||
It looks like you didn't upload a [system info bundle](https://community.octoprint.org/t/29887) as requested by the template.
|
||||
A bundle is required to further process your issue. It contains important logs and
|
||||
system information to be able to put your issue into context and give pointers as to
|
||||
what has happened.
|
||||
|
||||
|
||||
Please **edit your original post above** and upload **a bundle zip file**. Actually upload the file please and
|
||||
do not paste some link to a cloud provider, we want to have everything in one place here. Also do
|
||||
not unpack, repack or otherwise modify the bundle or its name, share it **exactly** like you get it from OctoPrint.
|
||||
|
||||
|
||||
Without the availability of a bundle, your issue will have to be closed.
|
||||
|
||||
|
||||
Thank you for your collaboration.
|
||||
THANKYOU: >
|
||||
Thank you @${{ github.event.issue.user.login }} for adding a bundle! Now this can actually get looked at.
|
||||
with:
|
||||
script: |
|
||||
const { REMINDER, THANKYOU } = process.env;
|
||||
const bundleRegex = /\[(octoprint-systeminfo-\d{14}\.zip)\]\(([^)]+)\)/g;
|
||||
const marker = "<!-- check_for_bundle -->";
|
||||
|
||||
const issueLabels = await github.rest.issues.listLabelsOnIssue({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number
|
||||
});
|
||||
let labels = issueLabels.data.map(label => label.name);
|
||||
|
||||
const comments = await github.rest.issues.listComments({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number,
|
||||
})
|
||||
const comment = comments.data.find(c => c.user.login === "github-actions[bot]" && c.body.includes(marker));
|
||||
if (comment) {
|
||||
console.log("Found comment, id=" + comment.id);
|
||||
} else {
|
||||
console.log("No comment found");
|
||||
}
|
||||
|
||||
if (!labels.includes("triage") || labels.includes("approved")) {
|
||||
console.log("Deleting comment if it exists...");
|
||||
if (comment) {
|
||||
await github.rest.issues.deleteComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
comment_id: comment.id,
|
||||
})
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const found = !!context.payload.issue.body.match(bundleRegex);
|
||||
|
||||
if (!found) {
|
||||
console.log("No bundle found, posting/updating reminder");
|
||||
const text = REMINDER + "\n" + marker;
|
||||
if (!comment) {
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number,
|
||||
body: text
|
||||
});
|
||||
} else if (comment.body !== text) {
|
||||
await github.rest.issues.updateComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
comment_id: comment.id,
|
||||
body: text
|
||||
});
|
||||
}
|
||||
} else if (found && comment) {
|
||||
console.log("Bundle found, saying thanks");
|
||||
const text = REMINDER.split("\n\n").map(line => `~~${line.trim()}~~`).join("\n\n") + "\n\n" + THANKYOU + "\n" + marker;
|
||||
if (comment.body !== text) {
|
||||
await github.rest.issues.updateComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
comment_id: comment.id,
|
||||
body: text
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -12,13 +12,18 @@ jobs:
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
- uses: actions/github-script@v2
|
||||
- uses: actions/github-script@v5
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
let labels = [];
|
||||
// fetch a fresh set of labels, they might have changed earlier
|
||||
const issueLabels = await github.rest.issues.listLabelsOnIssue({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number
|
||||
});
|
||||
let labels = issueLabels.data.map(label => label.name);
|
||||
let setLabels = false;
|
||||
context.payload.pull_request.labels.forEach(label => { labels.push(label.name) });
|
||||
|
||||
let target = context.payload.pull_request.base.ref;
|
||||
if (["maintenance", "devel", "staging/maintenance", "staging/devel", "master"].includes(target)) {
|
||||
@@ -27,7 +32,7 @@ jobs:
|
||||
}
|
||||
|
||||
if (setLabels) {
|
||||
github.issues.setLabels({
|
||||
github.rest.issues.setLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
||||
+3
-3
@@ -24,10 +24,10 @@ maintenance 1.7.0 07c4630d126617c2ae98a9c23ad49facf7bf0bbd pep440-dev
|
||||
fix/.* 1.7.0 07c4630d126617c2ae98a9c23ad49facf7bf0bbd pep440-dev
|
||||
improve/.* 1.7.0 07c4630d126617c2ae98a9c23ad49facf7bf0bbd pep440-dev
|
||||
|
||||
# staging/bugfix is the branch for preparation of the 1.6.1 bugfix release
|
||||
# staging/bugfix is the branch for preparation of the 1.7.3 bugfix release
|
||||
# so are any bug/... branches
|
||||
staging/bugfix 1.6.1 29484fb2926960279e62881d6ee073c374a2a5fe pep440-dev
|
||||
bug/.* 1.6.1 29484fb2926960279e62881d6ee073c374a2a5fe pep440-dev
|
||||
staging/bugfix 1.7.3 d60c5a631aedf2328e4492125d9b86f595e43d00 pep440-dev
|
||||
bug/.* 1.7.3 d60c5a631aedf2328e4492125d9b86f595e43d00 pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.7.0rc4
|
||||
# so is regressionfix/...
|
||||
|
||||
@@ -149,6 +149,7 @@ date of first contribution):
|
||||
* [Ian Wilt](https://github.com/ianwiltdotcom)
|
||||
* [Ben Sycha](https://github.com/Sycha)
|
||||
* [Bryan Kenote](https://github.com/bryankenote)
|
||||
* [Quinn Damerell](https://github.com/QuinnDamerell)
|
||||
|
||||
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
||||
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
||||
|
||||
+6
-4
@@ -14,9 +14,7 @@ thanks to everyone who contributed!
|
||||
* BigTreeTech
|
||||
* Boris Hussein
|
||||
* Brad Jackson
|
||||
* BRANDON ROBERTSON
|
||||
* BuildBee
|
||||
* Chris Lynch
|
||||
* Christian Petropolis
|
||||
* Christian Wolf
|
||||
* Christian Würthner
|
||||
@@ -25,6 +23,7 @@ thanks to everyone who contributed!
|
||||
* David Bounds
|
||||
* DeltaMaker 3D Printers
|
||||
* Dennis Breining
|
||||
* Douglas Floyd
|
||||
* Dr. Frank Wester
|
||||
* Eric Betts
|
||||
* Ernesto Martinez
|
||||
@@ -33,6 +32,7 @@ thanks to everyone who contributed!
|
||||
* Greg Holloway
|
||||
* Hog Duske
|
||||
* Itay Shem-tov
|
||||
* James Mackay
|
||||
* Jeff Moe
|
||||
* Jeremy Cole
|
||||
* Joshua Wills
|
||||
@@ -58,7 +58,6 @@ thanks to everyone who contributed!
|
||||
* Nat Friedman
|
||||
* Neil R. Goldberg
|
||||
* Norman Jaffe
|
||||
* Ory Weaver
|
||||
* Peopoly
|
||||
* Pete Barnwell
|
||||
* Raise3D
|
||||
@@ -71,11 +70,14 @@ thanks to everyone who contributed!
|
||||
* Ronald Griehsler
|
||||
* Sebastien Andrivet
|
||||
* Stefan Krister
|
||||
* Steve Dougherty
|
||||
* Steve Thompson
|
||||
* Sven Mueller
|
||||
* TH3D
|
||||
* The Spaghetti Detective
|
||||
* TJ Horner
|
||||
* Ulderico Cirello
|
||||
* Ulrich Kempken
|
||||
* Yehuda Katz
|
||||
|
||||
and 2247 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
||||
and 2285 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
||||
@@ -226,6 +226,10 @@ For timelapse type ``zchange``.
|
||||
- 1
|
||||
- float
|
||||
- Size of retraction Z hop to detect and ignore for z-based snapshots
|
||||
* - ``minDelay``
|
||||
- 1
|
||||
- int
|
||||
- Snapshots will be rate limited against this interval, to prevent performance issues with vase mode/continuous z prints
|
||||
|
||||
.. _sec-api-timelapse-datamodel-config-timed:
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ Open the Git Bash you just installed and in that:
|
||||
cd /c/Devel
|
||||
git clone https://github.com/OctoPrint/OctoPrint.git
|
||||
cd OctoPrint
|
||||
virtualenv --python=C:\Python3\python.exe venv3
|
||||
virtualenv --python=C:/Python3/python.exe venv3
|
||||
source ./venv3/Scripts/activate
|
||||
pip install --upgrade pip
|
||||
python -m pip install -e '.[develop,plugins,docs]'
|
||||
@@ -207,7 +207,7 @@ Then:
|
||||
.. code-block:: none
|
||||
|
||||
cd /c/Devel/OctoPrint
|
||||
virtualenv --python=C:\Python27\python.exe venv2
|
||||
virtualenv --python=C:/Python27/python.exe venv2
|
||||
source ./venv2/Scripts/activate
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e '.[develop,plugins]'
|
||||
|
||||
@@ -184,6 +184,7 @@ further down there's also a dedicated list of steps for OctoPi specifically.
|
||||
autologinAs: "<yourUsername>"
|
||||
localNetworks:
|
||||
- "127.0.0.0/8"
|
||||
- "::1/128"
|
||||
- "<yourAddressRange>"
|
||||
|
||||
4. Restart OctoPrint, check that everything works.
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Do not edit this file with editors other than diagrams.net -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="background-color: rgb(255, 255, 255);" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="800px" height="436px" viewBox="-0.5 -0.5 800 436" content="<mxfile host="app.diagrams.net" modified="2021-11-30T12:48:38.412Z" agent="5.0 (Windows)" version="15.8.7" etag="dRCYf0ldIAGVQo3_ZfcA" type="google"><diagram id="KSxbcLmsFqmVZw95xxym" name="Page-1">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</diagram></mxfile>"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-dae8fc-1-7ea6e0-1-s-0"><stop offset="0%" style="stop-color: rgb(218, 232, 252); stop-opacity: 1;"/><stop offset="100%" style="stop-color: rgb(126, 166, 224); stop-opacity: 1;"/></linearGradient><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><path d="M 464 140 L 464 335 L 434 335 L 434 388.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 434 393.88 L 430.5 386.88 L 434 388.63 L 437.5 386.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><ellipse cx="434" cy="25" rx="11" ry="11" fill="#000000" stroke="#000000" pointer-events="all"/><path d="M 434 40 L 434 77.76" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 429.5 69.88 L 434 78.88 L 438.5 69.88" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 56px; margin-left: 435px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); background-color: #ffffff; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">load</div></div></div></foreignObject><text x="435" y="59" fill=Line truncated
|
||||
|
After Width: | Height: | Size: 23 KiB |
@@ -39,6 +39,6 @@ Some plugin types require a reload of the frontend or a restart of OctoPrint for
|
||||
can recognize such plugins by their implementations implementing :class:`~octoprint.plugin.ReloadNeedingPlugin` or
|
||||
:class:`~octoprint.plugin.RestartNeedingPlugin` or providing handlers for one of the hooks marked correspondingly.
|
||||
|
||||
.. image:: ../images/plugins_lifecycle.png
|
||||
.. image:: ../images/plugins_lifecycle.svg
|
||||
:align: center
|
||||
:alt: The lifecycle of OctoPrint plugins.
|
||||
@@ -26,13 +26,12 @@ INSTALL_REQUIRES = [
|
||||
# additional OctoPrint plugins that are maintained on a different release cycle
|
||||
"OctoPrint-FileCheck>=2021.2.23",
|
||||
"OctoPrint-FirmwareCheck>=2021.10.11",
|
||||
"OctoPrint-PiSupport>=2021.8.2",
|
||||
"OctoPrint-PiSupport>=2021.10.28",
|
||||
# the following dependencies are non trivial to update since later versions
|
||||
# introduce backwards incompatible changes that might affect plugins, or due to
|
||||
# other observed problems
|
||||
"markupsafe>=1.1,<2.0", # Jinja dependency, newer versions require Python 3
|
||||
"markdown>=3.1,<3.2", # newer versions require Python 3
|
||||
"regex!=2018.11.6", # avoid broken 2018.11.6. See #2874
|
||||
"wrapt>=1.12.1,<1.13", # newer versions fail to build on OctoPi 0.15
|
||||
# anything below this should be checked on releases for new versions
|
||||
"flask>=1.1.4,<2", # newer versions require Python 3
|
||||
@@ -79,6 +78,7 @@ INSTALL_REQUIRES_PYTHON2 = [
|
||||
"colorlog<5", # newer versions require Python 3
|
||||
# vendor bundled dependencies
|
||||
"unidecode<1.3", # dependency of awesome-slugify, newer versions require Python 3
|
||||
"regex<2022.1.18", # dependency of awesome-slugify, newer versions require Python 3
|
||||
]
|
||||
|
||||
# Python 3 specific requirements
|
||||
@@ -91,6 +91,7 @@ INSTALL_REQUIRES_PYTHON3 = [
|
||||
"colorlog>=5.0.1,<6",
|
||||
# vendor bundled dependencies
|
||||
"unidecode", # dependency of awesome-slugify, leave w/o range to not cause dependency hell w/ Octolapse deps
|
||||
"regex", # dependency of awesome-slugify
|
||||
]
|
||||
|
||||
# OSX specific requirements
|
||||
|
||||
@@ -850,11 +850,11 @@ class PluginManager(object):
|
||||
|
||||
processed_blacklist = []
|
||||
for entry in plugin_blacklist:
|
||||
if isinstance(entry, tuple):
|
||||
if isinstance(entry, (tuple, list)):
|
||||
key, version = entry
|
||||
try:
|
||||
processed_blacklist.append(
|
||||
(key, pkg_resources.Requirement.parse(version))
|
||||
(key, pkg_resources.Requirement.parse(key + version))
|
||||
)
|
||||
except Exception:
|
||||
self.logger.warning(
|
||||
@@ -1340,7 +1340,7 @@ class PluginManager(object):
|
||||
return entry_key == key and version in entry_version
|
||||
return False
|
||||
|
||||
return any(map(lambda entry: matches_plugin(entry), self.plugin_blacklist))
|
||||
return any(map(matches_plugin, self.plugin_blacklist))
|
||||
|
||||
def reload_plugins(
|
||||
self, startup=False, initialize_implementations=True, force_reload=None
|
||||
|
||||
@@ -21,10 +21,10 @@ from octoprint.util.version import (
|
||||
)
|
||||
|
||||
SENTRY_URL_SERVER = (
|
||||
"https://3d510fcb31be49c8a811639b7ed18377@o118517.ingest.sentry.io/1373987"
|
||||
"https://871751d3af18492bbfe9db952cb1929c@o118517.ingest.sentry.io/1373987"
|
||||
)
|
||||
SENTRY_URL_COREUI = (
|
||||
"https://c6ab43a97f224198ae62a6e11e253cf0@o118517.ingest.sentry.io/1374096"
|
||||
"https://1c7e28064b0646c3aa109793a49eea81@o118517.ingest.sentry.io/1374096"
|
||||
)
|
||||
|
||||
SETTINGS_DEFAULTS = {
|
||||
|
||||
@@ -50,7 +50,7 @@ $(function () {
|
||||
return !item.enabled;
|
||||
}
|
||||
},
|
||||
"popularity",
|
||||
"name",
|
||||
[],
|
||||
[
|
||||
["bundled", "3rdparty"],
|
||||
@@ -138,7 +138,7 @@ $(function () {
|
||||
return !plugin.abandoned;
|
||||
}
|
||||
},
|
||||
"title",
|
||||
"popularity",
|
||||
["filter_installed", "filter_incompatible"],
|
||||
[],
|
||||
0
|
||||
|
||||
@@ -37,6 +37,11 @@ from octoprint.server.util.flask import (
|
||||
from octoprint.settings import settings, valid_boolean_trues
|
||||
from octoprint.util import sv, time_this
|
||||
|
||||
try:
|
||||
from urllib.parse import quote as urlquote
|
||||
except ImportError:
|
||||
from urllib import quote as urlquote # noqa: F401
|
||||
|
||||
# ~~ GCODE file handling
|
||||
|
||||
_file_cache = {}
|
||||
@@ -448,7 +453,7 @@ def _getFileList(
|
||||
+ "downloads/files/"
|
||||
+ FileDestinations.LOCAL
|
||||
+ "/"
|
||||
+ file_or_folder["path"],
|
||||
+ urlquote(file_or_folder["path"]),
|
||||
}
|
||||
|
||||
result.append(file_or_folder)
|
||||
@@ -702,7 +707,7 @@ def uploadGcodeFile(target):
|
||||
+ "downloads/files/"
|
||||
+ FileDestinations.LOCAL
|
||||
+ "/"
|
||||
+ filename,
|
||||
+ urlquote(filename),
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1034,7 +1039,10 @@ def gcodeFileCommand(filename, target):
|
||||
abort(404, description="Unknown profile")
|
||||
|
||||
location = url_for(
|
||||
".readGcodeFile", target=target, filename=full_path, _external=True
|
||||
".readGcodeFile",
|
||||
target=target,
|
||||
filename=full_path,
|
||||
_external=True,
|
||||
)
|
||||
result = {
|
||||
"name": destination,
|
||||
@@ -1047,7 +1055,7 @@ def gcodeFileCommand(filename, target):
|
||||
+ "downloads/files/"
|
||||
+ target
|
||||
+ "/"
|
||||
+ full_path,
|
||||
+ urlquote(full_path),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1154,7 +1162,10 @@ def gcodeFileCommand(filename, target):
|
||||
fileManager.move_folder(target, filename, destination)
|
||||
|
||||
location = url_for(
|
||||
".readGcodeFile", target=target, filename=destination, _external=True
|
||||
".readGcodeFile",
|
||||
target=target,
|
||||
filename=destination,
|
||||
_external=True,
|
||||
)
|
||||
result = {
|
||||
"name": name,
|
||||
@@ -1168,7 +1179,7 @@ def gcodeFileCommand(filename, target):
|
||||
+ "downloads/files/"
|
||||
+ target
|
||||
+ "/"
|
||||
+ destination
|
||||
+ urlquote(destination)
|
||||
)
|
||||
|
||||
r = make_response(jsonify(result), 201)
|
||||
|
||||
@@ -24,6 +24,11 @@ from octoprint.server.util.flask import (
|
||||
)
|
||||
from octoprint.settings import settings, valid_boolean_trues
|
||||
|
||||
try:
|
||||
from urllib.parse import quote as urlquote
|
||||
except ImportError:
|
||||
from urllib import quote as urlquote # noqa: F401
|
||||
|
||||
_DATA_FORMAT_VERSION = "v2"
|
||||
|
||||
# ~~ timelapse handling
|
||||
@@ -140,7 +145,7 @@ def getTimelapseData():
|
||||
finished_list = []
|
||||
for f in files:
|
||||
output = dict(f)
|
||||
output["url"] = url_for("index") + "downloads/timelapse/" + f["name"]
|
||||
output["url"] = url_for("index") + "downloads/timelapse/" + urlquote(f["name"])
|
||||
finished_list.append(output)
|
||||
|
||||
result = {
|
||||
@@ -160,7 +165,7 @@ def getTimelapseData():
|
||||
@Permissions.TIMELAPSE_DOWNLOAD.require(403)
|
||||
def downloadTimelapse(filename):
|
||||
return redirect_to_tornado(
|
||||
request, url_for("index") + "downloads/timelapse/" + filename
|
||||
request, url_for("index") + "downloads/timelapse/" + urlquote(filename)
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ default_settings = {
|
||||
"port": None,
|
||||
"baudrate": None,
|
||||
"exclusive": True,
|
||||
"lowLatency": True,
|
||||
"lowLatency": False,
|
||||
"autoconnect": False,
|
||||
"log": False,
|
||||
"timeout": {
|
||||
|
||||
@@ -426,5 +426,11 @@
|
||||
});
|
||||
};
|
||||
|
||||
OctoPrintClient.escapePath = function (path) {
|
||||
return _.map(path.split("/"), function (p) {
|
||||
return encodeURIComponent(p);
|
||||
}).join("/");
|
||||
};
|
||||
|
||||
return OctoPrintClient;
|
||||
});
|
||||
@@ -14,19 +14,19 @@
|
||||
};
|
||||
|
||||
var resourceForLocation = function (location) {
|
||||
return url + "/" + location;
|
||||
return url + "/" + OctoPrintClient.escapePath(location);
|
||||
};
|
||||
|
||||
var downloadForLocation = function (location) {
|
||||
return downloadUrl + "/" + location;
|
||||
return downloadUrl + "/" + OctoPrintClient.escapePath(location);
|
||||
};
|
||||
|
||||
var downloadForEntry = function (location, filename) {
|
||||
return downloadForLocation(location) + "/" + filename;
|
||||
return downloadForLocation(location) + "/" + OctoPrintClient.escapePath(filename);
|
||||
};
|
||||
|
||||
var resourceForEntry = function (location, filename) {
|
||||
return resourceForLocation(location) + "/" + filename;
|
||||
return resourceForLocation(location) + "/" + OctoPrintClient.escapePath(filename);
|
||||
};
|
||||
|
||||
var preProcessList = function (response) {
|
||||
|
||||
@@ -11,15 +11,15 @@
|
||||
var bulkDownloadUrl = "downloads/timelapses";
|
||||
|
||||
var timelapseUrl = function (filename) {
|
||||
return url + "/" + filename;
|
||||
return url + "/" + OctoPrintClient.escapePath(filename);
|
||||
};
|
||||
|
||||
var timelapseDownloadUrl = function (filename) {
|
||||
return downloadUrl + "/" + filename;
|
||||
return downloadUrl + "/" + OctoPrintClient.escapePath(filename);
|
||||
};
|
||||
|
||||
var unrenderedTimelapseUrl = function (name) {
|
||||
return url + "/unrendered/" + name;
|
||||
return url + "/unrendered/" + OctoPrintClient.escapePath(name);
|
||||
};
|
||||
|
||||
var OctoPrintTimelapseClient = function (base) {
|
||||
|
||||
Reference in new issue
Block a user