Changeset 1127 for branches/0.8(django)/index.cgi
- Timestamp:
- 06/29/07 16:05:08 (17 months ago)
- Files:
-
- 1 modified
-
branches/0.8(django)/index.cgi (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.8(django)/index.cgi
r1051 r1127 55 55 -global header_send variable 56 56 """ 57 oldFileinfo = "" 58 header_send = False 57 def __init__(self, out): 58 self.out = out 59 self.oldFileinfo = "" 60 self.header_send = False 59 61 60 62 def _get_fileinfo(self): … … 87 89 message comes from. 88 90 """ 89 stack = inspect.stack()[1]90 # fileinfo = (stack[1].split("/")[-1][-40:], stack[2])91 91 fileinfo = self._get_fileinfo() 92 92 … … 110 110 be send. 111 111 """ 112 def __init__(self, out):113 self.out = out114 115 112 def check(self, txt): 116 113 txt_lower = txt.lower() … … 135 132 136 133 def wrong_header_info(self): 137 # Angaben zur Datei, Zeilennummer, aus dem die Nachricht stammt138 134 self.out.write("Content-type: text/html; charset=utf-8\r\n\r\n") 139 135 self.out.write("Wrong Header!!!\n") … … 146 142 Sends a header, if the header were not already sent. 147 143 """ 148 def __init__(self, out):149 self.out = out150 self.header_send = False151 152 144 def write(self, *txt): 153 145 txt = " ".join([i for i in txt])
