Beispiel #1
0
 def _validateArguments(self, arguments):
     arguments = dict(arguments)
     validatedArguments = {}
     checkNoRepeatedArguments(arguments)
     arguments.pop('verb')
     checkArgument(arguments, 'identifier', validatedArguments)
     checkNoMoreArguments(arguments)
     return validatedArguments
Beispiel #2
0
 def _validateArguments(self, arguments):
     arguments = dict(arguments)
     validatedArguments = {}
     checkNoRepeatedArguments(arguments)
     arguments.pop('verb')
     missing = []
     if not checkArgument(arguments, 'identifier', validatedArguments):
         missing.append('"identifier"')
     if not checkArgument(arguments, 'metadataPrefix', validatedArguments):
         missing.append('"metadataPrefix"')
     if missing:
         raise OaiBadArgumentException('Missing argument(s) ' + \
             " and ".join(missing) + ".")
     checkNoMoreArguments(arguments)
     return validatedArguments
Beispiel #3
0
 def _validateArguments(self, arguments):
     arguments = dict(arguments)
     validatedArguments = {}
     checkNoRepeatedArguments(arguments)
     arguments.pop('verb')
     if checkArgument(arguments, 'resumptionToken', validatedArguments):
         if len(arguments) > 0:
             raise OaiBadArgumentException('"resumptionToken" argument may only be used exclusively.')
     checkNoMoreArguments(arguments)
     return validatedArguments