comparison 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
comparison
equal deleted inserted replaced
2668:f649d7a3b3cd 2669:7798855349f6
473 if namespace != ns: 473 if namespace != ns:
474 fq_namespace = CompositeName(namespace, NAME_EXACT, u'') 474 fq_namespace = CompositeName(namespace, NAME_EXACT, u'')
475 namespace_root_mapping.append((namespace or '~', fq_namespace.get_root_fqname())) 475 namespace_root_mapping.append((namespace or '~', fq_namespace.get_root_fqname()))
476 return namespace_root_mapping 476 return namespace_root_mapping
477 477
478 def item_exists(self, itemname):
479 """
480 Check whether the item pointed to by the given itemname exists or not
481
482 :rtype: boolean
483 :returns: whether item pointed to by the link exists or not
484 """
485 return self.storage.has_item(itemname)
486
478 487
479 def get_editor_info(meta, external=False): 488 def get_editor_info(meta, external=False):
480 addr = meta.get(ADDRESS) 489 addr = meta.get(ADDRESS)
481 hostname = meta.get(HOSTNAME) 490 hostname = meta.get(HOSTNAME)
482 text = _('anonymous') # link text 491 text = _('anonymous') # link text