From f69159f11fe9468fc86136af73553e3a9161becd Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Fri, 24 Apr 2015 19:12:02 +0200 Subject: [PATCH] get_visible_forms docstrings. --- src/scriptform.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scriptform.py b/src/scriptform.py index 851a039..ba1d5f0 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -262,7 +262,11 @@ class FormConfig: else: raise ValueError("No such form: {0}".format(form_name)) - def get_visible_forms(self, username): + def get_visible_forms(self, username=None): + """ + Return a list of all visible forms. Excluded forms are those that have + the 'hide' property set, and where the user has no access to. + """ form_list = [] for form_def in self.forms: if form_def.allowed_users is not None and \