Changeset 492251a for asadb/space/diffs.py
- Timestamp:
- Jan 30, 2013, 1:36:34 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 59506d6
- Parents:
- 1484698
- git-author:
- Alex Dehnert <adehnert@…> (01/30/13 01:36:34)
- git-committer:
- Alex Dehnert <adehnert@…> (01/30/13 01:36:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/space/diffs.py
rc8f4eea r492251a 177 177 178 178 def safe_add_change_real(change_by_name, change): 179 """Add a new change to our dict of pending changes. 180 181 If a different change has already been added for this person (eg, "Remove" 182 instead of "Keep", or with a different list of groups), error. This should 183 always succeed; if it doesn't, the code is buggy. We worry about this 184 because we want to be really sure that the email that goes to just CAC is 185 compatible with the emails that go to each groups. Since we iterate over 186 the changes once per group, we want to be sure that for each group 187 iteration we're building compatible information. 188 """ 189 179 190 name = change.name 180 191 if name in change_by_name: … … 200 211 print "ID=%s (%s):\n\t%s\t(%s)\n\t%s\t(%s)\n" % (mit_id, unchanged, old_by_names, old_by_group, new_by_names, new_by_group, ), 201 212 for group_pk in joint_keys(old_by_group, new_by_group): 213 # TODO: Do we need to do an iteration for each group? This seems 214 # slightly questionable. Can we just loop over all known names? 215 202 216 old_names = old_by_group[group_pk] 203 217 new_names = new_by_group[group_pk]
Note: See TracChangeset
for help on using the changeset viewer.