Ignore:
Timestamp:
18/05/09 17:18:17 (11 years ago)
Author:
cbyrom
Message:

Retrieve the 'orderByFieldList' data from the discovery ws + add new
drop down to set the order by direction and implement the logic
for using this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/config/milkMiddleware.py

    r5302 r5303  
    66from ndg.common.src.lib.atomvalidator import AtomValidator 
    77from ndg.common.src.clients.http.vocabserverclient import VocabServerClient 
     8from ndg.common.src.clients.ws.discovery.discoveryserviceclient import DiscoveryServiceClient 
    89import milk_server.lib.helpers as h 
    910 
     
    7879        # used by discoveryServiceClient 
    7980        self.globals.discoveryServiceURL = cf.get('DISCOVERY', 'discoveryServiceURL') 
     81 
     82        searchClient = DiscoveryServiceClient(HostAndPort = self.globals.discoveryServiceURL) 
     83        # Look up values to use in the 'order by' list 
     84        orderByVals = searchClient.getList('orderByFieldList') 
     85        self.globals.orderByList = orderByVals 
    8086                 
    8187        self.globals.pwFile = cf.get('NDG_EXIST','passwordFile') 
     
    193199        g.example_granulite = g.example_granulite.replace('HREF', \ 
    194200            h.url_for('example')) 
    195          
    196          
     201 
     202 
    197203    def __call__(self,environ,start_response): 
    198204         
Note: See TracChangeset for help on using the changeset viewer.