# Path: ckanext/ioos_theme/lib/feedback.py
# def send_feedback(context):


from ckan.lib.base import BaseController, render, _
from ckan.lib import helpers as h
from ckan.common import request
from ckanext.ioos_theme.lib import feedback
from pylons import config
import logging
import urllib.request, urllib.parse, urllib.error
import urllib.request, urllib.error, urllib.parse
import json
#!/usr/bin/env python
'''
ckanext/ioos_theme/controllers/feedback.py

IOOS Theme Feedback Controller
'''

class FeedbackController(BaseController):
    '''
    The FeedbackController renders a Feedback Form and accepts an HTTP POST to
    /feedback with the Form parameters. On a POST it will flash a notice
    thanking the user for their feedback and then redirect to the home page.
    '''

    def index(self, data=None, errors=None, error_summary=None,
              package_name=None):
        '''
        Returns a render for the feedback form.

        :param dict data: Unused
        :param dict errors: Any validation errors that the user has entered
                            will be passed to the controller
        :param dict error_summary: Summary of any validation errors
        '''
        name = ""
        email = ""

# Path: ckanext/ioos_theme/lib/feedback.py
# def send_feedback(context):


# Path: ckanext/ioos_theme/controllers/feedback.py
from ckan.lib.base import BaseController, render, _
from ckan.lib import helpers as h
from ckan.common import request
from ckanext.ioos_theme.lib import feedback
from pylons import config
import logging
import urllib.request, urllib.parse, urllib.error
import urllib.request, urllib.error, urllib.parse
import json

#!/usr/bin/env python
'''
ckanext/ioos_theme/controllers/feedback.py

IOOS Theme Feedback Controller
'''

class FeedbackController(BaseController):
    '''
    The FeedbackController renders a Feedback Form and accepts an HTTP POST to
    /feedback with the Form parameters. On a POST it will flash a notice
    thanking the user for their feedback and then redirect to the home page.
    '''

    def index(self, data=None, errors=None, error_summary=None,
              package_name=None):
        '''
        Returns a render for the feedback form.

        :param dict data: Unused
        :param dict errors: Any validation errors that the user has entered
                            will be passed to the controller
        :param dict error_summary: Summary of any validation errors
        '''
        name = ""
        email = ""

        feedback = ""