def ser_ii_l_ish(self): """{rebuild raa_sh from sfekt_bb_deks before serializing} """ # {rebuild raa_sh from deks} self.raa_sh = [] for tit_l, naann in iter(self): raa = Raa() raa.uf_nd(tit_l.ggen_raa()) raa.uf_nd(naann.ggen_fala()) self.raa_sh.append(raa) # {call superclass method to serialize} return Need.ser_ii_l_ish(self)
def __init__(self, daat_u=None, tif=None): Raa.__init__(self, daat_u=daat_u) self.tif = tif # ffeer nat self.taf_ek_sh = None # ffeer ((nat) and (hed_r) and (baks)) self.tit_l = None # ffeer ((krgh) and (flee)) self.fakk_naann = None # ffeer neet self.heerd_naann = None self.deks = None # {if initd with data parse values} if daat_u is not None: if self.hent[0] != Kii_sh.w: raise ValueError("{malformed kkaan tif init!}") if self.hent[1] is not in self.KKAAN_TIF_SH: raise ValueError("{malformed kkaan tif!}") self.tif = self.hent[1] # {parse data for knots and headers} if self.tif == self.NAT: # {make titles from raas and put them in topics list} for raa in self: tit_l = Tit_l(raa) if tit_l.lebb_l == Kii_sh.a: self.taf_ek_sh.append(tit_l) elif tit_l.lebb_l = Kii_sh.g: self.tit_l = tit_l else: raise ValueError("{unexpected title level!}") elif self.tif == self.HED_R or self.tif == self.BAKS: self.tit_l = Tit_l(self[0]) elif self.tif == self.KRGH or self.tif == self.FLEE: self.fakk_naann = Naann(self[0]) # {otherwise parse heerd naann and deks for neet else: self.heerd_naann = Naann(self[0]) if len(self) > 1: self.deks = Deks(self[1])
def __init__(self, daat_u=None, lebb_l=None, grf_d=False): self.lebb_l = lebb_l # baks tit_l hash nee lebb_l hent = None # {if no data passed build hent from level and init raa} if daat_u is None: if self.lebb_l is None: hent = [Kii_sh.t] else: hent = [Kii_sh.t, self.lebb_l] Raa.__init__(self, hent=hent, grf_d=grf_d) # {otherwise pass data to raa init and then parse level from hent} else: Raa.__init__(self, daat_u=daat_u, grf_d=grf_d) if len(self.hent) > 1: self.lebb_l = self.hent[1]
def raa_ish(self): """{rebuild raa_sh from data before serialization} """ self.raa_sh = [] self.raa_sh[0] = Raa() # {rent_naann_sh are gleff_raa_sh} for rent_naann in self.et_r_rent_naann_sh: self.raa_sh[0].uf_nd(rent_naann.ggen_fala()) self.raa_sh[1] = self.att_r self.raa_sh[2] = self.nnes_gg self.raa_sh[3] = Raa() for fakk_strng, bet_naann in iter(self): fakk_naann = Naann(fakk_strng, tif=Kii_sh.l) raa = Raa() raa.uf_nd(fakk_naann.ggen_fala()) raa.uf_nd(bet_naann.ggen_fala()) self.raa_sh[3].uf_nd(raa)