Changeset 6061

Show
Ignore:
Timestamp:
01/11/13 13:45:56 (6 years ago)
Author:
gpress
Message:

addresses tickets #1140 and #1142 fixing 'Clearinghouse XMLRPC interface cannot be reached' error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/seattlegeni/website/xmlrpc/dispatcher.py

    r5488 r6061  
    2323 
    2424from seattlegeni.website.xmlrpc.views import PublicXMLRPCFunctions 
    25  
     25from django.views.decorators.csrf import csrf_exempt 
    2626 
    2727 
    2828# This is the url that will be displayed if the xmlrpc service is requested 
    2929# directory through a web browser (that is, through a GET request). 
    30 SEATTLECLEARINGHOUSE_XMLRPC_API_DOC_URL = "https://seattle.cs.washington.edu/wiki/SeattleGeniAPI" 
     30SEATTLECLEARINGHOUSE_XMLRPC_API_DOC_URL = "https://seattle.cs.washington.edu/wiki/SeattleGeniApi" 
    3131 
    3232# Create a Dispatcher. This handles the calls and translates info to function maps. 
     
    3636 
    3737 
    38  
     38@csrf_exempt 
    3939def rpc_handler(request): 
    4040  """ 
     
    5757  else: 
    5858    response.write("<b>This is the SeattleGeni XML-RPC Service.</b><br>") 
    59     response.write("Please see " + SEATTLECLEARINGHOUSE_XMLRPC_API_DOC_URL + " for more information.") 
     59    response.write("Please see <a href=" + SEATTLECLEARINGHOUSE_XMLRPC_API_DOC_URL + ">" + SEATTLECLEARINGHOUSE_XMLRPC_API_DOC_URL + "</a> for more information.") 
    6060 
    6161  response['Content-length'] = str(len(response.content))