diff MoinMoin/themes/__init__.py @ 2669:7798855349f6

Improved Metadata view
author Ajitesh Gupta <ajgupta93@gmail.com>
date Sat, 19 Jul 2014 14:38:21 +0530
parents 2003e3685733
children c040fb080073
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sat Jul 19 14:30:01 2014 +0530
+++ b/MoinMoin/themes/__init__.py	Sat Jul 19 14:38:21 2014 +0530
@@ -475,6 +475,15 @@
                 namespace_root_mapping.append((namespace or '~', fq_namespace.get_root_fqname()))
         return namespace_root_mapping
 
+    def item_exists(self, itemname):
+        """
+        Check whether the item pointed to by the given itemname exists or not
+
+        :rtype: boolean
+        :returns: whether item pointed to by the link exists or not
+        """
+        return self.storage.has_item(itemname)
+
 
 def get_editor_info(meta, external=False):
     addr = meta.get(ADDRESS)