changeset 2237:93080255a927

Solves issue #18. Global Index now shows up properly.
author Ashutosh Singla <ashu1461@gmail.com>
date Sat, 10 Aug 2013 17:42:55 +0530
parents 5f2fb2d7ed87
children 913c1b908070
files MoinMoin/items/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Tue Aug 06 17:36:48 2013 +0530
+++ b/MoinMoin/items/__init__.py	Sat Aug 10 17:42:55 2013 +0530
@@ -448,7 +448,7 @@
     def modify(self, meta, data, comment=u'', contenttype_guessed=None, **update_meta):
         meta = dict(meta)  # we may get a read-only dict-like, copy it
         # get rid of None values
-        update_meta = {key:value for key, value in update_meta.items() if value is not None}
+        update_meta = {key: value for key, value in update_meta.items() if value is not None}
         meta.update(update_meta)
         return self._save(meta, data, contenttype_guessed=contenttype_guessed, comment=comment)
 
@@ -576,7 +576,7 @@
         Return the possible prefixes for subitems.
         """
         names = self.names[0:1] if self.fqname.field == NAME_EXACT else self.names
-        return [name + u'/' for name in names]
+        return [name + u'/' if name else u'' for name in names]
 
     def get_prefix_match(self, name, prefixes):
         """