|
Lines 669-686
def _doit(arglist):
Link Here
|
| 669 |
else: |
669 |
else: |
| 670 |
name=val[:pos] |
670 |
name=val[:pos] |
| 671 |
value = _2utf8( val[ pos + 1 : ] ) |
671 |
value = _2utf8( val[ pos + 1 : ] ) |
| 672 |
was_set=0 |
672 |
was_set = False |
| 673 |
for mod, (properties,options) in information.items(): |
673 |
for mod, (properties,options) in information.items(): |
| 674 |
if properties.has_key(name): |
674 |
if properties.has_key(name): |
|
|
675 |
was_set = True |
| 675 |
if properties[name].multivalue: |
676 |
if properties[name].multivalue: |
| 676 |
if not remove.has_key(name): |
677 |
if value is None: |
| 677 |
remove[name]=[] |
678 |
remove[name] = value |
| 678 |
if value: |
679 |
elif value: |
| 679 |
remove[name].append(value) |
680 |
remove.setdefault(name, []) |
| 680 |
was_set=1 |
681 |
if remove[name] is not None: |
|
|
682 |
remove[name].append(value) |
| 681 |
else: |
683 |
else: |
| 682 |
remove[name]=value |
684 |
remove[name] = value |
| 683 |
was_set=1 |
|
|
| 684 |
if not was_set: |
685 |
if not was_set: |
| 685 |
out.append("WARNING: No attribute with name %s in this module, value not removed."%name) |
686 |
out.append("WARNING: No attribute with name %s in this module, value not removed."%name) |
| 686 |
elif opt == '--remove_referring': |
687 |
elif opt == '--remove_referring': |