goa/appobjects/components.py
changeset 2058 7ef12c03447c
parent 1977 606923dff11b
child 2181 94ca417b9b07
equal deleted inserted replaced
2057:0a0cbccafcb5 2058:7ef12c03447c
    70         if eschema.is_final() or not (eschema.has_perm(req, 'read') or
    70         if eschema.is_final() or not (eschema.has_perm(req, 'read') or
    71                                       eschema.has_local_role('read')):
    71                                       eschema.has_local_role('read')):
    72             continue
    72             continue
    73         etype = eschema.type
    73         etype = eschema.type
    74         label = display_name(req, etype, 'plural')
    74         label = display_name(req, etype, 'plural')
    75         view = self.vreg.select_view('list', req, req.etype_rset(etype))
    75         view = self.vreg.select('views', 'list', req, req.etype_rset(etype))
    76         url = view.url()
    76         url = view.url()
    77         etypelink = u'&nbsp;<a href="%s">%s</a>' % (html_escape(url), label)
    77         etypelink = u'&nbsp;<a href="%s">%s</a>' % (html_escape(url), label)
    78         yield (label, etypelink, self.add_entity_link(eschema, req))
    78         yield (label, etypelink, self.add_entity_link(eschema, req))
    79 
    79 
    80 ManageView.entity_types = entity_types_no_count
    80 ManageView.entity_types = entity_types_no_count