Changeset 14803


Ignore:
Timestamp:
15 Aug 2017, 06:20:51 (7 years ago)
Author:
Henrik Bettermann
Message:

A better way to disable the webservice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/remita/webservices.py

    r14802 r14803  
    2727    """
    2828
    29     #ACCEPTED_IP = ('127.0.0.1', '209.235.215.199', '162.13.211.91',
    30     #               '162.13.211.92', '83.138.167.2',)
    31 
    32     ACCEPTED_IP = ('127.0.0.1', )
     29    ACCEPTED_IP = ('127.0.0.1', '209.235.215.199', '162.13.211.91',
     30                   '162.13.211.92', '83.138.167.2',)
    3331
    3432    merchantId = MERCHANTID
     
    3634    https = HTTPS
    3735    api_key = API_KEY
     36
     37    def update(self, P_ID=None):
     38        self.output = 'Webservice disabled'
     39        return
Note: See TracChangeset for help on using the changeset viewer.