diff -r 1d25e928c299 -r 69c0ba095536 web/views/actions.py --- a/web/views/actions.py Tue Sep 15 15:01:41 2009 +0200 +++ b/web/views/actions.py Thu Sep 17 15:16:53 2009 +0200 @@ -32,10 +32,10 @@ # if user has no update right but it can modify some relation, # display action anyway for dummy in AutomaticEntityForm.esrelations_by_category( - entity, 'generic', 'add'): + entity, 'generic', 'add', strict=True): return 1 for rschema, targetschemas, role in AutomaticEntityForm.erelations_by_category( - entity, ('primary', 'secondary'), 'add'): + entity, ('primary', 'secondary'), 'add', strict=True): if not rschema.is_final(): return 1 return 0 @@ -284,7 +284,7 @@ yield rschema, teschema, role def linkto_url(self, entity, rtype, etype, target): - return self.build_url(vid='creation', etype=etype, + return self.build_url('add/%s' % etype, __linkto='%s:%s:%s' % (rtype, entity.eid, target), __redirectpath=entity.rest_path(), # should not be url quoted! __redirectvid=self.req.form.get('vid', ''))