Lines 297-303
def object_input(module, object, input, append=None, remove=None):
|
Link Here
|
---|
|
297 |
out.append('E: Invalid Syntax: %s' % str(errmsg)) |
297 |
out.append('E: Invalid Syntax: %s' % str(errmsg)) |
298 |
if remove: |
298 |
if remove: |
299 |
for key, value in remove.items(): |
299 |
for key, value in remove.items(): |
300 |
if univention.admin.syntax.is_syntax( module.property_descriptions[key].syntax, univention.admin.syntax.complex ): |
300 |
if not module.property_descriptions[key].multivalue: |
|
|
301 |
out.append("WARNING: --remove should not be used for non multivalue fields. use --set %s='' instead." % (key,)) |
302 |
elif univention.admin.syntax.is_syntax( module.property_descriptions[key].syntax, univention.admin.syntax.complex ): |
301 |
if value: |
303 |
if value: |
302 |
for i in range(0,len(value)): |
304 |
for i in range(0,len(value)): |
303 |
test_val=value[i].split('"') |
305 |
test_val=value[i].split('"') |