Ignore:
Timestamp:
29/08/07 11:52:25 (12 years ago)
Author:
lawrence
Message:

This a complete fix for ticket:863 (I hope) which includes logic
for handling the pagetabs as a consequence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/tabs.py

    r2804 r2853  
    1818    def addSelection(self,uri,name): 
    1919        if 'selection' not in session: 
     20            newtabs=1 
    2021            session['selection']=[(uri,name),] 
    2122        else: 
     23            newtabs=0 
    2224            rb=Utilities.RingBuffer(10) 
    2325            for i in session['selection']: rb.append(i) 
     
    2628            session['selection']=rb.tolist() 
    2729        session.save() 
    28         return render_response('cart',fragment=True) 
     30        if newtabs: 
     31            c.UpdatePageTabs=1 
     32            c.current='Display' 
     33            c.pageTabs.append(('Selections',h.url_for(controller='selection',action='index'))) 
     34            c.pageTabs.append(('Visualise','Blah')) 
     35            c.pageTabs.append(('Download','Blah')) 
     36        return render_response('ndgPage',fragment=True) 
    2937             
    3038    def clear(self,value): 
Note: See TracChangeset for help on using the changeset viewer.