search: add missing __sig__ methods to help the UI
1 files changed, 14 insertions(+), 0 deletions(-) M tshistory_refinery/search.py
M tshistory_refinery/search.py +14 -0
@@ 27,6 27,13 @@ class hascachepolicy(query): {} ) + @staticmethod + def __sig__(): + return { + 'return': 'query' + } + + class cachepolicy(query): __slots__ = ('query',) @@ 55,6 62,13 @@ class cachepolicy(query): {vid: f'%%{self.query}%%'} ) + @staticmethod + def __sig__(): + return { + 'query': 'str', + 'return': 'query' + } + _OPMAP['by.cache'] = 'hascachepolicy' _OPMAP['by.cachepolicy'] = 'cachepolicy'