(self)
return self.__last_modified_by_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_last_modified_by_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.__last_modified_by_result:
            return self.__last_modified_by_result

        if self.__case.modified_by == 'system':
            self.__last_modified_by_result = SimpleDictTemplateParam(_get_system_user_template_info())
            return self.__last_modified_by_result

        try:
            modified_by = CouchUser.get_by_user_id(self.__case.modified_by)
        except KeyError:
            modified_by = None

        if modified_by:
            self.__last_modified_by_result = SimpleDictTemplateParam(_get_obj_template_info(modified_by))
        else:
            self.__last_modified_by_result = SimpleMessagingTemplateParam(UNKNOWN_VALUE)

        return self.__last_modified_by_result
def __get_last_modified_by_result ( self ) : if self . __last_modified_by_result : return self . __last_modified_by_result if self . __case . modified_by == 'system' : self . __last_modified_by_result = SimpleDictTemplateParam ( _get_system_user_template_info ( ) ) return self . __last_modified_by_result try : modified_by = CouchUser . get_by_user_id ( self . __case . modified_by ) except KeyError : modified_by = None if modified_by : self . __last_modified_by_result = SimpleDictTemplateParam ( _get_obj_template_info ( modified_by ) ) else : self . __last_modified_by_result = SimpleMessagingTemplateParam ( UNKNOWN_VALUE ) return self . __last_modified_by_result