From 6eefe9bbc017d6859a1ef48d4dafff8fd66d14dc Mon Sep 17 00:00:00 2001 From: Brook Elgie Date: Mon, 7 Sep 2015 14:44:29 +0100 Subject: [PATCH] [#2617] package_form --> group_form in IGroupForm --- ckan/lib/plugins.py | 2 +- ckan/plugins/interfaces.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ckan/lib/plugins.py b/ckan/lib/plugins.py index ff596c9e2c7..0a5f7d8135e 100644 --- a/ckan/lib/plugins.py +++ b/ckan/lib/plugins.py @@ -439,7 +439,7 @@ def db_to_form_schema(self): into a format suitable for the form (optional)''' def db_to_form_schema_options(self, options): - '''This allows the selectino of different schemas for different + '''This allows the selection of different schemas for different purposes. It is optional and if not available, ``db_to_form_schema`` should be used. If a context is provided, and it contains a schema, it will be diff --git a/ckan/plugins/interfaces.py b/ckan/plugins/interfaces.py index 42af51c2082..9d40cf06ec5 100644 --- a/ckan/plugins/interfaces.py +++ b/ckan/plugins/interfaces.py @@ -1171,7 +1171,7 @@ class IGroupForm(Interface): The behaviour of the plugin is determined by 5 method hooks: - - package_form(self) + - group_form(self) - form_to_db_schema(self) - db_to_form_schema(self) - check_data_dict(self, data_dict) @@ -1220,7 +1220,7 @@ def group_types(self): ##### End of control methods - ##### Hooks for customising the PackageController's behaviour ##### + ##### Hooks for customising the GroupController's behaviour ##### ##### TODO: flesh out the docstrings a little more. ##### def new_template(self): """ @@ -1254,7 +1254,7 @@ def edit_template(self): rendered for the edit page """ - def package_form(self): + def group_form(self): """ Returns a string representing the location of the template to be rendered. e.g. "group/new_group_form.html".