Package telemeta :: Package interop :: Module oai :: Class ArgumentValidator
[hide private]
[frames] | no frames]

Class ArgumentValidator

source code

object --+
         |
        ArgumentValidator

OAI-PMH request argument validator

Instance Methods [hide private]
 
__init__(self, request, response)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
optional(self, *args)
Add optional arguments
source code
 
require(self, *args)
Add required arguments
source code
 
accept_format(self, format)
Indicate which metadata format is supported
source code
 
has_verb(self)
Check if the request includes a valid Verb, return True if it does, False otherwise, setting an error into the response
source code
 
validate(self)
Perform validation, return True if successfull, False otherwise, setting appropriate errors into the response
source code
 
pre_validate(self)
Same as validate(), but doesn't not check for unknown arguments
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, request, response)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)