Show
Ignore:
Timestamp:
05/23/08 16:34:29 (6 months ago)
Author:
JensDiemer
Message:

update back_links plugin. Use plugin preferences.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/plugins_internal/back_links/back_links_cfg.py

    r1479 r1586  
    1212 
    1313#_____________________________________________________________________________ 
     14# preferences 
     15 
     16from django import newforms as forms 
     17from django.utils.translation import ugettext as _ 
     18 
     19class PreferencesForm(forms.Form): 
     20    print_last_page = forms.BooleanField( 
     21        initial = True, 
     22        help_text = _( 
     23            "If checked the actual page will be the last page in the bar." 
     24            " Otherwise the parentpage." 
     25        ), 
     26    ) 
     27    print_index = forms.BooleanField( 
     28        initial = True, 
     29        help_text = _('If checked display a link to the index ("/")'), 
     30    ) 
     31    index = forms.CharField( 
     32        initial = _("Index"), 
     33        help_text = _('the name that is printed for the indexpage'), 
     34    ) 
     35 
     36#_____________________________________________________________________________ 
    1437# plugin administration data 
    1538