branch | stable |
changeset 5746 | f4fc424747db |
parent 5703 | 24ca7615379b |
child 5752 | b0bb553e3be4 |
--- a/schema.py Mon Jun 14 18:58:06 2010 +0200 +++ b/schema.py Mon Jun 14 18:59:05 2010 +0200 @@ -471,10 +471,14 @@ assert action in ('read', 'add', 'delete') if 'fromeid' in kwargs: subjtype = session.describe(kwargs['fromeid'])[0] + elif 'frometype' in kwargs: + subjtype = kwargs.pop('frometype') else: subjtype = None if 'toeid' in kwargs: objtype = session.describe(kwargs['toeid'])[0] + elif 'toetype' in kwargs: + objtype = kwargs.pop('toetype') else: objtype = None if objtype and subjtype: