]> piware.de Git - bin.git/blobdiff - workitems.py
workitems: make postpone an alias for postponed
[bin.git] / workitems.py
index f28db44153602ee3079ab5464d6bdd089904ee35..d5621062e2a58e07da80ac6575bf17b9cfcaeeaf 100755 (executable)
@@ -101,8 +101,7 @@ def get_blueprint_workitems(blueprint_url):
             end = True
         l = l.replace('<br />', '').replace('</div>', '').replace('</p>', '').strip()
 
-        # ends with empty line
-        if end or not l:
+        if not l:
             break
 
         try:
@@ -118,12 +117,17 @@ def get_blueprint_workitems(blueprint_url):
             state = 'done'
         if state == 'inprogress':
             state = 'todo'
+        if state == 'postpone':
+            state = 'postponed'
         if state not in valid_states:
             print >> sys.stderr, 'ERROR: invalid state "%s" for work item "%s"' % (
                 state, desc)
             continue
         result.append((desc, state))
 
+        if end:
+            break
+
     return result
 
 def get_moin_workitems(url):