Exemple #1
0
    def menuNavigation(self, controlID):

        from resources.lib.modules import menunav;

        RESULT_CODE = menunav.chooser(self.landing_page, self, CURRENT_WINDOW, controlID);

        if RESULT_CODE == LOGOUT_CODE:
            
            self.landing_page.result_code = LOGOUT_CODE;
            self.close();

        if RESULT_CODE == HOME_SCREEN_CODE:
            
            self.landing_page.result_code = HOME_SCREEN_CODE;
            self.close();   
    def menuNavigation(self, controlID):

        from resources.lib.modules import menunav

        try:

            RESULT_CODE = menunav.chooser(self.landing_page, self,
                                          CURRENT_WINDOW, controlID)

            if RESULT_CODE == LOGOUT_CODE:

                self.result_code = LOGOUT_CODE
                self.close()

            elif RESULT_CODE == HOME_SCREEN_CODE:
                self.result_code = REST_CODE

        except Exception as inst:
            self.logger.error(inst)