diff options
author | Frederick Muriuki Muriithi | 2022-09-20 11:40:56 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-20 11:50:32 +0300 |
commit | 8f732461b897a7c229c3b49a74fd831c2e440989 (patch) | |
tree | 769f044294c118eb3aec631d3d26485b4280637e /wqflask/base/data_set/tempdataset.py | |
parent | ce07180fbc07fbf61d4dc26bf5d20cdf6f7df91f (diff) | |
download | genenetwork2-8f732461b897a7c229c3b49a74fd831c2e440989.tar.gz |
Decompose file into separate modulesrefactor-data_set_py-20220920
To ease future refactors on the code, decompose the file into a module
with multiple modules that can be refactored semi-independently.
Diffstat (limited to 'wqflask/base/data_set/tempdataset.py')
-rw-r--r-- | wqflask/base/data_set/tempdataset.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/wqflask/base/data_set/tempdataset.py b/wqflask/base/data_set/tempdataset.py new file mode 100644 index 00000000..b1c26a3b --- /dev/null +++ b/wqflask/base/data_set/tempdataset.py @@ -0,0 +1,23 @@ +"TempDataSet class ..." + +from .dataset import DataSet + +class TempDataSet(DataSet): + """Temporary user-generated data set""" + + def setup(self): + self.search_fields = ['name', + 'description'] + + self.display_fields = ['name', + 'description'] + + self.header_fields = ['Name', + 'Description'] + + self.type = 'Temp' + + # Need to double check later how these are used + self.id = 1 + self.fullname = 'Temporary Storage' + self.shortname = 'Temp' |