adding basic action reuse and recycling

This commit is contained in:
Cayo Puigdefabregas 2021-09-22 14:01:49 +02:00
parent 4adcff0d6e
commit b195e380a9
5 changed files with 28 additions and 1 deletions

View file

@ -10,6 +10,7 @@ ml).
## testing
[1.0.10-beta]
- [addend] #166 new action recycling and reuse
## [1.0.10-beta]

View file

@ -1 +1 @@
__version__ = "1.0.9-beta"
__version__ = "1.0.10-beta"

View file

@ -194,6 +194,16 @@ class ReadyDef(ActionDef):
SCHEMA = schemas.Ready
class RecyclingDef(ActionDef):
VIEW = None
SCHEMA = schemas.Recycling
class ReuseDef(ActionDef):
VIEW = None
SCHEMA = schemas.Reuse
class ToPrepareDef(ActionDef):
VIEW = None
SCHEMA = schemas.ToPrepare

View file

@ -1341,6 +1341,14 @@ class DataWipe(JoinedTableMixin, ActionWithMultipleDevices):
primaryjoin='DataWipe.document_id == DataWipeDocument.id')
class Recycling(ActionWithMultipleDevices):
"""This action mark one devices or container as recycled"""
class Reuse(ActionWithMultipleDevices):
"""This action mark one devices or container as reuse"""
class Prepare(ActionWithMultipleDevices):
"""Work has been performed to the device to a defined point of
acceptance.

View file

@ -423,6 +423,14 @@ class Ready(ActionWithMultipleDevices):
__doc__ = m.Ready.__doc__
class Recycling(ActionWithMultipleDevices):
__doc__ = m.Recycling.__doc__
class Reuse(ActionWithMultipleDevices):
__doc__ = m.Reuse.__doc__
class ToPrepare(ActionWithMultipleDevices):
__doc__ = m.ToPrepare.__doc__