Ignore:
Timestamp:
16/08/07 14:01:56 (12 years ago)
Author:
lawrence
Message:

Fixing the strip problem (the string method strip doesn't
do what you intuitively think it will do!)

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server/models
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/ndgSearch.py

    r2615 r2820  
    22from DiscoveryService_services_types import * 
    33from DiscoveryService_services import * 
     4import os.path 
    45 
    56#normal imports 
     
    186187        results=[] 
    187188        for i in indices: 
    188             results.append((filenames[i].strip('.xml'),responses[i])) 
     189            ####results.append((filenames[i].strip('.xml'),responses[i])) 
     190            ####Wow, 'higem.xml'.strip('.xml') = hige ... and that's what split is supposed to do! 
     191            ff=os.path.splitext(filenames[i]) 
     192            results.append((ff[0],responses[i])) 
    189193        return results 
    190194         
Note: See TracChangeset for help on using the changeset viewer.