From 6cfa45c352cad828012c57fdaa29a8f6480dee60 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 17 Mar 2003 04:46:20 +0000 Subject: [PATCH] remember the display template specified during edit (sf bug 701815) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1595 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/cgi/client.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index aafba74..e199686 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -62,6 +62,7 @@ Fixed: - don't display "Editing" on read-only pages (sf bug 651967) - re-worked detectors initialisation - woohoo, no more cross-importing! - fixed export/import of retired nodes (sf bug 685273) +- remember the display template specified during edit (sf bug 701815) 2003-??-?? 0.5.7 diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index 77a38a9..a2931d7 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.105 2003-03-17 04:26:24 richard Exp $ +# $Id: client.py,v 1.106 2003-03-17 04:46:20 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -842,9 +842,9 @@ please visit the following URL: # nice message message = _('You are now registered, welcome!') - # redirect to the item's edit page - raise Redirect, '%suser%s?@ok_message=%s'%( - self.base, self.userid, urllib.quote(message)) + # redirect to the user's page + raise Redirect, '%suser%s?@ok_message=%s&@template=%s'%(self.base, + self.userid, urllib.quote(message), urllib.quote(self.template)) def passResetAction(self): ''' Handle password reset requests. @@ -959,8 +959,9 @@ You should then receive another email with the new password. self.db.commit() # redirect to the item's edit page - raise Redirect, '%s%s%s?@ok_message=%s'%(self.base, self.classname, - self.nodeid, urllib.quote(message)) + raise Redirect, '%s%s%s?@ok_message=%s&@template=%s'%(self.base, + self.classname, self.nodeid, urllib.quote(message), + urllib.quote(self.template)) def editItemPermission(self, props): ''' Determine whether the user has permission to edit this item. @@ -1012,11 +1013,10 @@ You should then receive another email with the new password. # commit now that all the tricky stuff is done self.db.commit() - print '%s%s%s?@ok_message=%s'%(self.base, self.classname, - self.nodeid, urllib.quote(messages)) # redirect to the new item's page - raise Redirect, '%s%s%s?@ok_message=%s'%(self.base, self.classname, - self.nodeid, urllib.quote(messages)) + raise Redirect, '%s%s%s?@ok_message=%s&@template=%s'%(self.base, + self.classname, self.nodeid, urllib.quote(messages), + urllib.quote(self.template)) def newItemPermission(self, props): ''' Determine whether the user has permission to create (edit) this -- 2.30.2