-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
from ckan.plugins.interfaces import Interface | ||
|
||
|
||
class IClone(Interface): | ||
u''' | ||
This interface allows plugins to hook into the Clone workflow | ||
''' | ||
def clone_modify_dataset(self, context, dataset_dict): | ||
u''' | ||
Allow extensions to modify the dataset dictionary before the new cloned dataset is created | ||
:param context: The context object of the current request, this | ||
includes for example access to the ``model`` and the ``user``. | ||
:type context: dictionary | ||
:param dataset_dict: Dataset dictionary from source dataset via package_show action that can be modified before it is created via the package_create action. | ||
:type resource: dictionary | ||
''' | ||
pass |
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