mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
structure comment
This commit is contained in:
parent
905b164ecb
commit
2fee6b02db
@ -10,6 +10,7 @@ from plugin import registry
|
|||||||
logger = logging.getLogger('inventree')
|
logger = logging.getLogger('inventree')
|
||||||
|
|
||||||
|
|
||||||
|
# region methods
|
||||||
class NotificationMethod:
|
class NotificationMethod:
|
||||||
"""
|
"""
|
||||||
Base class for notification methods
|
Base class for notification methods
|
||||||
@ -112,6 +113,7 @@ class NotificationMethod:
|
|||||||
return False
|
return False
|
||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
|
||||||
class SingleNotificationMethod(NotificationMethod):
|
class SingleNotificationMethod(NotificationMethod):
|
||||||
def send(self, target):
|
def send(self, target):
|
||||||
raise NotImplementedError('The `send` method must be overriden!')
|
raise NotImplementedError('The `send` method must be overriden!')
|
||||||
@ -120,6 +122,7 @@ class SingleNotificationMethod(NotificationMethod):
|
|||||||
class BulkNotificationMethod(NotificationMethod):
|
class BulkNotificationMethod(NotificationMethod):
|
||||||
def send_bulk(self):
|
def send_bulk(self):
|
||||||
raise NotImplementedError('The `send` method must be overriden!')
|
raise NotImplementedError('The `send` method must be overriden!')
|
||||||
|
# endregion
|
||||||
|
|
||||||
|
|
||||||
class MethodStorageClass:
|
class MethodStorageClass:
|
||||||
|
Loading…
Reference in New Issue
Block a user