2011-02-21 | Paul Boddie | raw files shortlog changelog graph | Support parameter processing where the incoming value is None. (Imported from revision 128.) | |
EventAggregatorSupport.py (file) |
1.1 --- a/EventAggregatorSupport.py Mon Feb 21 00:46:38 2011 +0100 1.2 +++ b/EventAggregatorSupport.py Mon Feb 21 01:00:17 2011 +0100 1.3 @@ -1425,7 +1425,10 @@ 1.4 1.5 n = None 1.6 1.7 - if arg.startswith("current"): 1.8 + if arg is None: 1.9 + return None 1.10 + 1.11 + elif arg.startswith("current"): 1.12 date = getCurrentMonth() 1.13 if len(arg) > 8: 1.14 n = int(arg[7:])