Skip to content

Commit

Permalink
Update sip
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 7, 2017
1 parent ebd8519 commit 1aa7ca3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/core/processing/qgsprocessingprovider.sip
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ class QgsProcessingProvider : QObject
%Docstring
Loads the provider. This will be called when the plugin is being loaded, and any general
setup actions should occur in an overridden version of this method.
Subclasses should not load any algorithms in their load() implementations, as that must
occur within the loadAlgorithms() method.
Subclasses should not individually load any algorithms in their load() implementations, as that must
occur within the loadAlgorithms() method. Instead, subclasses should call refreshAlgorithms()
from any overloaded load() method to trigger an initial load of the provider's algorithms.
\returns true if provider could be successfully loaded
\see unload()
%End
Expand Down
2 changes: 2 additions & 0 deletions python/core/processing/qgsprocessingregistry.sip
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class QgsProcessingRegistry : QObject
and the provider's parent will be set to the registry.
Returns false if the provider could not be added (eg if a provider with a duplicate ID already exists
in the registry).
Adding a provider to the registry automatically triggers the providers QgsProcessingProvider::load()
method to populate the provider with algorithms.
\see removeProvider()
%End

Expand Down

0 comments on commit 1aa7ca3

Please sign in to comment.