Beispiel #1
0
    def wiki_page_version_deleted(self, page):
        """Called when a version of a page has been deleted.
        
        This basically takes the page version that was deleted and
        removes all relationships from the database mapping requirements
        to this version of the wiki page because the version of the wiki
        page no longer exists.
        """
        
        refs = RequirementCacheSystem(self.env).parse_data_for_req_references(page.text)

        if refs:
            for (component, fp, object) in refs:
                req_wiki_cache = RequirementWikiCache(self.env, component, fp, object, page.name, page.version)
                if (req_wiki_cache.exists):
                    req_wiki_cache.delete()