diff options
Diffstat (limited to 'tabellio/searchform/form.py')
-rw-r--r-- | tabellio/searchform/form.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index d20bfd7..ebff639 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -1014,6 +1014,13 @@ class SearchView(BrowserView): sort_on='dateDoc') return rs + def get_help_links(self): + try: + help_dir = getattr(getattr(self.context, 'aide-en-ligne'), 'aide-contextuelle') + except AttributeError: + return [] + return help_dir.objectValues() + class Reflex(BrowserView): def __call__(self): @@ -1035,4 +1042,3 @@ class Reflex(BrowserView): if not rs: return self.request.response.redirect('.') return self.request.response.redirect(rs[0].getURL()) - |