Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1841] make plugins.toolkit more like a normal module
- Loading branch information
Showing
3 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
from ckan.plugins.core import * | ||
from ckan.plugins.interfaces import * | ||
|
||
# Expose the toolkit object without doing an import * | ||
import toolkit as _toolkit | ||
toolkit = _toolkit.toolkit | ||
del _toolkit | ||
import toolkit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters