total += r.montant_euros()
return total
+ def actif(self):
+ today = date.today()
+ return (self.date_debut is None or self.date_debut <= today) \
+ and (self.date_fin is None or self.date_fin >= today) \
+ and not (self.date_fin is None and self.date_debut is None)
+
class Dossier(Dossier_):
__doc__ = Dossier_.__doc__