def __init__(self): self.title = u"" self.firstname = u"Name" self.lastname = u"Lastname" self.photo = QUESTION_MARK() self.email = u"email" # dictionary of file. {att_name : att_value} self.custom_attributes = {} AbstractPersonalData.__init__(self)
def __init__(self): self.config.add_section(SECTION_PERSONAL) self.config.add_section(SECTION_CUSTOM) AbstractPersonalData.__init__(self)
def __init__(self, pseudo): self.config.add_section(SECTION_PERSONAL) self.config.set(SECTION_PERSONAL, "pseudo", pseudo.encode(self.encoding)) self.config.add_section(SECTION_CUSTOM) AbstractPersonalData.__init__(self)