Changeset 1447

Show
Ignore:
Timestamp:
02/26/08 08:13:46 (2 years ago)
Author:
JensDiemer
Message:

add the bool "anonymous_view" into the context:  http://pylucid.org/phpBB2/viewtopic.php?p=1051#1051

Location:
trunk/pylucid/PyLucid
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/index.py

    r1442 r1447  
    5252    """ 
    5353    if request.anonymous_view == False: 
     54        # TODO: remove in v0.9, see: ticket:161 
    5455        # context["robots"] was set in contex_processors.static() 
    5556        # Hide the response from search engines 
    5657        context["robots"] = "NONE,NOARCHIVE" 
     58 
     59    context["anonymous_view"] = request.anonymous_view 
    5760 
    5861    current_page = context["PAGE"] 
  • trunk/pylucid/PyLucid/plugins_internal/admin_menu/admin_menu_cfg.py

    r1236 r1447  
    2323        "must_admin"    : False, 
    2424        "has_Tags"      : True, 
    25         "no_rights_error" : True, # Fehlermeldung, wenn der User nicht eingeloggt ist, wird nicht angezeigt 
     25        "no_rights_error" : True, # TODO: remove in v0.9, see: ticket:161 
    2626        "internal_page_info" : { 
    2727            "name"              : "top_menu", 
  • trunk/pylucid/PyLucid/system/context_processors.py

    r1440 r1447  
    2424        # This value would be changed in index._render_cms_page(), if the 
    2525        # plugin manager or any plugin set request.anonymous_view = False 
    26         "robots": "index,follow", 
     26        "robots": "index,follow", # TODO: remove in v0.9, see: ticket:161 
    2727    } 
    2828 
  • trunk/pylucid/PyLucid/system/plugin_manager.py

    r1440 r1447  
    134134            # User is not logged in 
    135135            if method_cfg.get("no_rights_error", False) == True: 
     136                # TODO: remove in v0.9, see: ticket:161 
    136137                # No error message should be displayed for this plugin. 
    137138                # e.g. admin_menu