def __repr__(self): ns = NS() ns.emails = ", ".join(self.emails) ns.parents_of = "Parents of " + ", ".join(self.children_ids) ns.homerooms = "(" + self._homeroom + ")" ns.family_id = self.family_id ns.ID = self.ID return ns("<MoodleParent {ID}: {parents_of} {homerooms}>")
def __repr__(self): ns = NS() ns.homerooms = " ".join(self.homeroom) ns.emails = ", ".join(self.emails) ns.parents_of = "Parents of " + ", ".join(self.children_ids) ns.family_id = self.family_id ns.ID = self.ID ns.homerooms = "(" + ", ".join(self.homeroom) + ")" ns.courses = "{} courses".format(len(self.courses)) ns.groups = "{} groups".format(len(self.groups)) return ns("<Parent {ID}: {parents_of} {homerooms}>")
def __repr__(self): ns = NS() ns.ID = self.ID ns.username = self.username ns.homeroom = self.homeroom #ns.firstrow = "+ " #ns.midrow = "\n| " #ns.lastrow="\n| " #ns.lastfirst = self.lastfirst #ns.email = self.email #ns.homeroom = self.homeroom #ns.teachers = ", ".join(self.teacher_names) #ns.courses = ", ".join(self.course_names) #ns.groups = ", ".join(self.group_names) #ns.cohorts = ", ".join(self.cohorts) return ns("<Student {ID}/{homeroom}: {username}>") #, {homeroom}{midrow}{lastfirst}") # \