Commits

osimons  committed 3230ce8

[svn r7969] FullBlogPlugin: Add support for `resource_exists()` following trac:changeset:9724.

  • Participants
  • Parent commits 2866570

Comments (0)

Files changed (1)

File 0.11/tracfullblog/core.py

         else:
             return 'Blog: '+bp.title
 
+    def resource_exists(self, resource):
+        bp = BlogPost(self.env, resource.id)
+        return len(bp.versions)
+
     # IWikiSyntaxProvider methods
 
     def get_wiki_syntax(self):