Example #1
0
 def _post_feedback(self):
     '''
     Redirects the user to the home page and flashes a message,
     acknowledging the feedback.
     '''
     context = {
         'name': request.params['name'],
         'email': request.params['email'],
         'feedback': request.params['feedback']
     }
     feedback.send_feedback(context)
     h.flash_notice(_('Thank you for your feedback'))
     h.redirect_to(controller='home', action='index')
     return
Example #2
0
 def _post_feedback(self):
     '''
     Redirects the user to the home page and flashes a message,
     acknowledging the feedback.
     '''
     context = {
         'name': request.params['name'],
         'email': request.params['email'],
         'feedback': request.params['feedback'],
         'package_name': request.params.get('package_name'),
         'referrer': request.referrer
     }
     feedback.send_feedback(context)
     h.flash_notice(_('Thank you for your feedback'))
     if context['package_name'] is None:
         h.redirect_to(controller='home', action='index')
     else:
         h.redirect_to(controller='package', action='read', id=context['package_name'])
     return
Example #3
0
 def _post_feedback(self):
     '''
     Redirects the user to the home page and flashes a message,
     acknowledging the feedback.
     '''
     context = {
         'name': request.params['name'],
         'email': request.params['email'],
         'feedback': request.params['feedback'],
         'package_name': request.params.get('package_name'),
         'referrer': request.referrer
     }
     feedback.send_feedback(context)
     h.flash_notice(_('Thank you for your feedback'))
     if context['package_name'] is None:
         h.redirect_to(controller='home', action='index')
     else:
         h.redirect_to(controller='package', action='read', id=context['package_name'])
     return