In mytemplates/thewebapp make the template listservices.html
Enter the following into the file
{% if the_username %}
Hello <b>{{ the_username }}</b>, you are logged in. Do you want to <a href="/logout/">Logout?</a><br>
{% else %}
Hello, do you want to <a href="/login/">Login</a> to save queries and query secure data services?<br>
{% endif %}
<h1>List Services</h1>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<form action="/listservices/"><input type="radio" name="service" value="1">All Services<br><input type="radio" name="service" value="2">Data Services<br><input type="radio" name="service" value="3">Analytical Services<br><input type="submit" value="Submit" /></form>
{% if services %}
{% for aservice in services %}
{{ aservice }}<br>
{% endfor %}
{% endif %}
<a href="/index/">Back to the Index</a><br>
Save the file
Step 2: Add the List methods
Open GridClient/views.py
Add imports, don't worry if eclipse complains about the imports
from gov.nih.nci.cagrid.discovery.client import DiscoveryClient
from gov.nih.nci.cagrid.metadata import MetadataUtils
from org.apache.axis.types.URI import MalformedURIException
from gov.nih.nci.cagrid.metadata.exceptions import QueryInvalidException, RemoteResourcePropertyRetrievalException, ResourcePropertyRetrievalException
Add public variables
#make a discoveryClient with the index service url
discClient=DiscoveryClient(props.getProperty(DEFAULT_INDEX_SERVICE_URL_PROP))