def update(self): section = get_section_name() base_url = abs_url(getSite(), self.request) if not section: section = 'business' self.action = urljoin(base_url, section) + '/search'
def update(self): section = get_section_name() base_url = abs_url(getSite(), self.request) subsection = "" if not section: section = "business" if section == "business": subsection = get_subsection_name(self.request) if subsection in ALLOWED_SEARCH_SUBSECTIONS: subsection = "/" + subsection else: subsection = "" self.action = urljoin(base_url, section) + subsection + "/search"