Ejemplo n.º 1
0
 def unmarshal(self, data):
     (params, name) = xml_loads(data)
     (args, options) = params_2_args_options(params)
     if 'version' not in options:
         # Keep backwards compatibility with client containing
         # bug https://fedorahosted.org/freeipa/ticket/3294:
         # If `version` is not given in XML-RPC, assume an old version
         options['version'] = capabilities.VERSION_WITHOUT_CAPABILITIES
     return (name, args, options, None)
Ejemplo n.º 2
0
 def unmarshal(self, data):
     (params, name) = xml_loads(data)
     if name in self._system_commands:
         # For XML-RPC introspection, return params directly
         return (name, params, {}, None)
     (args, options) = params_2_args_options(params)
     if 'version' not in options:
         # Keep backwards compatibility with client containing
         # bug https://fedorahosted.org/freeipa/ticket/3294:
         # If `version` is not given in XML-RPC, assume an old version
         options['version'] = VERSION_WITHOUT_CAPABILITIES
     return (name, args, options, None)
Ejemplo n.º 3
0
 def unmarshal(self, data):
     (params, name) = xml_loads(data)
     if name in self._system_commands:
         # For XML-RPC introspection, return params directly
         return (name, params, {}, None)
     (args, options) = params_2_args_options(params)
     if 'version' not in options:
         # Keep backwards compatibility with client containing
         # bug https://fedorahosted.org/freeipa/ticket/3294:
         # If `version` is not given in XML-RPC, assume an old version
         options['version'] = VERSION_WITHOUT_CAPABILITIES
     return (name, args, options, None)
Ejemplo n.º 4
0
 def unmarshal(self, data):
     (params, name) = xml_loads(data)
     (args, options) = params_2_args_options(params)
     return (name, args, options, None)
Ejemplo n.º 5
0
 def unmarshal(self, data):
     (params, name) = xml_loads(data)
     (args, options) = params_2_args_options(params)
     return (name, args, options, None)