Changeset 615

Show
Ignore:
Timestamp:
01/16/07 22:53:25 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r614 r615  
    112007-01-16  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * contrib/05to06.py (Syntax._process_virtual_server_content):  
     4        error_handler fixed. It wasn't adding the handler. 
     5 
     6        * contrib/05to06.py (Syntax._process_entry_guts): Handler / 
     7        Balancer conversion fixed. It was using of notation. 
     8 
     9        * contrib/05to06.py (Syntax): It must translate DirectoryIndex 
     10        into directory_index. Fixed. 
    211 
    312        * contrib/05to06.py (Syntax._process_entry_guts): Allow from 
  • cherokee/trunk/contrib/05to06.py

    r614 r615  
    6161                       'sslcertificatefile':    'ssl_certificate_file', 
    6262                       'sslcertificatekeyfile': 'ssl_certificate_key_file', 
    63                        'sslcalistfile':         'ssl_cal_list_file'                        
     63                       'sslcalistfile':         'ssl_cal_list_file', 
     64                       'directoryindex':        'directory_index' 
    6465                       } 
    6566     
     
    9394                elif kind == 'server': 
    9495                    kind, val_prop_val = self._lex.get_token() 
    95                     print '%s!handler!server = %s' % (prefix, val_prop_val) 
     96                    print '%s!handler!balancer = round_robin' % (prefix) 
     97                    print '%s!handler!balancer!type= interpreter' % (prefix) 
     98                    print '%s!handler!balancer!entry1!host = %s' % (prefix, val_prop_val) 
    9699 
    97100                    kind, val = self._lex.get_token() 
     
    110113                            if val == 'env': 
    111114                                kind_prop_val, val_prop_val = self._lex.get_token() 
    112                                 print "%s!handler!server!env!%s = %s" % (prefix, val_prop, val_prop_val) 
     115                                print "%s!handler!balancer!entry1!env!%s = %s" % (prefix, val_prop, val_prop_val) 
    113116 
    114117                            else: 
    115                                 print "%s!handler!server!%s = %s" % (prefix, val, val_prop) 
     118                                print "%s!handler!balancer!entry1!%s = %s" % (prefix, val, val_prop) 
    116119                    continue 
    117120 
     
    141144                        regex_num = regex_num + 1 
    142145                        continue 
     146 
    143147                     
    144148                # Default case 
     
    422426 
    423427            prefix = 'vserver!%s!error_handler' % (vserver) 
     428            print "%s = %s" % (prefix, handler_val) 
    424429 
    425430            while True: