Changeset 630
- Timestamp:
- 01/19/07 18:17:58 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/contrib/05to06.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r629 r630 1 1 2007-01-19 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * contrib/05to06.py: Adds a faked DocumentRoot if the virtual 4 server didn't contain one. 0.5 wasn't checking for a 5 document_root but 0.6 does. It is no more than a work around. 2 6 3 7 * contrib/05to06.py: Now, it adds the "priority" entry to all the cherokee/trunk/contrib/05to06.py
r629 r630 10 10 import sys 11 11 import string 12 13 FAKED_DOCUMENT_ROOT = '/faked' 14 12 15 13 16 class Syntax: … … 34 37 35 38 vsrv_entries = {'directoryindex': 'list', 36 'documentroot': 'path',37 39 'sslcertificatefile': 'path', 38 40 'sslcertificatekeyfile': 'path', … … 387 389 print "vserver!%s!%s = %s" % (vserver, kind, str(val_val)) 388 390 391 elif kind == 'documentroot': 392 kind, val = self._lex.get_token() 393 if kind != 'path': raise "Malformed DocumentRoot" 394 395 print "vserver!%s!document_root = %s" % (vserver, val) 396 self._vserver_has_document_root = True 397 389 398 elif kind == 'directory': 390 399 kind, dir_val = self._lex.get_token() … … 623 632 print "vserver!%s!domain!%d = %s" % (vserver, i, v) 624 633 634 self._vserver_has_document_root = False 635 625 636 while True: 626 637 more = self._process_virtual_server_content (vserver) … … 630 641 if kind != '}': raise "Expected }, got %s=%s" % (kind,val) 631 642 643 if not self._vserver_has_document_root: 644 print "vserver!%s!document_root = %s" % (vserver, FAKED_DOCUMENT_ROOT) 632 645 633 646 def process_sentence (self):