Changeset 227:2b9b23ab2bf8

Show
Ignore:
Timestamp:
2007-08-11 13:18:32 (1 year ago)
Author:
Stefan Schwarzer <sschwarzer@sschwarzer.net>
branch:
default
Message:
Handle options by ignoring them. ;-) The method `set_option` is no
longer needed because `dir_levels` is now kept via a query parameter.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • browser.py

    r221 r227  
    6565        `query_mapping` (as returned by `cgi.parse_qs`). 
    6666        """ 
    67         if "dir_levels" in query_mapping: 
    68             value = query_mapping['dir_levels'][0] 
    69             old_url = query_mapping.get('old_url', [""])[0] 
    70             if value in ("1", "2", "3"): 
    71                 config.dir_levels = int(value) 
    72                 message = u'Set the nesting level of directory listings ' \ 
    73                           u'to %s.' % value 
    74             elif value == "all": 
    75                 config.dir_levels = sys.maxint 
    76                 message = u'Showing all directories.' 
    77             refresh_html = u'<meta http-equiv="refresh" content="1; ' \ 
    78                            u'URL=%s" />' % old_url 
    79             self.emit_data(title="Option set", 
    80               data=message, h1_class="Other", content_type="text/html", 
    81               refresh_html=refresh_html) 
     67        # currently, there aren't server-wide settings  
     68        pass 
    8269 
    8370    def handle_builtin(self, url):