Ignore:
Timestamp:
17/03/09 16:22:42 (12 years ago)
Author:
cbyrom
Message:

Disable (old) security code from MILK stack +
make handling of edit mode on/off more robust - redirecting users
back to 'discovery' home page when not in edit mode.

File:
1 edited

Legend:

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

    r5099 r5111  
    4545        self.globals.icons_R=cf.get('RELATED','icon') 
    4646        self.globals.icons_key=cf.get('layout','key') 
    47         self.globals.debugModeOn = cf.get('DEFAULT','debug') or False 
    48  
    49         self.globals.atomEditorEnabled = cf.get('ATOM_EDITOR','enabled') 
     47        debugMode = cf.get('DEFAULT','debug') or False 
     48        if debugMode and debugMode.lower == 'true': 
     49            debugMode = True 
     50        self.globals.debugModeOn = debugMode 
     51         
     52        editModeOn = cf.get('ATOM_EDITOR','enabled') or False 
     53        if editModeOn and editModeOn.lower == 'true': 
     54            editModeOn = True 
     55        self.globals.atomEditorEnabled = editModeOn  
    5056 
    5157        self.globals.wmcClientURL = cf.get('WMC_CLIENT','url') 
Note: See TracChangeset for help on using the changeset viewer.