Ignore:
Timestamp:
18 Jun 2012, 17:02:17 (12 years ago)
Author:
Henrik Bettermann
Message:

Disable QUERY_STRING processing until eTranzact has replied to Uli's mail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r8746 r8754  
    4343
    4444    def update(self, PAYEE_ID=None):
    45         # It seems eTranzact sends a POST request with an empty body but the URL
    46         # contains a query string. So it's actually a GET request pretended
    47         # to be a POST request. Although this does not comply with the
    48         # RFC 2616 HTTP guidelines we try to fetch the id from the QUERY_STRING
    49         # value of the request.
    5045        real_ip = self.request.get('HTTP_X_FORWARDED_FOR', None)
    5146        if real_ip  and ACCEPTED_IP:
     
    5348                self.output = '-4'
    5449                return
    55         if PAYEE_ID is None:
    56             try:
    57                 PAYEE_ID = self.request['QUERY_STRING'].split('=')[1]
    58             except:
    59                 self.output = '-2'
    60                 return
     50
     51        # It seems eTranzact sends a POST request with an empty body but the URL
     52        # contains a query string. So it's actually a GET request pretended
     53        # to be a POST request. Although this does not comply with the
     54        # RFC 2616 HTTP guidelines we may try to fetch the id from the QUERY_STRING
     55        # value of the request.
     56
     57        #if PAYEE_ID is None:
     58        #    try:
     59        #        PAYEE_ID = self.request['QUERY_STRING'].split('=')[1]
     60        #    except:
     61        #        self.output = '-2'
     62        #        return
     63
    6164        cat = getUtility(ICatalog, name='payments_catalog')
    6265        results = list(cat.searchResults(p_id=(PAYEE_ID, PAYEE_ID)))
Note: See TracChangeset for help on using the changeset viewer.