store_session
MLTE catalog store interface implementation.
CatalogEntryMapper
Bases: ResourceMapper
A interface for mapping CRUD actions to store entries.
Source code in mlte/store/catalog/store_session.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
create_with_header(entry, context=None, user=None)
Create an entry, generating the timestamp and adding creator. Internally calls the appropriate create implementation.
Source code in mlte/store/catalog/store_session.py
61 62 63 64 65 66 67 68 69 70 | |
edit_with_header(entry, context=None, user=None)
Edit an entry, generating the proper timestamp. Internally calls the appropriate create implementation.
Source code in mlte/store/catalog/store_session.py
72 73 74 75 76 77 78 79 80 81 | |
CatalogStoreSession
Bases: StoreSession
The base class for all implementations of the MLTE catalog store session.
Source code in mlte/store/catalog/store_session.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
entry_mapper
instance-attribute
Mapper for the entry resource.
read_only = False
class-attribute
instance-attribute
Whether this session is read only or not.
storage
instance-attribute
The underlying storage method.
get_uri()
Returns the URI of the store.
Source code in mlte/store/catalog/store_session.py
31 32 33 | |
ManagedCatalogSession
Bases: ManagedSession
A simple context manager for store sessions.
Source code in mlte/store/catalog/store_session.py
36 37 38 39 40 | |