repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #699 from JuanCanham/lint/cleanup-unused-imports
[mygpo.git]
/
mygpo
/
users
/
converters.py
blob
3c9917cbc383e837fa9865ce0bb9c16193a54d55
1
class
UsernameConverter
:
2
regex
=
r
"[\w.+-]+"
3
4
def
to_python
(
self
,
value
):
5
return
value
6
7
def
to_url
(
self
,
value
):
8
return
value
9
10
11
class
ClientUIDConverter
:
12
regex
=
r
"[\w.-]+"
13
14
def
to_python
(
self
,
value
):
15
return
value
16
17
def
to_url
(
self
,
value
):
18
return
value