Changeset 505
- Timestamp:
- 09/25/08 07:41:18 (3 months ago)
- Files:
-
- 1 modified
-
infra/tracx/tracx/htmlgen.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infra/tracx/tracx/htmlgen.py
r500 r505 173 173 #data['page'].env.project_name = "BAA" 174 174 175 176 177 p.text = title + ticket['description'] 175 from dbgp.client import brk 176 #brk(host="localhost", port=9000) 177 178 public_text = self.remove_internals(ticket['description']) 179 180 p.text = title + public_text #ticket['description'] 178 181 p.save(self.author, self.comment, 0) 179 182 … … 190 193 data['pj'] = pj 191 194 192 from dbgp.client import brk 193 #brk(host="localhost", port=9000) 195 194 196 195 197 txt = Chrome(self.env).render_template(req, 'wiki_view2.html', data, fragment=False) … … 205 207 return self.processlinks(txt) 206 208 209 def remove_internals(self, txt): 210 if not txt: return None 211 212 import re 213 #patt = re.compile(r'', re.S) 214 215 txt = re.sub("(?sm)^-----.*", "", txt) 216 return txt 217 207 218 def processlinks(self, txt): 208 219 if not txt: return None