Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-09-19 03:30:01 (GMT)
committer Richard Darst <rkd@zgib.net>2009-09-19 03:30:01 (GMT)
commite415194853416af19007ccd2e9d3cb65c38dce84 (patch)
tree6f89ec8de6ce601c8f8aa44ded339f42e070ba43
parent137e64286ea245e9eb9558beaf6992764d15986e (diff)
Have all writers say (none) for no action items
darcs-hash:20090919033001-82ea9-2eba1daba5ea870df027d7985a341203ab62df9e.gz
-rw-r--r--writers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/writers.py b/writers.py
index 4e43516..4ac9770 100644
--- a/writers.py
+++ b/writers.py
@@ -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