hunk.code_window:                       <h5>
                             <a t-attf-href="/shop/product/#{ slug(product) }" style="display: block">
                                 <span t-field='product.name' style="display: block"/>
                             </a>
                         </h5>
                     </div>
                 </div>
  
hunk.labels: keep keep replace keep keep keep keep
hunk.after_edit:                               <span t-att-title='product.name' t-field='product.name' style="display: block; max-width:100%;
                                 overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"/>
  
hunk.file_path: addons/website_sale/views/templates.xml
hunk.type: replace
file: # -*- coding: utf-8 -*-
  
  try:
      import simplejson as json
  except ImportError:
      import json
  import logging
  import pprint
  import werkzeug
  
  from openerp import http, SUPERUSER_ID
  from openerp.http import request
  
  _logger = logging.getLogger(__name__)
  
  
  class AdyenController(http.Controller):
      _return_url = '/payment/adyen/return/'
  
      @http.route([
          '/payment/adyen/return/',
      ], type='http', auth='none')
      def adyen_return(self, **post):
          _logger.info('Beginning Adyen form_feedback with post data %s', pprint.pformat(post))  # debug
          if post.get('authResult') not in ['CANCELLED']:
              request.registry['payment.transaction'].form_feedback(request.cr, SUPERUSER_ID, post, 'adyen', context=request.context)
          return_url = post.pop('return_url', '')
          if not return_url:
              custom = json.loads(post.pop('merchantReturnData', '{}'))
              return_url = custom.pop('return_url', '/')
          return werkzeug.utils.redirect(return_url)
  