Glasnost

help

 

getSetContainedObjects

getSetContainedObjects(set, serverRoles=[], sortOn=None) returns the list of objects contained in the set list, whose serverRole is one of the serverRoles listed in serverRoles, and ordered by attribute sortOn.

<ul tal:define="mR getMainRubric()" tal:condition="mR and mR.membersSet">
  <li tal:repeat="r getSetContainedObjects(mR.membersSet, ['rubrics'])">
    <a tal:attributes="href r.getUrl()" tal:content="r.label">one</a>
    <ul tal:condition="r.membersSet">
      <li tal:repeat="r2 getSetContainedObjects(r.membersSet,
                      ['rubrics', 'articles'], sortOn='label')">
        <a tal:attributes="href r2.getUrl()" tal:content="r2.label">two</a>
      </li>
    </ul>
    </li>
</ul>
up