Skip to content

Commit

Permalink
[#2617] package_form --> group_form in IGroupForm
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Sep 7, 2015
1 parent 78ca144 commit 6eefe9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ckan/lib/plugins.py
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions ckan/plugins/interfaces.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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".
Expand Down

0 comments on commit 6eefe9b

Please sign in to comment.