From d1decb5033fffc12cbd370b483ce81bbe6e42bc4 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 12 Jun 2015 12:59:52 -0700 Subject: [PATCH] Serializer entrypoint arguments listed in the wrong order. Closes #473 --- docs/userguide/serialization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/userguide/serialization.rst b/docs/userguide/serialization.rst index e65d6408..9f325575 100644 --- a/docs/userguide/serialization.rst +++ b/docs/userguide/serialization.rst @@ -131,7 +131,7 @@ entry-points. The entry-point must provide the name of the serializer along with the path to a tuple providing the rest of the args: -``decoder_function, encoder_function, content_type, content_encoding``. +``encoder_function, decoder_function, content_type, content_encoding``. An example entrypoint could be: @@ -152,7 +152,7 @@ Then the module ``my_module.serializer`` would look like: .. code-block:: python - register_args = (my_decoder, my_encoder, 'application/x-mimetype', 'utf-8') + register_args = (my_encoder, my_decoder, 'application/x-mimetype', 'utf-8') When this package is installed the new 'my_serializer' serializer will be