Making sure we can determine whether the group_form() func was called
Making sure we can determine whether the group_form() func was called

--- a/ckanext/example/forms.py
+++ b/ckanext/example/forms.py
@@ -16,7 +16,7 @@
 from ckan.lib.navl.dictization_functions import Invalid
 from ckan.lib.navl.dictization_functions import validate, missing
 from ckan.lib.navl.dictization_functions import DataError, flatten_dict, unflatten
-from ckan.plugins import IDatasetForm, IConfigurer
+from ckan.plugins import IDatasetForm, IGroupForm, IConfigurer
 from ckan.plugins import implements, SingletonPlugin
 
 from ckan.lib.navl.validators import (ignore_missing,
@@ -63,7 +63,22 @@
         Returns a string representing the location of the template to be
         rendered.  e.g. "forms/group_form.html".
         """        
+        from pdb import set_trace; set_trace()
+        
         return 'forms/group_form.html'
+
+    def group_types(self):
+        """
+        Returns an iterable of group type strings.
+
+        If a request involving a group of one of those types is made, then
+        this plugin instance will be delegated to.
+
+        There must only be one plugin registered to each group type.  Any
+        attempts to register more than one plugin instance to a given group
+        type will raise an exception at startup.
+        """
+        return ["example"]
 
     def is_fallback(self):
         """

--- a/ckanext/example/theme/templates/forms/group_form.html
+++ b/ckanext/example/theme/templates/forms/group_form.html
@@ -14,7 +14,7 @@
 
 <fieldset id="basic-information">
   <dl>
-    <dt><label class="field_opt" for="name">Title</label></dt>
+    <dt><label class="field_opt" for="name">The Title</label></dt>
     <dd><input class="js-title" id="title" name="title" type="text" value="${data.get('title', '')}"/></dd>
 
     <dt><label class="field_opt" for="title">Url</label></dt>