1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
|
\hypertarget{namespacesrc_1_1db}{}\doxysection{Référence de l\textquotesingle{}espace de nommage src.\+db}
\label{namespacesrc_1_1db}\index{src.db@{src.db}}
\doxysubsection*{Fonctions}
\begin{DoxyCompactItemize}
\item
def \mbox{\hyperlink{namespacesrc_1_1db_a0df14ce45b703f8486dc9205ac9246ad}{open\+Db}} ()
\begin{DoxyCompactList}\small\item\em Ouverture de la base de données de l\textquotesingle{}application, et création si nécessaire. \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_ada90bce10163107c35dd61955edf9307}{check\+Version}} (major, minor)
\item
def \mbox{\hyperlink{namespacesrc_1_1db_a4cce1a7772d666bb9c52a2d4ba22c9cd}{has\+Student}} (student)
\begin{DoxyCompactList}\small\item\em vérifie qu\textquotesingle{}un étudiant est déjà connu \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_a708cc3325644f79a8da6817cf131e3e8}{knows\+Id}} (stickid, uuid, tattoo)
\begin{DoxyCompactList}\small\item\em dit si une clé U\+SB est déjà connue \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_a2734729596ad4aa825ed66b97ddd7209}{tattoo\+List}} ()
\begin{DoxyCompactList}\small\item\em Renvoie la liste des tatouages connus de la base de données. \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_a9afc0ee6dce3ce82783bb0aaa349532f}{read\+Student}} (stickid, uuid, tattoo)
\begin{DoxyCompactList}\small\item\em renvoie l\textquotesingle{}étudiant qui possède une clé U\+SB \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_a1a44074f833d8283643343b09cff02b6}{read\+Prefs}} ()
\begin{DoxyCompactList}\small\item\em renvoie les préférences de Scola\+Sync \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_ada6f363fccebc105cf7ca85bdb5eccdc}{set\+Wd}} (new\+Dir)
\begin{DoxyCompactList}\small\item\em définit le nouveau nom du répertoire de travail préféré. \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_ab88098a0a4df23901dffda6197968088}{write\+Student}} (stickid, uuid, tattoo, student)
\begin{DoxyCompactList}\small\item\em inscrit un étudiant comme propriétaire d\textquotesingle{}une clé U\+SB \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1db_a6628948dc0e29baf0d368288dbb676be}{write\+Prefs}} (prefs)
\begin{DoxyCompactList}\small\item\em inscrit les préférences \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
dictionary \mbox{\hyperlink{namespacesrc_1_1db_aa073cf63c80489da19924aaa911726f3}{licence}} = \{\}
\item
\mbox{\hyperlink{namespacesrc_1_1db_a11a7f300f3f10c0ab24cf7b95cc4e5b2}{database}} = None
\item
\mbox{\hyperlink{namespacesrc_1_1db_a23dd9ed4abbc2dcd952158347944fe39}{cursor}} = None
\end{DoxyCompactItemize}
\doxysubsection{Documentation des fonctions}
\mbox{\Hypertarget{namespacesrc_1_1db_ada90bce10163107c35dd61955edf9307}\label{namespacesrc_1_1db_ada90bce10163107c35dd61955edf9307}}
\index{src.db@{src.db}!checkVersion@{checkVersion}}
\index{checkVersion@{checkVersion}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{checkVersion()}{checkVersion()}}
{\footnotesize\ttfamily def src.\+db.\+check\+Version (\begin{DoxyParamCaption}\item[{}]{major, }\item[{}]{minor }\end{DoxyParamCaption})}
Définition à la ligne 54 du fichier db.\+py.
Voici le graphe des appelants de cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespacesrc_1_1db_ada90bce10163107c35dd61955edf9307_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespacesrc_1_1db_a4cce1a7772d666bb9c52a2d4ba22c9cd}\label{namespacesrc_1_1db_a4cce1a7772d666bb9c52a2d4ba22c9cd}}
\index{src.db@{src.db}!hasStudent@{hasStudent}}
\index{hasStudent@{hasStudent}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{hasStudent()}{hasStudent()}}
{\footnotesize\ttfamily def src.\+db.\+has\+Student (\begin{DoxyParamCaption}\item[{}]{student }\end{DoxyParamCaption})}
vérifie qu\textquotesingle{}un étudiant est déjà connu
\begin{DoxyParams}{Paramètres}
{\em student} & propriétaire du baladeur \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Renvoie}
True si le propriétaire existe déjà
\end{DoxyReturn}
Définition à la ligne 75 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_a708cc3325644f79a8da6817cf131e3e8}\label{namespacesrc_1_1db_a708cc3325644f79a8da6817cf131e3e8}}
\index{src.db@{src.db}!knowsId@{knowsId}}
\index{knowsId@{knowsId}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{knowsId()}{knowsId()}}
{\footnotesize\ttfamily def src.\+db.\+knows\+Id (\begin{DoxyParamCaption}\item[{}]{stickid, }\item[{}]{uuid, }\item[{}]{tattoo }\end{DoxyParamCaption})}
dit si une clé U\+SB est déjà connue
\begin{DoxyParams}{Paramètres}
{\em stickid} & un identifiant de baladeur \\
\hline
{\em uuid} & un identifiant de partition \\
\hline
{\em tattoo} & un tatouage de partition \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Renvoie}
un booléen vrai si la clé U\+SB est connue, faux sinon
\end{DoxyReturn}
Définition à la ligne 87 du fichier db.\+py.
Voici le graphe des appelants de cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=298pt]{namespacesrc_1_1db_a708cc3325644f79a8da6817cf131e3e8_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespacesrc_1_1db_a0df14ce45b703f8486dc9205ac9246ad}\label{namespacesrc_1_1db_a0df14ce45b703f8486dc9205ac9246ad}}
\index{src.db@{src.db}!openDb@{openDb}}
\index{openDb@{openDb}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{openDb()}{openDb()}}
{\footnotesize\ttfamily def src.\+db.\+open\+Db (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
Ouverture de la base de données de l\textquotesingle{}application, et création si nécessaire.
\begin{DoxyReturn}{Renvoie}
une instance de base de données sqlite3
\end{DoxyReturn}
Définition à la ligne 35 du fichier db.\+py.
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=298pt]{namespacesrc_1_1db_a0df14ce45b703f8486dc9205ac9246ad_cgraph}
\end{center}
\end{figure}
Voici le graphe des appelants de cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=283pt]{namespacesrc_1_1db_a0df14ce45b703f8486dc9205ac9246ad_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespacesrc_1_1db_a1a44074f833d8283643343b09cff02b6}\label{namespacesrc_1_1db_a1a44074f833d8283643343b09cff02b6}}
\index{src.db@{src.db}!readPrefs@{readPrefs}}
\index{readPrefs@{readPrefs}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{readPrefs()}{readPrefs()}}
{\footnotesize\ttfamily def src.\+db.\+read\+Prefs (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
renvoie les préférences de Scola\+Sync
\begin{DoxyReturn}{Renvoie}
un dictionnaire de préférences
\end{DoxyReturn}
Définition à la ligne 117 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_a9afc0ee6dce3ce82783bb0aaa349532f}\label{namespacesrc_1_1db_a9afc0ee6dce3ce82783bb0aaa349532f}}
\index{src.db@{src.db}!readStudent@{readStudent}}
\index{readStudent@{readStudent}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{readStudent()}{readStudent()}}
{\footnotesize\ttfamily def src.\+db.\+read\+Student (\begin{DoxyParamCaption}\item[{}]{stickid, }\item[{}]{uuid, }\item[{}]{tattoo }\end{DoxyParamCaption})}
renvoie l\textquotesingle{}étudiant qui possède une clé U\+SB
\begin{DoxyReturn}{Renvoie}
un nom d\textquotesingle{}étudiant ou None si la clé est inconnue
\end{DoxyReturn}
Définition à la ligne 104 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_ada6f363fccebc105cf7ca85bdb5eccdc}\label{namespacesrc_1_1db_ada6f363fccebc105cf7ca85bdb5eccdc}}
\index{src.db@{src.db}!setWd@{setWd}}
\index{setWd@{setWd}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{setWd()}{setWd()}}
{\footnotesize\ttfamily def src.\+db.\+set\+Wd (\begin{DoxyParamCaption}\item[{}]{new\+Dir }\end{DoxyParamCaption})}
définit le nouveau nom du répertoire de travail préféré.
Définition à la ligne 145 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_a2734729596ad4aa825ed66b97ddd7209}\label{namespacesrc_1_1db_a2734729596ad4aa825ed66b97ddd7209}}
\index{src.db@{src.db}!tattooList@{tattooList}}
\index{tattooList@{tattooList}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{tattooList()}{tattooList()}}
{\footnotesize\ttfamily def src.\+db.\+tattoo\+List (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
Renvoie la liste des tatouages connus de la base de données.
Définition à la ligne 95 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_a6628948dc0e29baf0d368288dbb676be}\label{namespacesrc_1_1db_a6628948dc0e29baf0d368288dbb676be}}
\index{src.db@{src.db}!writePrefs@{writePrefs}}
\index{writePrefs@{writePrefs}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{writePrefs()}{writePrefs()}}
{\footnotesize\ttfamily def src.\+db.\+write\+Prefs (\begin{DoxyParamCaption}\item[{}]{prefs }\end{DoxyParamCaption})}
inscrit les préférences
\begin{DoxyParams}{Paramètres}
{\em prefs} & un dictionnaire \{\char`\"{}checkable\char`\"{}\+: booléen toujours vrai, \char`\"{}workdir\char`\"{} \+: le répertoire préféré pour les fichiers de travail\} \\
\hline
\end{DoxyParams}
Définition à la ligne 169 du fichier db.\+py.
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespacesrc_1_1db_a6628948dc0e29baf0d368288dbb676be_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespacesrc_1_1db_ab88098a0a4df23901dffda6197968088}\label{namespacesrc_1_1db_ab88098a0a4df23901dffda6197968088}}
\index{src.db@{src.db}!writeStudent@{writeStudent}}
\index{writeStudent@{writeStudent}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{writeStudent()}{writeStudent()}}
{\footnotesize\ttfamily def src.\+db.\+write\+Student (\begin{DoxyParamCaption}\item[{}]{stickid, }\item[{}]{uuid, }\item[{}]{tattoo, }\item[{}]{student }\end{DoxyParamCaption})}
inscrit un étudiant comme propriétaire d\textquotesingle{}une clé U\+SB
\begin{DoxyParams}{Paramètres}
{\em student} & un nom d\textquotesingle{}étudiant \\
\hline
\end{DoxyParams}
Définition à la ligne 154 du fichier db.\+py.
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=298pt]{namespacesrc_1_1db_ab88098a0a4df23901dffda6197968088_cgraph}
\end{center}
\end{figure}
\doxysubsection{Documentation des variables}
\mbox{\Hypertarget{namespacesrc_1_1db_a23dd9ed4abbc2dcd952158347944fe39}\label{namespacesrc_1_1db_a23dd9ed4abbc2dcd952158347944fe39}}
\index{src.db@{src.db}!cursor@{cursor}}
\index{cursor@{cursor}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{cursor}{cursor}}
{\footnotesize\ttfamily src.\+db.\+cursor = None}
Définition à la ligne 29 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_a11a7f300f3f10c0ab24cf7b95cc4e5b2}\label{namespacesrc_1_1db_a11a7f300f3f10c0ab24cf7b95cc4e5b2}}
\index{src.db@{src.db}!database@{database}}
\index{database@{database}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{database}{database}}
{\footnotesize\ttfamily src.\+db.\+database = None}
Définition à la ligne 28 du fichier db.\+py.
\mbox{\Hypertarget{namespacesrc_1_1db_aa073cf63c80489da19924aaa911726f3}\label{namespacesrc_1_1db_aa073cf63c80489da19924aaa911726f3}}
\index{src.db@{src.db}!licence@{licence}}
\index{licence@{licence}!src.db@{src.db}}
\doxysubsubsection{\texorpdfstring{licence}{licence}}
{\footnotesize\ttfamily dictionary src.\+db.\+licence = \{\}}
Définition à la ligne 3 du fichier db.\+py.
|