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/find_and_replace/find_and_replace_cfg.py

    r1551 r1602  
    1 #!/usr/bin/python 
    21# -*- coding: UTF-8 -*- 
     2 
     3from django import newforms as forms 
     4from django.utils.translation import gettext_lazy as _ 
    35 
    46#_____________________________________________________________________________ 
     
    2022# preferences 
    2123 
    22 from django import newforms as forms 
    23 from django.utils.translation import ugettext as _ 
    24  
    2524class PreferencesForm(forms.Form): 
    2625    min_term_len = forms.IntegerField( 
     
    4039        "must_login"    : True, 
    4140        "must_admin"    : True, 
     41        "admin_sub_menu": { 
     42            "section"       : _("page admin"), 
     43            "title"         : _("find/replace"), 
     44            "help_text"     : _( 
     45                "Find and replace strings in page/stylesheets/template content." 
     46            ), 
     47            "open_in_window": False, 
     48            "weight" : 5, 
     49        }, 
    4250    }, 
    4351} 
    44  
    45 preferences = ( 
    46     { 
    47         "name": "term len limit", 
    48         "description": "How min/max long must a search term be?", 
    49         "value": { 
    50             "min term len": 1, 
    51             "max term len": 255, 
    52         } 
    53     }, 
    54 )