rename VIEWPROVIER_EXTENSIONS to just EXTENSIONS, its clear enough which class we're on
This commit is contained in:
parent
b5a1e8c71d
commit
527d493c1b
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ from .. import settings
|
|||
class BaseViewProvider:
|
||||
ICON = None
|
||||
TYPE = None
|
||||
VIEWPROVIDER_EXTENSIONS = []
|
||||
EXTENSIONS = []
|
||||
|
||||
def __init__(self, viewprovider):
|
||||
self.viewprovider = viewprovider
|
||||
|
@ -22,8 +22,8 @@ class BaseViewProvider:
|
|||
self.setup_extensions()
|
||||
|
||||
def setup_extensions(self):
|
||||
if hasattr(self, 'VIEWPROVIDER_EXTENSIONS'):
|
||||
for ext in self.VIEWPROVIDER_EXTENSIONS:
|
||||
if hasattr(self, 'EXTENSIONS'):
|
||||
for ext in self.EXTENSIONS:
|
||||
self.feature.addExtension(ext)
|
||||
|
||||
def attach(self, vobj):
|
||||
|
|
Loading…
Add table
Reference in a new issue