Advertisement
khangnguyen

Untitled

Aug 8th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. for c in allCases:
  2.   if c is case:
  3.     continue
  4.   if not c.parent:
  5.     name = c.questionnaire.name.replace('&', '&')                                                                                                        
  6.     if name not in caseTypes:
  7.       caseTypes[name] = [c]
  8.     elif name == currentTab:
  9.       caseTypes[name].append(c)
  10.   elif c.parent is case:
  11.     caseAndFollowups.append(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement