Changeset 505

Show
Ignore:
Timestamp:
09/25/08 07:41:18 (3 months ago)
Author:
lazaridis_com
Message:

do not generate any text which follows a "-----"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • infra/tracx/tracx/htmlgen.py

    r500 r505  
    173173            #data['page'].env.project_name = "BAA" 
    174174             
    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'] 
    178181        p.save(self.author, self.comment, 0) 
    179182         
     
    190193        data['pj'] = pj         
    191194         
    192         from dbgp.client import brk 
    193         #brk(host="localhost", port=9000) 
     195 
    194196         
    195197        txt = Chrome(self.env).render_template(req, 'wiki_view2.html', data, fragment=False) 
     
    205207        return self.processlinks(txt) 
    206208     
     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         
    207218    def processlinks(self, txt): 
    208219        if not txt: return None