diff options
author | Richard Darst <rkd@zgib.net> | 2009-09-19 03:30:01 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-09-19 03:30:01 (GMT) |
commit | e415194853416af19007ccd2e9d3cb65c38dce84 (patch) | |
tree | 6f89ec8de6ce601c8f8aa44ded339f42e070ba43 | |
parent | 137e64286ea245e9eb9558beaf6992764d15986e (diff) |
Have all writers say (none) for no action items
darcs-hash:20090919033001-82ea9-2eba1daba5ea870df027d7985a341203ab62df9e.gz
-rw-r--r-- | writers.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -767,12 +767,16 @@ class Text(_BaseWriter): M = self.M # Action Items ActionItems = [ ] + numActionItems = 0 ActionItems.append(self.heading('Action items')) for m in M.minutes: # The hack below is needed because of pickling problems if m.itemtype != "ACTION": continue #already escaped ActionItems.append(wrapList("* %s"%text(m.line), indent=0)) + numActionItems += 1 + if numActionItems == 0: + ActionItems.append("* (none)") ActionItems = "\n".join(ActionItems) def actionItemsPerson(self): @@ -889,12 +893,16 @@ class MediaWiki(_BaseWriter): M = self.M # Action Items ActionItems = [ ] + numActionItems = 0 ActionItems.append(self.heading('Action items')) for m in M.minutes: # The hack below is needed because of pickling problems if m.itemtype != "ACTION": continue #already escaped ActionItems.append("* %s"%mw(m.line)) + numActionItems += 1 + if numActionItems == 0: + ActionItems.append("* (none)") ActionItems = "\n".join(ActionItems) return ActionItems |