From 1a574f1303b9e2896dfec74b218c443b6ec711b1 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Fri, 30 Nov 2018 13:26:28 -0500 Subject: [PATCH] reapply Process.identifier 'pop' --- twitcher/datatype.py | 2 +- twitcher/execute.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/twitcher/datatype.py b/twitcher/datatype.py index 580815be..4b7e7989 100644 --- a/twitcher/datatype.py +++ b/twitcher/datatype.py @@ -456,7 +456,7 @@ def __init__(self, *args, **kwargs): if 'id' not in self and 'identifier' not in self: raise TypeError("'id' OR 'identifier' is required") if 'id' not in self: - self['id'] = self.get('identifier') + self['id'] = self.pop('identifier') if 'processEndpointWPS1' not in self: raise TypeError("'processEndpointWPS1' is required") if 'package' not in self: diff --git a/twitcher/execute.py b/twitcher/execute.py index 38e175fb..d4314ac0 100644 --- a/twitcher/execute.py +++ b/twitcher/execute.py @@ -17,7 +17,7 @@ ]) EXECUTE_TRANSMISSION_MODE_VALUE = 'value' -EXECUTE_TRANSMISSION_MODE_REFERENCE = 'value' +EXECUTE_TRANSMISSION_MODE_REFERENCE = 'reference' execute_transmission_mode_options = frozenset([ EXECUTE_TRANSMISSION_MODE_VALUE,