Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
django-cas-server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Samir
django-cas-server
Commits
5e54ffcc
Commit
5e54ffcc
authored
Jun 07, 2015
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attributes joker
parent
6185ec52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cas_server/models.py
cas_server/models.py
+3
-3
No files found.
cas_server/models.py
View file @
5e54ffcc
...
@@ -80,10 +80,10 @@ class User(models.Model):
...
@@ -80,10 +80,10 @@ class User(models.Model):
)
)
service_attributs
=
{}
service_attributs
=
{}
for
(
key
,
value
)
in
self
.
attributs
.
items
():
for
(
key
,
value
)
in
self
.
attributs
.
items
():
if
key
in
attributs
:
if
key
in
attributs
or
'*'
in
attributs
:
if
key
in
replacements
:
if
key
in
replacements
:
value
=
re
.
sub
(
replacements
[
key
][
0
],
replacements
[
key
][
1
],
value
)
value
=
re
.
sub
(
replacements
[
key
][
0
],
replacements
[
key
][
1
],
value
)
service_attributs
[
attributs
[
key
]
]
=
value
service_attributs
[
attributs
.
get
(
key
,
key
)
]
=
value
ticket
=
ticket_class
.
objects
.
create
(
ticket
=
ticket_class
.
objects
.
create
(
user
=
self
,
user
=
self
,
attributs
=
service_attributs
,
attributs
=
service_attributs
,
...
@@ -221,7 +221,7 @@ class ReplaceAttributName(models.Model):
...
@@ -221,7 +221,7 @@ class ReplaceAttributName(models.Model):
name
=
models
.
CharField
(
name
=
models
.
CharField
(
max_length
=
255
,
max_length
=
255
,
verbose_name
=
_
(
u"name"
),
verbose_name
=
_
(
u"name"
),
help_text
=
_
(
u"name of an attribut to send to the service"
)
help_text
=
_
(
u"name of an attribut to send to the service
, use * for all attributes
"
)
)
)
replace
=
models
.
CharField
(
replace
=
models
.
CharField
(
max_length
=
255
,
max_length
=
255
,
...
...
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