Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
190e41cd
Commit
190e41cd
authored
Dec 08, 2020
by
Sylvain Coulange
Browse files
correctif bug dicoView()
parent
97a7eb01
Changes
2
Hide whitespace changes
Inline
Side-by-side
colorapp/textPhonographer.py
View file @
190e41cd
...
...
@@ -46,6 +46,10 @@ def getLenDic(dic):
lenDic
+=
1
return
lenDic
# pour requêtage depuis views.py (dicoView())
def
getLenDicFr
():
return
getLenDic
(
word2transFr
)
## FR
word2transFr
=
{}
# un mot → liste de trans possibles
with
open
(
dicFile
,
'r'
)
as
f
:
...
...
colorapp/views.py
View file @
190e41cd
...
...
@@ -135,7 +135,7 @@ def main0(request):
def
dicoView
(
request
):
data
=
Entree
()
data
.
update
=
updateTime
()
data
.
lenDic
=
txtphono
.
getLenDic
()
data
.
lenDic
=
txtphono
.
getLenDic
Fr
()
data
.
logStat
=
txtphono
.
getLogStat
()
return
render
(
request
,
'editDico.html'
,
{
'data'
:
data
})
...
...
Write
Preview
Supports
Markdown
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