web/views/actions.py
branch3.5
changeset 3272 f46f2082468b
parent 3271 6c8504b2ade0
child 3293 69c0ba095536
child 3495 438576c5b1d1
equal deleted inserted replaced
3271:6c8504b2ade0 3272:f46f2082468b
   283                         continue
   283                         continue
   284                     if teschema.has_local_role('add') or teschema.has_perm(req, 'add'):
   284                     if teschema.has_local_role('add') or teschema.has_perm(req, 'add'):
   285                         yield rschema, teschema, role
   285                         yield rschema, teschema, role
   286 
   286 
   287     def linkto_url(self, entity, rtype, etype, target):
   287     def linkto_url(self, entity, rtype, etype, target):
   288         return self.build_url(vid='creation', etype=etype,
   288         return self.build_url('add/%s' % etype,
   289                               __linkto='%s:%s:%s' % (rtype, entity.eid, target),
   289                               __linkto='%s:%s:%s' % (rtype, entity.eid, target),
   290                               __redirectpath=entity.rest_path(), # should not be url quoted!
   290                               __redirectpath=entity.rest_path(), # should not be url quoted!
   291                               __redirectvid=self.req.form.get('vid', ''))
   291                               __redirectvid=self.req.form.get('vid', ''))
   292 
   292 
   293 
   293