mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
docstrings
This commit is contained in:
parent
d215af45f1
commit
0f7c277e69
@ -24,11 +24,16 @@ class InvenTreePlugin():
|
|||||||
|
|
||||||
def plugin_name(self):
|
def plugin_name(self):
|
||||||
"""
|
"""
|
||||||
Return the name of this plugin plugin
|
Name of plugin
|
||||||
"""
|
"""
|
||||||
return self.PLUGIN_NAME
|
return self.PLUGIN_NAME
|
||||||
|
|
||||||
def plugin_slug(self):
|
def plugin_slug(self):
|
||||||
|
"""
|
||||||
|
Slug of plugin
|
||||||
|
If not set plugin name slugified
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
slug = getattr(self, 'PLUGIN_SLUG', None)
|
slug = getattr(self, 'PLUGIN_SLUG', None)
|
||||||
|
|
||||||
@ -38,6 +43,9 @@ class InvenTreePlugin():
|
|||||||
return slugify(slug.lower())
|
return slugify(slug.lower())
|
||||||
|
|
||||||
def plugin_title(self):
|
def plugin_title(self):
|
||||||
|
"""
|
||||||
|
Title of plugin
|
||||||
|
"""
|
||||||
|
|
||||||
if self.PLUGIN_TITLE:
|
if self.PLUGIN_TITLE:
|
||||||
return self.PLUGIN_TITLE
|
return self.PLUGIN_TITLE
|
||||||
|
Loading…
Reference in New Issue
Block a user