comparison MoinMoin/events/notification.py @ 2693:dde1f1ee1d80

Always add page name to results dict.
author Karol Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 17 Aug 2007 23:28:17 +0200
parents da94375a625c
children 80cf17344f98
comparison
equal deleted inserted replaced
2692:42eaeb7584d0 2693:dde1f1ee1d80
71 from MoinMoin.action.AttachFile import getAttachUrl 71 from MoinMoin.action.AttachFile import getAttachUrl
72 72
73 _ = request.getText 73 _ = request.getText
74 page._ = lambda s, formatted=True, r=request, l=lang: r.getText(s, formatted=formatted, lang=l) 74 page._ = lambda s, formatted=True, r=request, l=lang: r.getText(s, formatted=formatted, lang=l)
75 querystr = {} 75 querystr = {}
76 changes = {} 76 changes = {'page_name': page.page_name}
77 77
78 if msgtype == "page_changed": 78 if msgtype == "page_changed":
79 revisions = kwargs['revisions'] 79 revisions = kwargs['revisions']
80 if len(kwargs['revisions']) >= 2: 80 if len(kwargs['revisions']) >= 2:
81 querystr = {'action': 'diff', 81 querystr = {'action': 'diff',
123 'sitename': page.cfg.sitename or request.getBaseURL(), 123 'sitename': page.cfg.sitename or request.getBaseURL(),
124 'oldname': kwargs['old_name'] 124 'oldname': kwargs['old_name']
125 } 125 }
126 126
127 changes['old_name'] = kwargs['old_name'] 127 changes['old_name'] = kwargs['old_name']
128 changes['page_name'] = page.page_name
129 128
130 else: 129 else:
131 raise UnknownChangeType() 130 raise UnknownChangeType()
132 131
133 changes['editor'] = page.uid_override or user.getUserIdentification(request) 132 changes['editor'] = page.uid_override or user.getUserIdentification(request)