From 4f0ee4543b56ff910c6dd3d5ea909796db06516c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 3 May 2013 22:20:05 -0500 Subject: [PATCH] fixed a problem with hiding passwords for uri = list of uris, thanks David --- VERSION | 2 +- gluon/dal.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e5efb189..4551f61a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.05.03.22.14.19 +Version 2.4.6-stable+timestamp.2013.05.03.22.19.25 diff --git a/gluon/dal.py b/gluon/dal.py index 785f24d9..ffc599ed 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -457,6 +457,8 @@ def pluralize(singular, rules=PLURALIZE_RULES): if plural: return plural def hide_password(uri): + if isinstance(uri,(list,tuple)): + return [hide_password(item) for item in uri] return REGEX_NOPASSWD.sub('******',uri) def OR(a,b):