Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
182854b6
Commit
182854b6
authored
Jun 10, 2013
by
Geordie Bilkey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added printing flag to get_jobs command list
parent
91080d14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
prontserve.py
prontserve.py
+12
-1
No files found.
prontserve.py
View file @
182854b6
...
...
@@ -354,7 +354,17 @@ class Prontserve(pronsole.pronsole, EventEmitter):
self
.
jobs
.
update
(
int
(
job_id
),
kwargs
)
def
do_get_jobs
(
self
):
return
{
'jobs'
:
self
.
jobs
.
public_list
()}
jobexport
=
[]
if
self
.
current_job
!=
None
:
jobexport
.
append
(
dict
(
id
=
self
.
current_job
[
"id"
],
file_name
=
self
.
current_job
[
"file_name"
],
printing
=
True
)
)
jobexport
.
extend
(
self
.
jobs
.
public_list
())
return
{
'jobs'
:
jobexport
}
def
run_print_queue_loop
(
self
):
# This is a polling work around to the current lack of events in printcore
...
...
@@ -469,6 +479,7 @@ class PrintJobQueue(EventEmitter):
return
dict
(
id
=
job
[
"id"
],
file_name
=
job
[
"file_name"
],
printing
=
False
,
)
def
add
(
self
,
file_name
,
body
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment