コード例 #1
0
    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())
コード例 #2
0
    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())
コード例 #3
0
ファイル: skin.py プロジェクト: kapilt/Products.CMFDeployment
 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()))