changeset 2195:6484a3d24db6

send app object at signal emiting
author Ana Balica <ana.balica@gmail.com>
date Sun, 15 Sep 2013 12:19:29 +0200
parents 1eaf51f6eb90
children 337b8bb2c903
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Sep 15 11:33:30 2013 +0200
+++ b/MoinMoin/apps/frontend/views.py	Sun Sep 15 12:19:29 2013 +0200
@@ -362,8 +362,7 @@
 @frontend.route('/+show/+<rev>/<itemname:item_name>', methods=['GET'])
 def show_item(item_name, rev):
     flaskg.user.add_trail(item_name)
-    item_displayed.send(app._get_current_object(),
-                        item_name=item_name)
+    item_displayed.send(app, item_name=item_name)
     try:
         item = Item.create(item_name, rev_id=rev)
         result = item.do_show(rev)
@@ -439,8 +438,7 @@
 @frontend.route('/+content/<itemname:item_name>', defaults=dict(rev=CURRENT))
 def content_item(item_name, rev):
     """ same as show_item, but we only show the content """
-    item_displayed.send(app._get_current_object(),
-                        item_name=item_name)
+    item_displayed.send(app, item_name=item_name)
     try:
         item = Item.create(item_name, rev_id=rev)
     except AccessDenied: