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
09259dcd
Commit
09259dcd
authored
May 07, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Impossibilité de modifier une version historique
parent
568b0c25
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
100 deletions
+117
-100
Main.py
Main.py
+3
-12
Menu.py
Menu.py
+63
-52
Utils.py
Utils.py
+50
-34
UtilsGit.py
UtilsGit.py
+0
-2
Contenu1
auteur_1/Contenu1
+1
-0
No files found.
Main.py
View file @
09259dcd
...
...
@@ -28,20 +28,11 @@ from Utils import Utils
# 2. Installer les outils mentionnés ci dessus \n
# 3. Modifier le chemin présent à la ligne 21 du fichier Utils.py (et le remplacer par le chemin ou vous avez cloné le dépôt git) \n
# 4. Lancer Main.py, soit directement à la main, soit via un IDE configuré pour ça (environnement virtual utilisable) \n
#
Menu()
Menu
()
Utils
.
initialise_mongo
()
contenus_autres
=
Utils
.
get_contenus
(
"Auteur 1"
,
False
)
for
elt
in
contenus_autres
:
print
(
"id : "
,
elt
[
"id"
],
"nom :"
,
elt
[
"fichier"
],
" - v"
,
elt
[
"versionEnCours"
][
"numero"
],
" - du"
,
elt
[
"versionEnCours"
][
"date"
])
print
(
" -------------------------------------------- "
)
contenus
=
Utils
.
get_contenus
(
"Auteur 1"
,
True
)
for
elt
in
contenus
:
print
(
"id : "
,
elt
[
"id"
],
"nom :"
,
elt
[
"fichier"
],
" - v"
,
elt
[
"versionEnCours"
][
"numero"
],
" - du"
,
elt
[
"versionEnCours"
][
"date"
])
#Utils.initialise_mongo()
#Utils.get_contenus_panier("Auteur 1")
# Utils.tout_peter()
...
...
Menu.py
View file @
09259dcd
This diff is collapsed.
Click to expand it.
Utils.py
View file @
09259dcd
This diff is collapsed.
Click to expand it.
UtilsGit.py
View file @
09259dcd
...
...
@@ -20,8 +20,6 @@ class UtilsGit:
def
commit
(
cheminFichier
,
nomFichier
,
texteCommit
):
repo
=
Repo
.
init
(
cheminFichier
)
print
(
"le richier à add est : "
,
cheminFichier
)
# Il faudra faire une extraction du nom du fichier a partir du chemin
repo
.
index
.
add
([
nomFichier
])
repo
.
index
.
commit
(
texteCommit
)
...
...
auteur_1/Contenu1
0 → 100644
View file @
09259dcd
Bonjour, je suis un contenu 1 dans sa version 1
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