Changeset 2501

Show
Ignore:
Timestamp:
01/20/10 17:26:55 (2 months ago)
Author:
JensDiemer
Message:

bugfix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/middlewares/headline_anchor.py

    r2500 r2501  
    3838        try: 
    3939            pagemeta = request.PYLUCID.pagemeta 
     40            context = request.PYLUCID.context 
    4041        except AttributeError: 
    4142            # No cms page request -> do nothing 
     
    4748        content = force_unicode(response.content, encoding=response._charset) 
    4849 
    49         if "anchor_cache" in request.PYLUCID.context: 
     50        if "anchor_cache" in context: 
    5051            # lucidTag TOC was called in this request. The plugin has collect all 
    5152            # headlines and has build all links. We must only replace it, because