details: http://www.bx.psu.edu/hg/galaxy/rev/6b23bba26001 changeset: 3009:6b23bba26001 user: Nate Coraor <nate@bx.psu.edu> date: Wed Nov 11 11:49:08 2009 -0500 description: HostAgent needs an sa_session diffstat: lib/galaxy/security/__init__.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (13 lines): diff -r ba4ad1b7a746 -r 6b23bba26001 lib/galaxy/security/__init__.py --- a/lib/galaxy/security/__init__.py Wed Nov 11 11:38:48 2009 -0500 +++ b/lib/galaxy/security/__init__.py Wed Nov 11 11:49:08 2009 -0500 @@ -569,6 +569,9 @@ self.model = model if permitted_actions: self.permitted_actions = permitted_actions + @property + def sa_session( self ): + return self.model.context.current def allow_action( self, addr, action, **kwd ): if 'dataset' in kwd and action == self.permitted_actions.DATASET_ACCESS: hda = kwd['dataset']