Show
Ignore:
Timestamp:
03/24/08 12:48:32 (2 years ago)
Author:
JensDiemer
Message:

tinyTextile: Add permalink and anchor to every headline.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/tools/content_processors.py

    r1464 r1500  
    4646        from PyLucid.system.tinyTextile import TinyTextileParser 
    4747        out_obj = SimpleStringIO() 
    48         markup_parser = TinyTextileParser(out_obj, context) 
     48 
     49        current_page = context["PAGE"] 
     50        permalink = current_page.get_permalink() 
     51 
     52        markup_parser = TinyTextileParser(out_obj, permalink, context) 
    4953        markup_parser.parse(content) 
    5054        content = out_obj.getvalue()