add URL parameter for clearing client name
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3423 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d8748fd6ee
commit
59b0f28f72
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 Helmut Merz helmutm@cy55.de
|
# Copyright (c) 2009 Helmut Merz helmutm@cy55.de
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -42,7 +42,7 @@ class RedirectActionHandler(ActionHandler):
|
||||||
url = request.URL1
|
url = request.URL1
|
||||||
else:
|
else:
|
||||||
url = request.URL[-1]
|
url = request.URL[-1]
|
||||||
request.response.redirect('%s/%s?message=%s'
|
request.response.redirect('%s/%s?message=%s&ccln=yes'
|
||||||
% (url, targetView, messageName))
|
% (url, targetView, messageName))
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@ -67,5 +67,7 @@ class MessageView(BaseView):
|
||||||
data = dict(request=self.request)
|
data = dict(request=self.request)
|
||||||
mh = component.getAdapter(ri, IActionHandler, name='message')
|
mh = component.getAdapter(ri, IActionHandler, name='message')
|
||||||
data = mh(data, dict(messageName=messageName))
|
data = mh(data, dict(messageName=messageName))
|
||||||
|
if self.request.get('ccln'):
|
||||||
|
self.setClientName('')
|
||||||
return data['text']
|
return data['text']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue