Ignore:
Timestamp:
20/11/08 17:07:24 (12 years ago)
Author:
cbyrom
Message:

Add tab for atom editor + add configuration option to enable/disable this.

Location:
MILK/trunk/milk_server/milk_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/config/ndgMiddleware.py

    r4467 r4477  
    4141        self.globals.icons_R=cf.get('RELATED','icon') 
    4242        self.globals.icons_key=cf.get('layout','key') 
     43         
     44        self.globals.atomEditorEnabled = cf.get('ATOM_EDITOR','enabled') 
    4345        self.globals.debugAtomEditor = cf.get('ATOM_EDITOR','debug') 
    4446        
  • MILK/trunk/milk_server/milk_server/lib/base.py

    r4476 r4477  
    6161             
    6262        if 'lastViewed' in session: c.pageTabs.append(('Details',session['lastViewed'])) 
     63 
     64        if g.atomEditorEnabled: c.pageTabs.append(('Atom Editor', session.get('currentEditor') or \ 
     65                                                       h.url_for(controller='atom_editor/listatom',action='atomHome'))) 
    6366         
    6467        return _BaseController.__call__(self, environ, start_response) 
Note: See TracChangeset for help on using the changeset viewer.