Show
Ignore:
Timestamp:
05/28/08 13:37:32 (22 months ago)
Author:
JensDiemer
Message:

replace the static admin sub menu with a dynamic one ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/plugins_internal/preference_editor/preference_editor_cfg.py

    r1549 r1602  
    1 #!/usr/bin/python 
    21# -*- coding: UTF-8 -*- 
     2 
     3from django.utils.translation import gettext_lazy as _ 
    34 
    45#_____________________________________________________________________________ 
     
    1516# plugin administration data 
    1617 
    17  
    18 global_rights = { 
    19     "must_login"    : True, 
    20     "must_admin"    : True, 
     18plugin_manager_data = { 
     19    "select" : { 
     20        "must_login"    : True, 
     21        "must_admin"    : True, 
     22        "admin_sub_menu": { 
     23            "section"       : _("setup"), 
     24            "title"         : _("Preferences editor"), 
     25            "help_text"     : _( 
     26                "Setup all plugin preferences." 
     27            ), 
     28            "open_in_window": False, 
     29            "weight" : -5, 
     30        }, 
     31    }, 
     32    "edit": { 
     33        "must_login"    : True, 
     34        "must_admin"    : True, 
     35    }, 
    2136} 
    22  
    23 plugin_manager_data = { 
    24     "select" : global_rights, 
    25     "edit": global_rights, 
    26 }