Exemple #1
0
    def group_search_controller(self, group, pyramid_request):
        # Set the slug in the URL to the slug of the group.
        # Otherwise GroupSearchController will redirect the request to the
        # correct URL.
        pyramid_request.matchdict['slug'] = group.slug

        return activity.GroupSearchController(group, pyramid_request)
Exemple #2
0
    def controller(self, request, group, pyramid_request, query):
        test_group = group
        if "test_group" in request.fixturenames:
            test_group = request.getfixturevalue("test_group")

        context = GroupContext(test_group)
        controller = activity.GroupSearchController(context, pyramid_request)
        return controller
Exemple #3
0
 def controller(self, request, group, pyramid_request):
     test_group = group
     if 'test_group' in request.fixturenames:
         test_group = request.getfixturevalue('test_group')
     return activity.GroupSearchController(test_group, pyramid_request)
Exemple #4
0
 def controller(self, group, pyramid_request):
     return activity.GroupSearchController(group, pyramid_request)