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

settings submodule¶

Module is containing all necessary global variables for the package.

Module also has the ability to read user-defined data from two paths:

  • $HOME/_SETTINGS_PATH
  • /etc/_SETTINGS_PATH

See _SETTINGS_PATH for details.

Note

If the first path is found, other is ignored.

Example of the configuration file ($HOME/edeposit/aleph_export.json):

{
    "REQUEST_FN": "/home/whatever/req.xml"
}

Attributes¶

aleph_link_export.settings.REQUEST_FN = '/home/aleph_export/edep2aleph/requests.xml'¶

Path to the XML file, where the requests will be stored.

aleph_link_export.settings.RESPONSE_FN = '/home/aleph_export/aleph2edep/responses.xml'¶

Path to the file, where the Aleph will put the XML responses.

aleph_link_export.settings.DATABASE_FN = '/home/aleph_export/request_datase.shelve'¶
aleph_link_export.settings.LOG_FN = '/home/aleph_export/link_export.log'¶

Path to the file, where the logs will be stored.

aleph_link_export.settings.DATABASE_KEY = 'request_database'¶

Don’t change this! Key for the database.

aleph_link_export.settings.EXPORT_XSD_LINK = 'http://edeposit-aplikace.nkp.cz/link_export_notification.xsd'¶

Link to the export XSD

aleph_link_export.settings.LOGGING_ENABLED = True¶

Logging enabled or not?

Next Previous

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

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