(self, currModifier, origin=None)
| 578 | # Methods to register and get the thing currently affecting the fit, |
| 579 | # so we can correctly map "Affected By" |
| 580 | def register(self, currModifier, origin=None): |
| 581 | self.__modifier = currModifier |
| 582 | self.__origin = origin |
| 583 | if hasattr(currModifier, "itemModifiedAttributes"): |
| 584 | if hasattr(currModifier.itemModifiedAttributes, "fit"): |
| 585 | currModifier.itemModifiedAttributes.fit = origin or self |
| 586 | if hasattr(currModifier, "chargeModifiedAttributes"): |
| 587 | if hasattr(currModifier.chargeModifiedAttributes, "fit"): |
| 588 | currModifier.chargeModifiedAttributes.fit = origin or self |
| 589 | |
| 590 | def getModifier(self): |
| 591 | return self.__modifier |
no outgoing calls
no test coverage detected