display events in committee tab (#1051)
This commit is contained in:
parent
8c0f14925f
commit
df5faadca0
|
@ -19,3 +19,8 @@ class ICommittee(form.Schema):
|
||||||
|
|
||||||
class Committee(Container):
|
class Committee(Container):
|
||||||
implements(ICommittee)
|
implements(ICommittee)
|
||||||
|
|
||||||
|
def events(self):
|
||||||
|
events = [x for x in self.objectValues() if x.portal_type == 'tabellio.agenda.event']
|
||||||
|
events.sort(lambda x,y: cmp(x.start, y.start))
|
||||||
|
return events
|
||||||
|
|
|
@ -38,7 +38,12 @@
|
||||||
</dd>
|
</dd>
|
||||||
<dt>Agenda</dt>
|
<dt>Agenda</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<div/>
|
<div>
|
||||||
|
<ul>
|
||||||
|
<li tal:repeat="event item/events"><span
|
||||||
|
tal:content="event/longdatetime">date</span> : <a tal:attributes="href
|
||||||
|
event/absolute_url" tal:content="event/Title">title</a></li>
|
||||||
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
Reference in New Issue