Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
InSillyClo-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
InSillyClo
InSillyClo-web
Commits
33b15bae
Commit
33b15bae
authored
2 weeks ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
generic job update view
parent
bd6b3021
No related branches found
No related tags found
2 merge requests
!13
Edit view job
,
!7
Simulator
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/InSillyCloWeb/assemblies/urls.py
+1
-1
1 addition, 1 deletion
src/InSillyCloWeb/assemblies/urls.py
src/InSillyCloWeb/assemblies/views.py
+17
-4
17 additions, 4 deletions
src/InSillyCloWeb/assemblies/views.py
with
18 additions
and
5 deletions
src/InSillyCloWeb/assemblies/urls.py
+
1
−
1
View file @
33b15bae
...
...
@@ -68,7 +68,7 @@ urlpatterns = [
path
(
'
assembly-simulator/create/<str:step>/
'
,
simulator_wizard
,
name
=
'
simulator-create-step
'
),
path
(
'
assembly-simulator/create/
'
,
simulator_wizard
,
name
=
'
simulator-create
'
),
path
(
'
assembly-simulator/<slug:uuid>/
'
,
views
.
JobSimulatorResult
.
as_view
(),
name
=
'
simulator-detail
'
),
path
(
'
assembly-simulator
-job
/<slug:uuid>/pcr/
'
,
views
.
JobPCREdit
.
as_view
(),
name
=
'
simulator-pcr-edit
'
),
path
(
'
assembly-simulator/<slug:uuid>/pcr
-edit
/
'
,
views
.
JobPCREdit
.
as_view
(),
name
=
'
simulator-pcr-edit
'
),
path
(
'
assembly/<int:pk>/download/
'
,
views
.
AssemblyDetailDownloadView
.
as_view
(),
name
=
'
assembly-download
'
),
path
(
'
assembly/<int:pk>/delete/
'
,
views
.
AssemblyDeleteView
.
as_view
(),
name
=
'
assembly-delete
'
),
path
(
'
fragment
'
,
views
.
show_fragment
,
name
=
'
fragment
'
),
...
...
This diff is collapsed.
Click to expand it.
src/InSillyCloWeb/assemblies/views.py
+
17
−
4
View file @
33b15bae
import
traceback
from
abc
import
ABC
,
abstractmethod
from
io
import
BytesIO
from
typing
import
Tuple
...
...
@@ -116,14 +117,13 @@ class JobSimulatorResult(DetailView):
slug_url_kwarg
=
'
uuid
'
class
JobPCREdit
(
class
SimulatorJobEdit
(
ABC
,
UpdateView
,
):
model
=
models
.
SimulatorJob
form_class
=
forms
.
PCRModelForm
slug_field
=
'
uuid
'
slug_url_kwarg
=
'
uuid
'
success_url
=
reverse_lazy
(
"
assemblies:home
"
)
template_name
=
"
assemblies/form_host.html
"
def
form_valid
(
self
,
form
):
...
...
@@ -132,5 +132,18 @@ class JobPCREdit(
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
().
get_context_data
(
**
kwargs
)
context
[
"
title
"
]
=
_
(
"
PCR primers to use for gel simulation
"
)
context
[
"
title
"
]
=
self
.
get_title
(
)
return
context
@abstractmethod
def
get_title
(
self
):
pass
class
JobPCREdit
(
SimulatorJobEdit
,
):
form_class
=
forms
.
PCRModelForm
def
get_title
(
self
):
return
_
(
"
PCR primers to use for gel simulation
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment