(self)
return self.__owner_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_owner_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.__owner_result:
            return self.__owner_result

        owner = get_wrapped_owner(get_owner_id(self.__case))
        if isinstance(owner, CouchUser):
            if owner.is_member_of(self.__domain):
                self.__owner_result = SimpleDictTemplateParam(_get_obj_template_info(owner))
        elif isinstance(owner, (Group, SQLLocation)):
            if owner.domain == self.__domain:
                self.__owner_result = SimpleDictTemplateParam(_get_obj_template_info(owner))

        self.__owner_result = self.__owner_result or SimpleMessagingTemplateParam(UNKNOWN_VALUE)
        return self.__owner_result
def __get_owner_result ( self ) : if self . __owner_result : return self . __owner_result owner = get_wrapped_owner ( get_owner_id ( self . __case ) ) if isinstance ( owner , CouchUser ) : if owner . is_member_of ( self . __domain ) : self . __owner_result = SimpleDictTemplateParam ( _get_obj_template_info ( owner ) ) elif isinstance ( owner , ( Group , SQLLocation ) ) : if owner . domain == self . __domain : self . __owner_result = SimpleDictTemplateParam ( _get_obj_template_info ( owner ) ) self . __owner_result = self . __owner_result or SimpleMessagingTemplateParam ( UNKNOWN_VALUE ) return self . __owner_result