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:
parent
89ed44a13f
commit
0d9b070e00
2 changed files with 3 additions and 3 deletions
|
@ -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(),
|
||||||
|
|
|
@ -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=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue