How to access senaite lims database

Hi @prabba90,

Senaite relays on ZODB, an oriented object database. To get readable data from the DB you have to access the Python object stored as a “pickle” and then instantiate it.

As I see it, you have two options to get/export/import data from/to Senaite:

  • You can create your own addon:
  1. Read Plone documentation to understand the addon creation: https://docs.plone.org/4/en/develop/addons/helloworld/extend/index.html

  2. Build an Add-on from scratch. You can copy https://github.com/senaite/senaite.core.supermodel as your template and rename/add the things you need).

  3. Make use of Senaite internal API (https://github.com/senaite/senaite.core/tree/master/bika/lims/api). You will find some examples about how to use the API functions here: https://github.com/senaite/senaite.core/tree/master/bika/lims/tests/doctests

Regards,

1 Like