[Patchew-devel] [PATCH 7/9] rest: add support for PUT of result objects
Paolo Bonzini
pbonzini at redhat.com
Wed Aug 22 08:35:16 UTC 2018
On 22/08/2018 08:14, Fam Zheng wrote:
>> + @property
>> + def result_renderer(self):
>> + try:
>> + found = re.match("^[^.]*", self.kwargs['name'])
> Maybe create a Result.mod field so this magic is not necessary? Otherwise the
> convention should be documented somewhere.
>
Do you mean something like Result.renderer_from_name (a staticmethod)?
Thanks,
Paolo
More information about the Patchew-devel
mailing list