changeset 2289:dc0d79d43bd4

Fixes for global index view, now links appear correctly Also fixes #25.
author Ashutosh Singla <ashu1461@gmail.com>
date Sun, 22 Sep 2013 04:42:25 +0530
parents 50ff4ba17f3e
children 5beaf17c6a1a
files MoinMoin/items/__init__.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Sep 22 03:17:47 2013 +0530
+++ b/MoinMoin/items/__init__.py	Sun Sep 22 04:42:25 2013 +0530
@@ -642,7 +642,7 @@
             fullnames = rev.meta[NAME]
             for fullname in fullnames:
                 prefix = self.get_prefix_match(fullname, prefixes)
-                fullname_fqname = CompositeName(self.fqname.namespace, NAME_EXACT, fullname)
+                fullname_fqname = CompositeName(rev.meta[NAMESPACE], NAME_EXACT, fullname)
                 if not prefix is None:
                     relname = fullname[len(prefix):]
                     if '/' in relname:
@@ -651,11 +651,11 @@
                         # 'foo', and current item (`rev`) is 'foo/bar/lorem/ipsum',
                         # 'foo/bar' will be found.
                         direct_relname = relname.partition('/')[0]
-                        if fullname not in added_fullnames:
-                            added_fullnames.add(fullname)
+                        if fullname_fqname not in added_fullnames:
+                            added_fullnames.add(fullname_fqname)
                             direct_fullname = prefix + direct_relname
-                            direct_fullname_fqname = CompositeName(self.fqname.namespace, NAME_EXACT, direct_fullname)
-                            fqname = split_fqname(direct_fullname)
+                            direct_fullname_fqname = CompositeName(rev.meta[NAMESPACE], NAME_EXACT, direct_fullname)
+                            fqname = CompositeName(rev.meta[NAMESPACE], NAME_EXACT, direct_fullname)
                             direct_rev = get_storage_revision(fqname)
                             dirs.append(IndexEntry(direct_relname, direct_fullname_fqname, direct_rev.meta))
                     else: