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')
|
||||
|
||||
|
||||
# region methods
|
||||
class NotificationMethod:
|
||||
"""
|
||||
Base class for notification methods
|
||||
@ -112,6 +113,7 @@ class NotificationMethod:
|
||||
return False
|
||||
# endregion
|
||||
|
||||
|
||||
class SingleNotificationMethod(NotificationMethod):
|
||||
def send(self, target):
|
||||
raise NotImplementedError('The `send` method must be overriden!')
|
||||
@ -120,6 +122,7 @@ class SingleNotificationMethod(NotificationMethod):
|
||||
class BulkNotificationMethod(NotificationMethod):
|
||||
def send_bulk(self):
|
||||
raise NotImplementedError('The `send` method must be overriden!')
|
||||
# endregion
|
||||
|
||||
|
||||
class MethodStorageClass:
|
||||
|
Loading…
Reference in New Issue
Block a user