store
mlte/store/catalog/store.py
MLTE catalog store interface implementation.
CatalogEntryMapper
Bases: ResourceMapper
A interface for mapping CRUD actions to store entries.
Source code in mlte/store/catalog/store.py
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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
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.py
75 76 77 78 79 80 81 82 83 84 |
|
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.py
86 87 88 89 90 91 92 93 94 95 |
|
CatalogStore
Bases: Store
Source code in mlte/store/catalog/store.py
24 25 26 27 28 29 30 |
|
read_only = False
class-attribute
instance-attribute
Whether this catalog is read only or not.
session()
Return a session handle for a catalog store session instance.
Source code in mlte/store/catalog/store.py
28 29 30 |
|
CatalogStoreSession
Bases: StoreSession
The base class for all implementations of the MLTE catalog store session.
Source code in mlte/store/catalog/store.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
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.py
45 46 47 |
|
ManagedCatalogSession
Bases: ManagedSession
A simple context manager for store sessions.
Source code in mlte/store/catalog/store.py
50 51 52 53 54 |
|