## Controlled Python Script "validate_edit_marker" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind state=state ##bind subpath=traverse_subpath ##parameters=add=None, remove=None ##title=Validate changing marker interfaces ## if add is None and remove is None: state.setError('error', 'Must choose at least an interface for adding or removing.', 'input_required') if state.getErrors(): return state.set(status='failure', portal_status_message='Please correct the indicated errors.') else: return state