(self, resource_slug)
receives resource slug from transifex trimmed of version postfix and update to
        sheet name with module/form indexes as expected by HQ

        :param resource_slug: name like module_moduleUniqueID or form_formUniqueID
        :return: name like module1 or module1_form1
receives resource slug from transifex trimmed of version postfix and update to
        sheet name with module/form indexes as expected by HQ
receives resource slug from transifex trimmed of version postfix and update to sheet name with module / form indexes as expected by HQ
def _get_sheet_name_with_indexes(self, resource_slug):
        """
        receives resource slug from transifex trimmed of version postfix and update to
        sheet name with module/form indexes as expected by HQ

        :param resource_slug: name like module_moduleUniqueID or form_formUniqueID
        :return: name like module1 or module1_form1
        """
        if resource_slug == MODULES_AND_FORMS_SHEET_NAME:
            return resource_slug
        module_sheet_name_match = TRANSIFEX_MODULE_RESOURCE_NAME.match(resource_slug)
        if module_sheet_name_match:
            module_unique_id = module_sheet_name_match.groups()[0]
            module_index = self.get_app.get_module_index(module_unique_id) + 1
            return "menu%s" % module_index
        form_sheet_name_match = TRANSIFEX_FORM_RESOURCE_NAME.match(resource_slug)
        if form_sheet_name_match:
            form_unique_id = form_sheet_name_match.groups()[0]
            return self._generate_form_sheet_name(form_unique_id)
        raise Exception("Got unexpected sheet name %s" % resource_slug)
def _get_sheet_name_with_indexes ( self , resource_slug ) : if resource_slug == MODULES_AND_FORMS_SHEET_NAME : return resource_slug module_sheet_name_match = TRANSIFEX_MODULE_RESOURCE_NAME . match ( resource_slug ) if module_sheet_name_match : module_unique_id = module_sheet_name_match . groups ( ) [ 0 ] module_index = self . get_app . get_module_index ( module_unique_id ) + 1 return "menu%s" % module_index form_sheet_name_match = TRANSIFEX_FORM_RESOURCE_NAME . match ( resource_slug ) if form_sheet_name_match : form_unique_id = form_sheet_name_match . groups ( ) [ 0 ] return self . _generate_form_sheet_name ( form_unique_id ) raise Exception ( "Got unexpected sheet name %s" % resource_slug )