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
c04950f3
Commit
c04950f3
authored
Jun 10, 2013
by
Rob Gilson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #397 from Fumon/foo
Added printing flag to get_jobs command list
parents
91080d14
182854b6
Changes
1
Hide 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 @
c04950f3
...
@@ -354,7 +354,17 @@ class Prontserve(pronsole.pronsole, EventEmitter):
...
@@ -354,7 +354,17 @@ class Prontserve(pronsole.pronsole, EventEmitter):
self
.
jobs
.
update
(
int
(
job_id
),
kwargs
)
self
.
jobs
.
update
(
int
(
job_id
),
kwargs
)
def
do_get_jobs
(
self
):
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
):
def
run_print_queue_loop
(
self
):
# This is a polling work around to the current lack of events in printcore
# This is a polling work around to the current lack of events in printcore
...
@@ -469,6 +479,7 @@ class PrintJobQueue(EventEmitter):
...
@@ -469,6 +479,7 @@ class PrintJobQueue(EventEmitter):
return
dict
(
return
dict
(
id
=
job
[
"id"
],
id
=
job
[
"id"
],
file_name
=
job
[
"file_name"
],
file_name
=
job
[
"file_name"
],
printing
=
False
,
)
)
def
add
(
self
,
file_name
,
body
):
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