changeset 5752 | b0bb553e3be4 |
parent 5707 | 3586d36d2a45 |
parent 5746 | f4fc424747db |
child 5768 | 1e73a466aa69 |
--- a/schema.py Mon Jun 14 12:13:46 2010 +0200 +++ b/schema.py Tue Jun 15 18:16:19 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: