Changeset 4477 for MILK


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

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

Location:
MILK/trunk/milk_server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/development.ini

    r4465 r4477  
    3434#the password file needs to be outside the egg: 
    3535#passwordFile =  %(here)s/passwords.txt   
    36 #but it's gone back to ndgDiscoveryq 
    3736 
    3837# If you'd like to fine-tune the individual locations of the cache data dirs 
     
    4241#cache_data_dir = %(here)s/data/cache 
    4342#session_data_dir = %(here)s/data/sessions 
    44  
    45 # Specify the database for SQLAlchemy to use via 
    46 # pylons.database.session_context. 
    47 # %(here) may include a ':' character on Windows environments; this can 
    48 # invalidate the URI when specifying a SQLite db via path name 
    49 #sqlalchemy.dburi = sqlite:///%(here)s/somedb.db 
    50  
    51 # Specify the database for SQLObject to use via pylons.database.PackageHub. 
    52 #sqlobject.dburi = sqlite://%(here)s/somedb.db 
    5343 
    5444# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* 
  • 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) 
  • MILK/trunk/milk_server/ndgDiscovery.config

    r4466 r4477  
    7373 
    7474[ATOM_EDITOR] 
     75# if set to True, the editor will be available 
     76enabled: True 
    7577# if set to True, errors output with stacktrace to templates 
    7678debug: True              
Note: See TracChangeset for help on using the changeset viewer.