def Mf() : sedm = Sedm_po_Troici if sedm > 17 : sedm = 10 + sedm - 17 #30.09.2015 - зачала Мф взяты из 11-й седмицы print "SDT" + str(sedm) + " " + Dni[den_sedm] print base.Raspisanie_Triodi(2, sedm, den_sedm, Sedm_po_Troici)
def Lk(sedm_Tr, den_sedm): sedm = sedm_Tr + Sdvig_Luka if date >= Lk_Ots: sedm -= Lk_Ots_sdvig if Lk_Ots_sdvig == 5: #[30, 31, 17, 32, 33] if sedm == 29 or sedm == 30: sedm += 1 elif sedm == 31: sedm = 17 return base.Raspisanie_Triodi(3, sedm, den_sedm, sedm_Tr)
def Lk() : sedm = Sedm_po_Troici + sdvig_Luka if date >= Lk_Ots : sedm -= Lk_Ots_sdvig if Lk_Ots_sdvig == 5 : #[30, 31, 17, 32, 33] if sedm == 29 or sedm == 30 : sedm += 1 elif sedm == 31 : sedm = 17 print "SDT" + str(sedm) + " " + Dni[den_sedm] print base.Raspisanie_Triodi(3, sedm, den_sedm, Sedm_po_Troici)
def In() : print "SDP" + str(Sedm_po_Paskhe) + " " + Dni[den_sedm] print base.Raspisanie_Triodi(1, Sedm_po_Paskhe, den_sedm, Sedm_po_Troici)
def Tr() : sedm = (date - MrFr).days / 7 + 1 print "SDV" + str(sedm) + " " + Dni[den_sedm] print base.Raspisanie_Triodi(4, sedm, den_sedm, Sedm_po_Troici)
def In(sedm_Ps, den_sedm): return base.Raspisanie_Triodi(1, sedm_Ps, den_sedm, 0)
def Tr(sedm_Tr, den_sedm): sedm = (date - MrFr).days / 7 + 1 return base.Raspisanie_Triodi(4, sedm, den_sedm, sedm_Tr)
def Mf(sedm_Tr, den_sedm): sedm = sedm_Tr if sedm > 17: sedm = 10 + sedm - 17 #30.09.2015 - зачала Мф взяты из 11-й седмицы return base.Raspisanie_Triodi(2, sedm, den_sedm, sedm_Tr)