Ignore:
Timestamp:
10/08/12 15:32:06 (8 years ago)
Author:
mnagni
Message:

Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534

File:
1 edited

Legend:

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

    r8503 r8507  
    99import cedaObservationView 
    1010import cedaObservationCollectionView 
     11from cedaMoles.MolesManager.molesSessionMiddleware import mm_render_to_response 
    1112 
    1213def getResponseByGuid(request, guid): 
     
    4849 
    4950def coSearch(request): 
    50     c = {}     
     51    context = {}     
    5152    if 'searchTerm' in request.POST: 
    52         c['searchResults'] = __doSearch(request, request.POST['searchTerm']) 
     53        context['searchResults'] = __doSearch(request, request.POST['searchTerm']) 
    5354             
    54     c.update(csrf(request)) 
    55     if c == {} : 
    56         return render_to_response('cedaObservation.html', c 
     55    context.update(csrf(request)) 
     56    if context == {} : 
     57        return render_to_response('cedaObservation.html', context 
    5758    else : 
    5859        found = False 
    5960    try: 
    60         a = c['searchResults'] 
     61        a = context['searchResults'] 
    6162        found = True 
    6263    except Exception, ex: 
    6364        pass 
    6465    if not found: 
    65             return render_to_response('cedaSearch.html', c) 
    66     return render_to_response('cedaSearchResults.html', c) 
     66            return mm_render_to_response(request, context, 'cedaSearch.html') 
     67    return mm_render_to_response(request, context, 'cedaSearchResults.html') 
Note: See TracChangeset for help on using the changeset viewer.