Changeset 2811
- Timestamp:
- 15/08/07 18:01:30 (14 years ago)
- Location:
- TI05-delivery/ows_framework/trunk/ows_server/ows_server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/retrieve.py
r2802 r2811 39 39 c.xml='<p>%s</p>'%status 40 40 return render_response('error') 41 status,x=interface (self.uri,self.cf,logger=self.logger,format=self.format)41 status,x=interface.GetXML(uri) 42 42 43 43 if status: 44 44 #(the return object x is an xmlHandler object) 45 c.xml=x. tohtml()45 c.xml=x.xmls 46 46 return Response(c.xml) 47 47 else: … … 100 100 r='error' 101 101 102 if status: session['lastViewed']=h.current_url() 102 if status: 103 needed=0 104 if 'lastViewed' not in session: needed=1 105 session['lastViewed']=h.current_url() 106 if needed: c.pageTabs.append(('Display',session['lastViewed'])) 103 107 104 108 if status and 'ndgSec' in session: … … 115 119 116 120 if status: session.save() 117 121 118 122 if r=='content': 119 123 #we're showing an xml document ... but it could go wrong if -
TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/csml_granule_summary.kid
r2802 r2811 4 4 <p> Link functions not yet implemented</p> 5 5 <ul> 6 <?python y=1/0 ?> 6 7 <li py:for="f_name in c.dataset.getFeatureList()"> 7 <?python f=c.dataset.getFeature(f_name)?> 8 <?python f=c.dataset.getFeature(f_name) 9 X=dir(f)?> 8 10 $f.description.CONTENT --> [Add] [Remove] [Add from all Granules] [Remove from all Granules] 11 $X 9 12 </li> 10 13 </ul> -
TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/selection.kid
r2802 r2811 14 14 <ol> 15 15 <li py:for="i in session['selection']" class="dataset"> 16 <?python divid='csml_%s'%i[0] ?> 16 <?python 17 divid='csml_%s'%i[0] 18 xml=h.url_for(controller='retrieve',action='index',uri=i[0]) 19 pretty=h.url_for(controller='retrieve',action='view',uri=i[0]) 20 ?> 17 21 ${XML(h.link_to_remote(i[1],dict(update=divid, 18 22 url=h.url_for(controller="selection", 19 action="expand",uri=i[0]))))} 23 action="expand",uri=i[0]))))} 24 (<span py:replace="linkimage(xml,g.icons_xml,'[XML]')"/>, 25 <span py:replace="linkimage(pretty,g.icons_prn,'[HTML]')"/>) 20 26 <div id="$divid"/> 21 27 </li>
Note: See TracChangeset
for help on using the changeset viewer.