# HG changeset patch # User Pawel Solyga # Date 1236201007 0 # Node ID ce52003ca18fb157f6a614f2bc08234c32ca6c79 # Parent 51b5bc38522c95f7107e064192bda1e09d7bda97 Comment out unused variables and add used but not declared class variables to __init__ method in soc.logic.allocations module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed diff -r 51b5bc38522c -r ce52003ca18f app/soc/logic/allocations.py --- a/app/soc/logic/allocations.py Wed Mar 04 20:54:30 2009 +0000 +++ b/app/soc/logic/allocations.py Wed Mar 04 21:10:07 2009 +0000 @@ -60,7 +60,12 @@ for _, value in applications.iteritems(): all_applications += value - + + self.locked_slots = {} + self.adjusted_slots = {} + self.adjusted_orgss = [] + self.locked_orgs = [] + self.unlocked_applications = [] self.slots = slots self.max_slots_per_org = max_slots_per_org self.orgs = set(orgs) @@ -96,12 +101,13 @@ adjusted_orgs = set(adjusted_slots.keys()) # set a' and b' - unlocked_orgs = self.orgs.difference(locked_orgs) - unadjusted_orgs = self.orgs.difference(adjusted_orgs) + # unlocked_orgs = self.orgs.difference(locked_orgs) + # unadjusted_orgs = self.orgs.difference(adjusted_orgs) # set a*b and a'*b' locked_and_adjusted_orgs = locked_orgs.intersection(adjusted_orgs) - unlocked_and_unadjusted_orgs = unlocked_orgs.intersection(unadjusted_orgs) + + # unlocked_and_unadjusted_orgs = unlocked_orgs.intersection(unadjusted_orgs) # a+o and b+o should be o locked_orgs_or_orgs = self.orgs.union(locked_orgs)