Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
12cf400e
Commit
12cf400e
authored
Mar 28, 2018
by
Gabriel Detraz
Committed by
chirac
Mar 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shell -> ListShell
parent
746eef0f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
re2o/views.py
re2o/views.py
+3
-3
users/urls.py
users/urls.py
+2
-2
users/views.py
users/views.py
+3
-3
No files found.
re2o/views.py
View file @
12cf400e
...
...
@@ -65,7 +65,7 @@ HISTORY_BIND = {
'school'
:
users
.
models
.
School
,
'listright'
:
users
.
models
.
ListRight
,
'serviceuser'
:
users
.
models
.
ServiceUser
,
'shell'
:
users
.
models
.
ListShell
,
'
list
shell'
:
users
.
models
.
ListShell
,
},
'preferences'
:
{
'service'
:
preferences
.
models
.
Service
,
...
...
@@ -81,8 +81,8 @@ HISTORY_BIND = {
'port'
:
topologie
.
models
.
Port
,
'room'
:
topologie
.
models
.
Room
,
'stack'
:
topologie
.
models
.
Stack
,
'model
_
switch'
:
topologie
.
models
.
ModelSwitch
,
'constructor
_
switch'
:
topologie
.
models
.
ConstructorSwitch
,
'modelswitch'
:
topologie
.
models
.
ModelSwitch
,
'constructorswitch'
:
topologie
.
models
.
ConstructorSwitch
,
'accesspoint'
:
topologie
.
models
.
AccessPoint
,
},
'machines'
:
{
...
...
users/urls.py
View file @
12cf400e
...
...
@@ -82,12 +82,12 @@ urlpatterns = [
url
(
r
'^del_listright/$'
,
views
.
del_listright
,
name
=
'del-listright'
),
url
(
r
'^add_shell/$'
,
views
.
add_shell
,
name
=
'add-shell'
),
url
(
r
'^edit_shell/(?P<shellid>[0-9]+)$'
,
r
'^edit_shell/(?P<
list
shellid>[0-9]+)$'
,
views
.
edit_shell
,
name
=
'edit-shell'
),
url
(
r
'^del_shell/(?P<shellid>[0-9]+)$'
,
r
'^del_shell/(?P<
list
shellid>[0-9]+)$'
,
views
.
del_shell
,
name
=
'del-shell'
),
...
...
users/views.py
View file @
12cf400e
...
...
@@ -515,8 +515,8 @@ def add_shell(request):
@
login_required
@
can_edit
(
ListShell
)
def
edit_shell
(
request
,
shell_instance
,
shellid
):
""" Editer un shell à partir du shellid"""
def
edit_shell
(
request
,
shell_instance
,
list
shellid
):
""" Editer un shell à partir du
list
shellid"""
shell
=
ShellForm
(
request
.
POST
or
None
,
instance
=
shell_instance
)
if
shell
.
is_valid
():
with
transaction
.
atomic
(),
reversion
.
create_revision
():
...
...
@@ -532,7 +532,7 @@ def edit_shell(request, shell_instance, shellid):
@
login_required
@
can_delete
(
ListShell
)
def
del_shell
(
request
,
shell
,
shellid
):
def
del_shell
(
request
,
shell
,
list
shellid
):
"""Destruction d'un shell"""
if
request
.
method
==
"POST"
:
with
transaction
.
atomic
(),
reversion
.
create_revision
():
...
...
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