Show
Ignore:
Timestamp:
05/02/08 16:47:16 (23 months ago)
Author:
JensDiemer
Message:

update preferences:

  • move the preferences form from the plugin module into the plugin config modul
  • a plugin must not use try...except to get the preferences
  • update all modules around the plugin install/deinstall etc.
  • detect_page used the system_settings "index_page" value (setup a other default index page works!)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/plugins_internal/find_and_replace/find_and_replace_cfg.py

    r1548 r1551  
    1616submenu. 
    1717""" 
     18 
     19#_____________________________________________________________________________ 
     20# preferences 
     21 
     22from django import newforms as forms 
     23from django.utils.translation import ugettext as _ 
     24 
     25class PreferencesForm(forms.Form): 
     26    min_term_len = forms.IntegerField( 
     27        help_text=_("Min length of a search term"), 
     28        initial=2, min_value=1 
     29    ) 
     30    max_term_len = forms.IntegerField( 
     31        help_text=_("Max length of a search term"), 
     32        initial=150, min_value=1, max_value=500 
     33    ) 
    1834 
    1935#_____________________________________________________________________________