Changeset 1687

Show
Ignore:
Timestamp:
07/25/08 14:14:24 (6 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1686 r1687  
    112008-07-25  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * admin/Form.py (FormHelper.ApplyChangesDirectly): Adds a new 
     4        method for accessing the configuration directly. 
     5 
     6        * admin/PageVServer.py (PageVServer._op_handler): Fixes a 
     7        bug. 'Final' checkboxes were deselected when submitting any other 
     8        information from the Virtual Server configuration page. 
    29 
    310        * admin/server.py (Handler.handle_request): Implements support for 
  • cherokee/trunk/admin/Form.py

    r1514 r1687  
    382382                    del (self._cfg[confkey]) 
    383383                else: 
    384                     self._cfg[confkey] = value 
     384                    self._cfg[confkey] = value         
     385 
     386    def ApplyChangesDirectly (self, post): 
     387        for confkey in post: 
     388            if not '!' in confkey: 
     389                continue 
     390 
     391            if confkey in self.errors: 
     392                continue 
     393 
     394            value = post[confkey][0] 
     395            if not value: 
     396                del (self._cfg[confkey]) 
     397            else: 
     398                self._cfg[confkey] = value         
    385399         
    386400    def ApplyChangesPrefix (self, prefix, checkboxes, post, validation=None): 
  • cherokee/trunk/admin/PageVServer.py

    r1640 r1687  
    101101                return "ok" 
    102102 
    103             self._op_apply_changes (host, uri, post) 
     103            self.ApplyChangesDirectly (post) 
    104104            return 'ok' 
    105105