Changeset 2281 for cherokee/trunk/admin/ModuleCommon.py
- Timestamp:
- 11/01/08 11:38:34 (2 months ago)
- Files:
-
- cherokee/trunk/admin/ModuleCommon.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/admin/ModuleCommon.py
r1981 r2281 7 7 8 8 NOTE_PATHINFO = "Allow extra tailing paths" 9 NOTE_DIRLIST = "Allow to list directory contents" 9 10 10 11 HELPS = [ … … 14 15 class ModuleCommon (ModuleHandler): 15 16 PROPERTIES = ModuleFile.PROPERTIES + ModuleDirlist.PROPERTIES + [ 16 'allow_pathinfo' 17 'allow_pathinfo', 'allow_dirlist' 17 18 ] 18 19 … … 29 30 table = TableProps() 30 31 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) 31 33 32 34 txt = '<h2>Parsing</h2>' … … 40 42 txt += self._file._op_render() 41 43 txt += self._dirlist._op_render() 44 42 45 return txt 43 46 44 47 def _op_apply_changes (self, uri, post): 45 48 self.ApplyCheckbox (post, '%s!allow_pathinfo'%(self._prefix)) 49 self.ApplyCheckbox (post, '%s!allow_dirlist'%(self._prefix)) 46 50 47 51 # Copy errors from the child modules