changeset 2260:c800c819efc4

Updated fqname support to show view.
author Ashutosh Singla <ashu1461@gmail.com>
date Wed, 11 Sep 2013 10:42:50 +0530
parents d92720cc23c6
children a90551dc4b75
files MoinMoin/apps/frontend/views.py MoinMoin/items/__init__.py
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Wed Sep 11 10:13:14 2013 +0530
+++ b/MoinMoin/apps/frontend/views.py	Wed Sep 11 10:42:50 2013 +0530
@@ -381,8 +381,9 @@
             fq_names.extend(rev.fqnames)
         return render_template("link_list_no_item_panel.html",
                                headline=_("Items with %(field)s %(value)s", field=fqname.field, value=fqname.value),
-                               item_name=fqname.fullname,
-                               fq_names=fq_names)
+                               fqname=fqname,
+                               fq_names=fq_names,
+                               )
     return result
 
 
--- a/MoinMoin/items/__init__.py	Wed Sep 11 10:13:14 2013 +0530
+++ b/MoinMoin/items/__init__.py	Wed Sep 11 10:42:50 2013 +0530
@@ -850,7 +850,8 @@
             content = self._select_itemtype()
         else:
             content = render_template('show_nonexistent.html',
-                                      item_name=self.fqname.fullname,
+                                      item_name=self.name,
+                                      fqname=self.fqname,
                                      )
         return Response(content, 404)
 
@@ -862,7 +863,8 @@
 
     def _select_itemtype(self):
         return render_template('modify_select_itemtype.html',
-                               item_name=self.fqname.fullname,
+                               item_name=self.name,
+                               fqname=self.fqname,
                                itemtypes=item_registry.shown_entries,
                               )