Feature/couchdb update commit
3 unresolved threads
3 unresolved threads
Compare changes
+ 56
− 3
@@ -427,7 +427,45 @@ class CouchDBObjectStore(model.AbstractObjectStore):
@@ -427,7 +427,45 @@ class CouchDBObjectStore(model.AbstractObjectStore):
Special base class for Identifiable PyI40AAS retrieved from the CouchDBObjectStore, allowing to write back (commit)
@@ -435,7 +473,7 @@ class CouchDBIdentifiable(model.Identifiable, metaclass=abc.ABCMeta):
@@ -435,7 +473,7 @@ class CouchDBIdentifiable(model.Identifiable, metaclass=abc.ABCMeta):
This is an abstract base class. For each Identifiable AAS object type, there is one subclass, inheriting from this
This base class provides the `commit_changes()` method and the `_store` and `couchdb_revision` attributes required
to perform the commit action. `_store` holds a reference to the CouchDBObjectStore instance; `couchdb_revision`
contains the CouchDB document revision token of the latest object revision in the database. It is transferred to
@@ -446,11 +484,26 @@ class CouchDBIdentifiable(model.Identifiable, metaclass=abc.ABCMeta):
@@ -446,11 +484,26 @@ class CouchDBIdentifiable(model.Identifiable, metaclass=abc.ABCMeta):
How is this class used? As far as I can see, this base class is not applied to the Referable objects which are returned from the CouchDB. However, this is required to make the implemented functionality work.