Changeset 2503

Show
Ignore:
Timestamp:
01/21/10 08:54:24 (8 weeks ago)
Author:
JensDiemer
Message:

Don't display the error messages to everybody ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/pylucid_plugins/TOC/views.py

    r2500 r2503  
    8080        raw_html_content = context["page_content"] 
    8181    except KeyError, err: 
    82         request.page_msg("Error inserting TOC: Can't get content: %s" % err) 
     82        # FIXME: The plugin can't get the page content here. 
     83        # This allays appears, if the current page is a PluginPage and the plugin generate the  
     84        # complete page by extents the global template. 
     85        if settings.DEBUG or request.user.is_superuser: 
     86            request.page_msg("Error inserting TOC: Can't get content: %s" % err) 
    8387        return 
    8488