prepare for hiding concepts from parents portlet for certain roles

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3837 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-05-02 13:35:33 +00:00
parent 89ed44a13f
commit 0d9b070e00
2 changed files with 3 additions and 3 deletions

View file

@ -326,7 +326,7 @@ class ConceptView(BaseView):
@Lazy @Lazy
def parentsForPortlet(self): def parentsForPortlet(self):
return [p for p in self.parents() if not self.isHidden(p.relation)] return [p for p in self.parents() if not self.isHidden(p.relation)]
def parents(self): def parents(self):
rels = sorted(self.context.getParentRelations(), rels = sorted(self.context.getParentRelations(),

View file

@ -233,8 +233,8 @@
<!-- portlets --> <!-- portlets -->
<metal:actions define-macro="parents"> <metal:actions define-macro="parents">
<div tal:repeat=" <div tal:repeat="concept
concept macro/info/view/parents|macro/info/parentsForPortlet"> macro/info/view/parentsForPortlet|macro/info/parentsForPortlet">
<a href="#" <a href="#"
tal:attributes="href python: view.getUrlForTarget(concept)"> tal:attributes="href python: view.getUrlForTarget(concept)">
<span i18n:translate="" <span i18n:translate=""