Changeset 8240


Ignore:
Timestamp:
15/04/12 20:36:53 (8 years ago)
Author:
spascoe
Message:

The spash view now redirects to per-object RESTful URLs.

File:
1 edited

Legend:

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

    r8236 r8240  
    44@author: mnagni 
    55''' 
     6 
     7from django.shortcuts import redirect 
     8 
    69from MolesManager.views import cedaObservationView 
    710from MolesManager.ceda_guid import CedaGUID 
     
    1114    ceda_guid = Moles3EPB.search(CedaGUID, guid, request.moles_session) 
    1215    if ceda_guid and ceda_guid.ceda_observation: 
    13         return cedaObservationView.splash(request, ceda_guid.ceda_observation) 
     16        return redirect(cedaObservationView.coView, ceda_guid.ceda_observation) 
     17 
    1418    if ceda_guid and ceda_guid.ceda_observationcollection: 
    15         #return cedaObservationCollectionView.splash(request, ceda_guid.ceda_observationcollection) 
     19        #return rediect(cedaObservationCollectionView.FIXME_VIEW, ceda_guid.ceda_observationcollection) 
    1620        pass 
Note: See TracChangeset for help on using the changeset viewer.