447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
|
traceback.print_exc()
return "# erreur"
def _seekPpas (self, bPro, bFem, bPlur):
try:
if not bPro and self.sVerbAux == "avoir":
return self.dConj[":Q"][":m:s"]
if not bFem:
return self.dConj[":Q"][":f:s"] if bPlur and self.dConj[":Q"][":f:s"] else self.dConj[":Q"][":m:s"]
if not bPlur:
return self.dConj[":Q"][":m:p"] if self.dConj[":Q"][":m:p"] else self.dConj[":Q"][":m:s"]
return self.dConj[":Q"][":f:p"] if self.dConj[":Q"][":f:p"] else self.dConj[":Q"][":m:s"]
except KeyError:
traceback.print_exc()
return "# erreur"
def createConjTable (self, bPro=False, bNeg=False, bTpsCo=False, bInt=False, bFem=False):
"return a dictionary of all conjugations with titles, according to options (used to be displayed as is)"
dConjTable = {
|
|
>
>
|
|
|
|
|
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
|
traceback.print_exc()
return "# erreur"
def _seekPpas (self, bPro, bFem, bPlur):
try:
if not bPro and self.sVerbAux == "avoir":
return self.dConj[":Q"][":m:s"]
if bFem and bPlur:
return self.dConj[":Q"][":f:p"] or self.dConj[":Q"][":m:s"]
if bFem and not bPlur:
return self.dConj[":Q"][":f:s"] or self.dConj[":Q"][":m:s"]
if bPlur:
return self.dConj[":Q"][":m:p"] or self.dConj[":Q"][":m:s"]
return self.dConj[":Q"][":m:s"]
except KeyError:
traceback.print_exc()
return "# erreur"
def createConjTable (self, bPro=False, bNeg=False, bTpsCo=False, bInt=False, bFem=False):
"return a dictionary of all conjugations with titles, according to options (used to be displayed as is)"
dConjTable = {
|