⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Calebasse
All Projects
Produits Entr'ouvert
»
Calebasse
Overview
Activity
Roadmap
Issues
News
Documents
Wiki
Files
Repository
Download (307 Bytes)
Statistics
| Branch:
cv2
demo
master
new-features
regularisation
wip-Django1.7
| Tag:
1.0.0
1.0.1
1.0.99
1.1.0
1.1.1
1.1.2
cv2-1
cv2-2
v1.2.0
v1.2.99
| Revision:
calebasse
/
calebasse
/
dossiers
/
templatetags
/
dossiers.py
@ 7a2fc3bb
View
History
Annotate
from
django
import
template
register
=
template
.
Library
()
def
phone
(
value
):
result
=
""
if
len
(
value
)
==
10
:
for
i
in
range
(
2
,
11
,
2
):
result
+=
value
[
i
-
2
:
i
]
+
" "
result
=
result
[:
-
1
]
else
:
result
=
value
return
result
register
.
filter
(
'phone'
,
phone
)
« Previous
1
2
Next »
(2-2/2)
Loading...