source: mauRepo/MolesManager/trunk/src/MolesManager/views/cedacat.py @ 8336

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/views/cedacat.py@8336
Revision 8336, 620 bytes checked in by mnagni, 7 years ago (diff)

Fixed some gui bugs

Line 
1'''
2Created on 13 Apr 2012
3
4@author: mnagni
5'''
6
7from django.shortcuts import redirect
8
9from MolesManager.views import cedaObservationView
10from MolesManager.ceda_guid import CedaGUID
11from MolesManager.moles3epb import Moles3EPB
12
13def cedacat(request, guid):
14    ceda_guid = request.moles3EPB.search(CedaGUID, guid)
15    if ceda_guid and ceda_guid.ceda_observation:
16        return redirect(cedaObservationView.coView, ceda_guid.ceda_observation)
17
18    if ceda_guid and ceda_guid.ceda_observationcollection:
19        #return rediect(cedaObservationCollectionView.FIXME_VIEW, ceda_guid.ceda_observationcollection)
20        pass
Note: See TracBrowser for help on using the repository browser.