Changeset 1440 for trunk/pylucid/PyLucid/index.py
- Timestamp:
- 02/22/08 15:02:26 (9 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid/PyLucid/index.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/PyLucid/index.py
r1429 r1440 45 45 46 46 47 def _render_cms_page( context, page_content=None):47 def _render_cms_page(request, context, page_content=None): 48 48 """ 49 49 render the cms page. … … 51 51 - render a _command request: The page.content is the output from the plugin. 52 52 """ 53 if request.anonymous_view == False: 54 # context["robots"] was set in contex_processors.static() 55 # Hide the response from search engines 56 context["robots"] = "NONE,NOARCHIVE" 57 53 58 current_page = context["PAGE"] 54 59 … … 92 97 For index() and handle_command() views. 93 98 """ 99 # add additional attribute 100 request.anonymous_view = True 101 94 102 try: 95 103 context = RequestContext(request) … … 227 235 context = _get_context(request, current_page_obj) 228 236 # Get the response for the requested cms page: 229 response = _render_cms_page( context)237 response = _render_cms_page(request, context) 230 238 231 239 if use_cache: … … 317 325 ) 318 326 319 return _render_cms_page( context, page_content)327 return _render_cms_page(request, context, page_content) 320 328 321 329
