2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-15 11:45:35 +00:00

Update metadata

Closes #282
This commit is contained in:
Matthias Mair
2022-05-25 22:30:33 +02:00
parent 57004689a8
commit a55a68d629
8 changed files with 25 additions and 24 deletions

View File

@ -11,7 +11,7 @@ When a certain (server-side) event occurs, the background worker passes the even
Implementing classes must provide a `process_event` function:
```python
class EventPlugin(EventMixin, IntegrationPluginBase):
class EventPlugin(EventMixin, InvenTreePlugin):
"""
A simple example plugin which responds to events on the InvenTree server.
@ -19,9 +19,9 @@ class EventPlugin(EventMixin, IntegrationPluginBase):
A more complex plugin could respond to specific events however it wanted.
"""
PLUGIN_NAME = "EventPlugin"
PLUGIN_SLUG = "event"
PLUGIN_TITLE = "Triggered Events"
NAME = "EventPlugin"
SLUG = "event"
TITLE = "Triggered Events"
def process_event(self, event, *args, **kwargs):
print(f"Processing triggered event: '{event}'")