Show
Ignore:
Timestamp:
06/29/07 16:05:08 (17 months ago)
Author:
JensDiemer
Message:

* new additional Stylesheet/JavaScript handling. A middleware puts the collected data into the page.
* middleware "pagestats" renamed to "additional_content".
* some code cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.8(django)/index.cgi

    r1051 r1127  
    5555        -global header_send variable 
    5656        """ 
    57         oldFileinfo = "" 
    58         header_send = False 
     57        def __init__(self, out): 
     58            self.out = out 
     59            self.oldFileinfo = "" 
     60            self.header_send = False 
    5961 
    6062        def _get_fileinfo(self): 
     
    8789            message comes from. 
    8890            """ 
    89             stack = inspect.stack()[1] 
    90 #            fileinfo = (stack[1].split("/")[-1][-40:], stack[2]) 
    9191            fileinfo = self._get_fileinfo() 
    9292 
     
    110110        be send. 
    111111        """ 
    112         def __init__(self, out): 
    113             self.out = out 
    114  
    115112        def check(self, txt): 
    116113            txt_lower = txt.lower() 
     
    135132 
    136133        def wrong_header_info(self): 
    137             # Angaben zur Datei, Zeilennummer, aus dem die Nachricht stammt 
    138134            self.out.write("Content-type: text/html; charset=utf-8\r\n\r\n") 
    139135            self.out.write("Wrong Header!!!\n") 
     
    146142        Sends a header, if the header were not already sent. 
    147143        """ 
    148         def __init__(self, out): 
    149             self.out = out 
    150             self.header_send = False 
    151  
    152144        def write(self, *txt): 
    153145            txt = " ".join([i for i in txt])