|
@@ -20,7 +20,7 @@ class PluginStore():
|
|
self.plugins = []
|
|
self.plugins = []
|
|
|
|
|
|
def __iter__(self):
|
|
def __iter__(self):
|
|
- for plugin in plugins:
|
|
|
|
|
|
+ for plugin in self.plugins:
|
|
yield plugin
|
|
yield plugin
|
|
|
|
|
|
def register(self, *plugins):
|
|
def register(self, *plugins):
|
|
@@ -33,7 +33,7 @@ class PluginStore():
|
|
|
|
|
|
def call(self, plugin_type, request, *args, **kwargs):
|
|
def call(self, plugin_type, request, *args, **kwargs):
|
|
ret = True
|
|
ret = True
|
|
- for plugin in self.plugins:
|
|
|
|
|
|
+ for plugin in request.user_plugins:
|
|
if hasattr(plugin, plugin_type):
|
|
if hasattr(plugin, plugin_type):
|
|
ret = getattr(plugin, plugin_type)(request, *args, **kwargs)
|
|
ret = getattr(plugin, plugin_type)(request, *args, **kwargs)
|
|
if not ret:
|
|
if not ret:
|