details: http://www.bx.psu.edu/hg/galaxy/rev/4c1d1ce9265f changeset: 1693:4c1d1ce9265f user: Nate Coraor <nate@bx.psu.edu> date: Thu Jan 08 11:04:19 2009 -0500 description: Fix from James Casbon for a problem he has experienced when using remote_user (a new user creation seems to be attempted before a session exists). 1 file(s) affected in this change: lib/galaxy/web/framework/__init__.py diffs (29 lines): diff -r 93b946a7d8cb -r 4c1d1ce9265f lib/galaxy/web/framework/__init__.py --- a/lib/galaxy/web/framework/__init__.py Wed Jan 07 15:33:35 2009 -0500 +++ b/lib/galaxy/web/framework/__init__.py Thu Jan 08 11:04:19 2009 -0500 @@ -138,13 +138,22 @@ event.message = message % kwargs except: event.message = message - event.history = self.history + try: + event.history = self.history + except: + event.history = None try: event.history_id = self.history.id except: event.history_id = None - event.user = self.user - event.session_id = self.galaxy_session.id + try: + event.user = self.user + except: + event.user = None + try: + event.session_id = self.galaxy_session.id + except: + event.session_id = None event.flush() def get_cookie( self, name='galaxysession' ): """Convenience method for getting a session cookie"""