Changeset 2501
- Timestamp:
- 01/20/10 17:26:55 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/pylucid_project/middlewares/headline_anchor.py
r2500 r2501 38 38 try: 39 39 pagemeta = request.PYLUCID.pagemeta 40 context = request.PYLUCID.context 40 41 except AttributeError: 41 42 # No cms page request -> do nothing … … 47 48 content = force_unicode(response.content, encoding=response._charset) 48 49 49 if "anchor_cache" in request.PYLUCID.context:50 if "anchor_cache" in context: 50 51 # lucidTag TOC was called in this request. The plugin has collect all 51 52 # headlines and has build all links. We must only replace it, because