def edit(self, view_path, source_path, deployment_path, RESPONSE=None): """ edit authors index rule """ SiteBaseResource.edit( self, view_path, source_path, deployment_path) if RESPONSE is not None: container = self.getParentNode() return RESPONSE.redirect("%s/manage_main"%container.absolute_url())
def edit(self, view_path, source_path, deployment_path, RESPONSE=None): """ edit template rule """ SiteBaseResource.edit( self, view_path, source_path, deployment_path) # assert valid data descriptors = self.getDescriptors() if RESPONSE is not None: container = self.getParentNode() return RESPONSE.redirect("%s/manage_main"%container.absolute_url())
def edit(self, view_path, source_path, deployment_path, RESPONSE=None): """ edit """ SiteBaseResource.edit( self, view_path, source_path, deployment_path) # test the regex for compilation validity re.compile(self.view_path) if RESPONSE is not None: return RESPONSE.redirect("%s/test_rule_results"%(self.absolute_url()))