summaryrefslogtreecommitdiff
path: root/taskflow/persistence/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace abc.abstractproperty with property and abc.abstractmethodljhuang2022-08-031-1/+2
| | | | | | | | | Replace abc.abstractproperty with property and abc.abstractmethod, as abc.abstractproperty has been deprecated since python3.3[1] [1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc Change-Id: I1bcecd99d8856c26621a5304d9f7f01f8f111918
* Remove sixTakashi Kajinami2022-05-181-6/+2
| | | | | | | | This library no longer supports Python 2, thus usage of six can be removed. This also removes workaround about pickle library used in Python 2 only. Change-Id: I19d298cf0f402d65f0b142dea0bf35cf992332a9
* Rename logbook module -> models moduleJoshua Harlow2015-07-081-2/+2
| | | | | | | | | | | Since this module contains more than the logbook class and really is a our generic models that are used to hold the runtime structure it is more appropriate to place it under a models module and deprecate the usage of the old module by placing a warning there (so that when it is imported that warning is triggered). Change-Id: I79def5ee08f560d38f2c9dcefd0b33becc2a4d36
* Remove 'pass' usage not neededJoshua Harlow2015-05-241-17/+0
| | | | | | | | These usages are not really needed and can just be eliminated since they offer no benefit (and coverage may classify them as dead/useless code). Change-Id: I951c4cb9216a19ce37dc8fc390ae905fd525a3c7
* lazy loading for logbooks and flowdetailsDan Krause2015-03-111-3/+8
| | | | | | | | | You can now specify a "lazy" argument when asking a persistence backend for a logbook for flowdetail. This will return a logbook with no flowdetails in it, or a flowdetail with no atomdetails in it, respectively. Change-Id: Ie81a19a2107b44e2c35c2a92507bec03eee55c50
* Persistence backend refactorDan Krause2015-03-091-0/+5
| | | | | | | Factors lots of duplicate code out of persistence backends Adds get_flows_for_book to all backends Change-Id: I0434bd4931cd9274876f9e9c92909531f244bcac
* add get_flow_details and get_atom_details to all backendsDan Krause2015-02-191-0/+10
| | | | Change-Id: Ic21a883b4eee827d90065f8ecfc5af2599ebece5
* Make all/most usage of type errors follow a similar patternJoshua Harlow2015-01-231-2/+2
| | | | | | | | | | | | | | | To make it easy to add new type errors and to make the existing ones have a common string pattern adjust the current type errors to contain at least the following string format: '%s' (%s) where these two places will be filled in with the object of the wrong type and the type of that object. This information is useful when analyzing the exception (by the user) to know exactly what they passed in and what type it was. This convention is not maintained where it would interpolate large text blobs (such as in binary encoding/decoding and json decoding). Change-Id: Id84b0e7ce684a543cc407b15016e77804e6f03ed
* Move the persistence base to the parent directoryJoshua Harlow2014-12-191-0/+126
In order to match the directory/module layout of the other pluggable backends better move the persistence base module that defines the base abstract classes up into the parent directory. This makes it easier to look at the taskflow code-base and understand the common layout. Change-Id: I7887cb0241b8fe65cbdfee32c101c3df5f05d27c