A beautiful content wrapper for SENAITE that you will love
About
The SENAITE CORE SUPERMODEL is a content wrapper for objects and catalog brains in SENAITE and provides a unified dictionary interface to access the schema fields, methods and metadata.
For what is it needed?
The purpose of the SUPERMODEL is to help coders to access the data from content objects. It also ensures that the most effective and efficient method is used to achieve a task.
How does it work?
A SuperModel can be instantiated with an UID of a content object:
>>> from senaite.core.supermodel import SuperModel
>>> supermodel = SuperModel('e37c1b659137414e872c08af410f09b4')
This will give transparent access to all schema fields of the wrapped object as well to all the metadata columns of the primary catalog of this object:
>>> supermodel.MySchemaField' 'Value of MySchemaField'
Please read the full functional doctest to see the super powers of the SuperModel in action.
Installation
SENAITE.CORE.SUPERMODEL is a dependency of SENAITE.CORE and therefore no additional installation steps are required.
Changelog
1.2.5 (2021-07-24)
version bump
1.2.4 (2020-08-04)
version bump
1.2.3 (2020-03-02)
#10 Fix API import
1.2.2 (2020-03-01)
#9 Support Dexterity Fields
1.2.1 (2019-07-01)
#8 Do not process “0” values to Portal-SuperModels
#7 Fix traceback when initializing a supermodel with a catalog brain
#6 Added Destructor and further improvements
#5 Fix UID->SuperModel conversion of UIDReferenceFields
#4 Skip private fields starting with _
1.2.0 (2019-03-30)
Compatibility release for SENAITE CORE 1.3.0
1.1.0 (2018-10-04)
#2 Allow to pass in a catalog brain or instance to initialize a SuperModel
1.0.0 (2018-07-19)
Initial Release
Metadata
Release files for senaite.core.supermodel 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| senaite.core.supermodel-1.2.5.zip | 26.8 kB | Without provenance | Details for senaite.core.supermodel-1.2.5.zip |
Release files / senaite.core.supermodel-1.2.5.zip
| Download URL | senaite.core.supermodel-1.2.5.zip |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31be09aae034c24fb5161721fe655929bf55967c1153037341aca602a0b66c7b
|
|
BLAKE2b-256 checksum How to use checksums |
af2987cc73d21a50f722b196d87ee7fadf7b81d47a1fdb69278df4d0fb87a081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/2.7.18
|
Security for senaite.core.supermodel 1.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.