Mercurial > moin > 1.9
changeset 3362:97fe3aadef34
allow required_arg to take a tuple/list
author | Johannes Berg <johannes AT sipsolutions DOT net> |
---|---|
date | Thu, 20 Mar 2008 21:22:00 +0100 |
parents | 795ee44690a0 |
children | 3b5cb4f28020 |
files | MoinMoin/wikiutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py Thu Mar 20 16:33:46 2008 +0100 +++ b/MoinMoin/wikiutil.py Thu Mar 20 21:22:00 2008 +0100 @@ -1645,7 +1645,7 @@ Initialise a required_arg @param argtype: the type the argument should have """ - if not (argtype in (bool, int, long, float, complex, unicode) or + if not (argtype in (bool, int, long, float, complex, unicode, tuple, list) or isinstance(argtype, IEFArgument)): raise TypeError("argtype must be a valid type") self.argtype = argtype