Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenQuizz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Weber Rodolphe
OpenQuizz
Commits
e5ee0da7
Commit
e5ee0da7
authored
Sep 15, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout (non fini) de fonctions pour maj un xml moodle
parent
17461616
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
241 additions
and
7 deletions
+241
-7
app.py
app.py
+15
-0
contenu_dao.py
modele/contenu_dao.py
+226
-7
No files found.
app.py
View file @
e5ee0da7
...
@@ -672,6 +672,21 @@ class parser_contenu_xml(Resource):
...
@@ -672,6 +672,21 @@ class parser_contenu_xml(Resource):
return
ContenuDao
()
.
previsualiser_xml_moodle
(
id_contenu
[
"$oid"
]),
200
return
ContenuDao
()
.
previsualiser_xml_moodle
(
id_contenu
[
"$oid"
]),
200
@
contenus
.
route
(
"/modifierXML"
)
@
contenus
.
doc
(
params
=
{
'id_contenu'
:
"L'id du contenu à modifier"
})
@
contenus
.
doc
(
params
=
{
'elements_contenu'
:
"Le détail du contenu"
})
@
contenus
.
doc
(
desciption
=
"modifier un xml moodle"
)
class
modifier_xml
(
Resource
):
@
contenus
.
response
(
200
,
"contenu modifié"
)
def
patch
(
self
):
id_contenu
=
json
.
loads
(
request
.
json
[
'id_contenu'
])
elements_contenu
=
json
.
loads
(
request
.
json
[
'elements_contenu'
])
print
(
"elements_contenu : "
,
elements_contenu
)
ContenuDao
()
.
modifier_xml_moodle
(
id_contenu
[
"$oid"
],
elements_contenu
)
return
"contenu modifié"
,
200
en_cours
=
api
.
namespace
(
'en_cours'
,
description
=
'Entrées liées à la gestion des contenus en cours'
)
en_cours
=
api
.
namespace
(
'en_cours'
,
description
=
'Entrées liées à la gestion des contenus en cours'
)
...
...
modele/contenu_dao.py
View file @
e5ee0da7
This diff is collapsed.
Click to expand it.
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