Changeset 8291 for mauRepo


Ignore:
Timestamp:
25/04/12 14:16:23 (8 years ago)
Author:
jhorton
Message:

fixed search quoting issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/views/cedaSearch.py

    r8290 r8291  
    2323        @return: the first Observation or None  
    2424        ''' 
     25    if not keywords.startswith("'"): 
     26        keywords = "'" + keywords 
     27    if not keywords.endswith("'"): 
     28        keywords = keywords + "'" 
    2529    obsevations = Moles3EPB.extractObservationByTitleKeywords(keywords, request.moles_session)       
    2630    titles = [] 
Note: See TracChangeset for help on using the changeset viewer.