X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fsfi.py;h=2ce796b01cd10ee435730bc125be0a4da2db95cd;hb=dcec4892ea998e7df5297ba08a7a93da0e8d7053;hp=5500c966dc2e4791e7f31d74ddb0479c8abc2331;hpb=d835b845b42e67f52c9967a20d21c56dbeeb6001;p=sfa.git diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 5500c966..2ce796b0 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -203,7 +203,7 @@ def load_record_from_opts(options): record_dict['keys'] = [pubkey] if hasattr(options, 'slices') and options.slices: record_dict['slices'] = options.slices - if hasattr(options, 'researchers') and options.researchers: + if hasattr(options, 'researchers') and options.researchers is not None: record_dict['researcher'] = options.researchers if hasattr(options, 'email') and options.email: record_dict['email'] = options.email @@ -422,7 +422,7 @@ class Sfi: parser.add_option('-s', '--slices', dest='slices', metavar='', help='Set/replace slice xrns', default='', type="str", action='callback', callback=optparse_listvalue_callback) parser.add_option('-r', '--researchers', dest='researchers', metavar='', - help='Set/replace slice researchers', default='', type="str", action='callback', + help='Set/replace slice researchers - use -r none to reset', default='', type="str", action='callback', callback=optparse_listvalue_callback) parser.add_option('-p', '--pis', dest='pis', metavar='', help='Set/replace Principal Investigators/Project Managers', default='', type="str", action='callback', callback=optparse_listvalue_callback)