Part of lp.services.webservice
Many of the exports for the webservice entries deliberately set various
types to Interface
because using the real types cause circular import
problems.
The only current option is to later patch the types to the correct value. The helper functions in this file make that easy.
Function | patch_entry_return_type | Update return type for a webservice method that returns entries. |
Function | patch_collection_return_type | Update return type for a webservice method that returns a collection. |
Function | patch_list_parameter_type | Update a list parameter type for a webservice method. |
Function | patch_plain_parameter_type | Update a plain parameter type for a webservice method. |
Function | patch_choice_parameter_type | Update a Choice parameter type for a webservice method. |
Function | patch_reference_property | Set the type of the given property on the given class. |
Function | patch_collection_property | Set the collection type of the given property on the given class. |
Function | patch_choice_property | Set the Choice type of the given property on the given class. |
Function | patch_entry_explicit_version | Make it look as though an entry definition used as_of. |
Function | patch_operations_explicit_version | Make it look like operations' first tags were @operation_for_version. |
Function | patch_operation_explicit_version | Make it look like an operation's first tag was @operation_for_version. |
Parameters | exported_class | The class containing the method. |
method_name | The method name that you need to patch. | |
return_type | The new return type for the method. |
Parameters | exported_class | The class containing the method. |
method_name | The method name that you need to patch. | |
return_type | The new return type for the method. |
Parameters | exported_class | The class containing the method. |
method_name | The method name that you need to patch. | |
param_name | The name of the parameter that you need to patch. | |
param_type | The new type for the parameter. |
Parameters | exported_class | The class containing the method. |
method_name | The method name that you need to patch. | |
param_name | The name of the parameter that you need to patch. | |
param_type | The new type for the parameter. |
Choice
parameter type for a webservice method.Parameters | exported_class | The class containing the method. |
method_name | The method name that you need to patch. | |
param_name | The name of the parameter that you need to patch. | |
choice_type | The new choice type for the parameter. |
Parameters | exported_class | The class containing the property. |
property_name | The name of the property whose type you need to patch. | |
property_type | The new type for the property. |
Parameters | exported_class | The class containing the property. |
property_name | The name of the property whose type you need to patch. | |
collection_type | The Collection type. |
Choice
type of the given property on the given class.Parameters | exported_class | The class containing the property. |
property_name | The name of the property whose type you need to patch. | |
choice_type | The new Choice type for the property. |
This function should be phased out in favor of actually using as_of. This function patches the entry's fields as well as the entry itself. Fields that are explicitly published as of a given version (even though the entry is not) are ignored.