Skip to content

Commit

Permalink
[#2939] Update org controller docstring and minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Sep 27, 2012
1 parent 6c4f6f7 commit 16333d9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ckan/controllers/organization.py
@@ -1,6 +1,15 @@
import ckan.controllers.group as group

class OrganizationController(group.GroupController):
''' The organization controller is pretty much just the group
controller. It has a few templates defined that are different and sets
the group_type to organization so that the group controller knows that
it is in fact the organization controller. All the main logical
differences are therefore in the group controller.
The main differences the group controller provides for organizations are
a few wrapper functions that swap organization for group when rendering
templates, redirecting or calling logic actions '''

# this makes us use organization actions
group_type = 'organization'
Expand All @@ -14,7 +23,7 @@ def _form_to_db_schema(self, group_type=None):
def _db_to_form_schema(self, group_type=None):
'''This is an interface to manipulate data from the database
into a format suitable for the form (optional)'''
return lookup_group_plugin(group_type).db_to_form_schema()
pass

def _setup_template_variables(self, context, data_dict, group_type=None):
pass
Expand Down

0 comments on commit 16333d9

Please sign in to comment.