2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-18 21:25:29 +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

@ -27,16 +27,16 @@ Plugins which implement the `LabelPrintingMixin` mixin class must provide a `pri
```python
from dummy_printer import printer_backend
class MyLabelPrinter(LabelPrintingMixin, IntegrationPluginBase):
class MyLabelPrinter(LabelPrintingMixin, InvenTreePlugin):
"""
A simple example plugin which provides support for a dummy printer.
A more complex plugin would communicate with an actual printer!
"""
PLUGIN_NAME = "MyLabelPrinter"
PLUGIN_SLUG = "mylabel"
PLUGIN_TITLE = "A dummy printer"
NAME = "MyLabelPrinter"
SLUG = "mylabel"
TITLE = "A dummy printer"
def print_label(self, label, **kwargs):
"""