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/cedaObservationView.py

    r8486 r8507  
    3636from ea_model.ceda_metadatamodel.ceda_observation.ceda_observation import CEDA_Observation 
    3737from cedaMoles.MolesManager.views.moles2gui import encodeCedaMoles2Json 
     38from cedaMoles.MolesManager.molesSessionMiddleware import mm_render_to_response 
    3839 
    3940 
     
    5051     
    5152def _finalizeResponse(request, record): 
    52     c = {} 
     53    context = {} 
    5354    if record: 
    54         c['coObs'] = encodeToJSON(record) 
     55        context['coObs'] = encodeToJSON(record) 
    5556         
    56         #c['new_coObs'] = encodeCedaMoles2Json(record) 
     57        context['new_coObs'] = encodeCedaMoles2Json(record) 
    5758         
    5859        guid = request.moles3EPB.retrieveGUIDFromInstance(record) 
    5960        if guid: 
    60             c['guid'] = guid.id 
    61             print c['guid'] 
    62         print c['coObs']  
    63      
    64     c.update(csrf(request)) 
    65     return render_to_response('cedaObservation.html', c) 
     61            context['guid'] = guid.id 
     62            print context['guid'] 
     63        print context['coObs']  
     64         
     65    return mm_render_to_response(request, 'cedaObservation.html', context) 
    6666 
    6767def _getCedaObservation(request, obs_id):     
Note: See TracChangeset for help on using the changeset viewer.