comparison roundup/cgi/actions.py @ 2874:ace85b609a89 maint-0.7

set the current username correctly after rego [SF#1048398]
author Richard Jones <richard@users.sourceforge.net>
date Fri, 05 Nov 2004 05:14:35 +0000
parents d3a8613fd8c3
children 3e55ba70f0b7
comparison
equal deleted inserted replaced
2873:49d1fd44881a 2874:ace85b609a89
1 #$Id: actions.py,v 1.27.2.5 2004-08-07 22:19:14 richard Exp $ 1 #$Id: actions.py,v 1.27.2.6 2004-11-05 05:14:35 richard Exp $
2 2
3 import re, cgi, StringIO, urllib, Cookie, time, random 3 import re, cgi, StringIO, urllib, Cookie, time, random
4 4
5 from roundup import hyperdb, token, date, password, rcsv, exceptions 5 from roundup import hyperdb, token, date, password, rcsv, exceptions
6 from roundup.i18n import _ 6 from roundup.i18n import _
665 except (ValueError, KeyError), message: 665 except (ValueError, KeyError), message:
666 self.client.error_message.append(str(message)) 666 self.client.error_message.append(str(message))
667 return 667 return
668 668
669 # log the new user in 669 # log the new user in
670 self.client.user = self.db.user.get(self.userid, 'username') 670 self.user = self.client.user = self.db.user.get(self.userid, 'username')
671 # re-open the database for real, using the user 671 # re-open the database for real, using the user
672 self.client.opendb(self.client.user) 672 self.client.opendb(self.client.user)
673 673
674 # if we have a session, update it 674 # if we have a session, update it
675 if hasattr(self, 'session'): 675 if hasattr(self, 'session'):

Roundup Issue Tracker: http://roundup-tracker.org/