(self)
return self.__parent_result
memoized doesn't seem to work with overriding __getattr__ at the same time,
        so we cache the result using a private attribute.
memoized doesn't seem to work with overriding __getattr__ at the same time,
        so we cache the result using a private attribute.
memoized doesn t seem to work with overriding __getattr__ at the same time so we cache the result using a private attribute .
def __get_parent_result(self):
        """
        memoized doesn't seem to work with overriding __getattr__ at the same time,
        so we cache the result using a private attribute.
        """
        if self.__parent_result:
            return self.__parent_result

        parent_case = self.__case.parent
        if parent_case:
            self.__parent_result = CaseMessagingTemplateParam(parent_case)
        else:
            self.__parent_result = SimpleMessagingTemplateParam(UNKNOWN_VALUE)

        return self.__parent_result
def __get_parent_result ( self ) : if self . __parent_result : return self . __parent_result parent_case = self . __case . parent if parent_case : self . __parent_result = CaseMessagingTemplateParam ( parent_case ) else : self . __parent_result = SimpleMessagingTemplateParam ( UNKNOWN_VALUE ) return self . __parent_result