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/system_settings/system_settings_cfg.py

    r1544 r1551  
    1313 
    1414#_____________________________________________________________________________ 
     15# preferences 
     16 
     17from django import newforms as forms 
     18from django.utils.translation import ugettext as _ 
     19 
     20from PyLucid.db.page import PageChoiceField, get_page_choices 
     21 
     22 
     23class PreferencesForm(forms.Form): 
     24    index_page = PageChoiceField( 
     25        widget=forms.Select(choices=get_page_choices()), 
     26        help_text=_("The page ID of the index page"), 
     27        initial=0 
     28    ) 
     29    auto_shortcuts = forms.BooleanField( 
     30        help_text=_("Should the shortcut of a page rebuild on every edit?"), 
     31        initial=True 
     32    ) 
     33 
     34#_____________________________________________________________________________ 
    1535# plugin administration data 
    1636