Show
Ignore:
Timestamp:
11/01/08 11:38:34 (2 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/admin/ModuleCommon.py

    r1981 r2281  
    77 
    88NOTE_PATHINFO = "Allow extra tailing paths" 
     9NOTE_DIRLIST  = "Allow to list directory contents" 
    910 
    1011HELPS = [ 
     
    1415class ModuleCommon (ModuleHandler): 
    1516    PROPERTIES = ModuleFile.PROPERTIES + ModuleDirlist.PROPERTIES + [ 
    16         'allow_pathinfo' 
     17        'allow_pathinfo', 'allow_dirlist' 
    1718    ] 
    1819 
     
    2930        table = TableProps() 
    3031        self.AddPropCheck (table, 'Allow PathInfo', '%s!allow_pathinfo'%(self._prefix), False, NOTE_PATHINFO) 
     32        self.AddPropCheck (table, 'Allow Directory Listing', '%s!allow_dirlist'%(self._prefix), True, NOTE_DIRLIST) 
    3133 
    3234        txt = '<h2>Parsing</h2>' 
     
    4042        txt += self._file._op_render() 
    4143        txt += self._dirlist._op_render() 
     44 
    4245        return txt 
    4346 
    4447    def _op_apply_changes (self, uri, post): 
    4548        self.ApplyCheckbox (post, '%s!allow_pathinfo'%(self._prefix)) 
     49        self.ApplyCheckbox (post, '%s!allow_dirlist'%(self._prefix)) 
    4650 
    4751        # Copy errors from the child modules