def formazione(self): return formazione_menu('formazione', self.me)
def aspirante(self): return formazione_menu('aspirante') if self.me and hasattr( self.me, 'aspirante') else self.formazione
def aspirante(self): return formazione_menu( 'aspirante') if self.is_aspirante else self.formazione
def menu_formazione(self): from formazione.menus import formazione_menu menu = list(formazione_menu('formazione')[0]) menu[0] = 'Formazione' return menu