Method
__init__
(self, item, attr, value)
Source from the content-addressed store, hash-verified
| 41 | """ |
| 42 | |
| 43 | def __init__(self, item, attr, value): |
| 44 | # this needs to be above item assignment, as assigning the item will add it to the list and it via |
| 45 | # relationship and needs this set 4correctly |
| 46 | self.attrID = attr.ID |
| 47 | |
| 48 | self.item = item |
| 49 | self.itemID = item.ID |
| 50 | |
| 51 | self.__attr = attr |
| 52 | self.build() |
| 53 | self.value = value # must run after the build(), because the validator requires build() to run first |
| 54 | |
| 55 | @reconstructor |
| 56 | def init(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected