edeposit.amqp.aleph_link_export
stable
  • link_export submodule
  • request_database submodule
  • shelvedb submodule
  • settings submodule
  • Request structures
  • Response structures
edeposit.amqp.aleph_link_export
  • Docs »
  • aleph_link_export
  • Edit on GitHub

aleph_link_export¶

aleph_link_export.reactToAMQPMessage(message, send_back)¶

React to given (AMQP) message. message is expected to be collections.namedtuple() structure from structures filled with all necessary data.

Parameters:
  • message (object) – One of the request objects defined in structures.
  • send_back (fn reference) – Reference to function for responding. This is useful for progress monitoring for example. Function takes one parameter, which may be response structure/namedtuple, or string or whatever would be normally returned.
Returns:

Response class from structures.

Return type:

object

Raises:

ValueError – if bad type of message structure is given.

Submodules¶

  • link_export submodule
  • request_database submodule
  • settings submodule
  • AMQP structures

© Copyright 2015 E-deposit team. Revision 5b6068a9.

Built with Sphinx using a theme provided by Read the Docs.