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/plugin_admin/plugin_admin.py

    r1544 r1551  
    3030 
    3131from PyLucid.system.plugin_manager import get_plugin_list, install_plugin 
    32 from PyLucid.system.plugin_import import get_plugin_config 
     32from PyLucid.system.plugin_import import get_plugin_config, get_plugin_version 
    3333from PyLucid.system.BasePlugin import PyLucidBasePlugin 
    3434from PyLucid.models import Plugin 
     
    134134                    continue 
    135135                try: 
    136                     plugin_cfg = get_plugin_config(self.request, 
    137                         package_name, plugin_name, dissolve_version_string=True 
     136                    plugin_cfg = get_plugin_config( 
     137                        package_name, plugin_name, self.request.debug 
    138138                    ) 
    139139                except Exception, e: 
     
    142142                    self.page_msg("Error: %s" % e) 
    143143                else: 
     144                    plugin_version = get_plugin_version( 
     145                        package_name, plugin_name, self.request.debug 
     146                    ) 
    144147                    uninstalled_plugins.append({ 
    145148                        "plugin_name": plugin_name, 
     
    148151                        "url": plugin_cfg.__url__, 
    149152                        "author": plugin_cfg.__author__, 
    150                         "version": plugin_cfg.__version__, 
     153                        "version": plugin_version, 
    151154                    }) 
    152155 
     
    165168        try: 
    166169            install_plugin( 
    167                 self.request, package_name, plugin_name, active, 
     170                package_name, plugin_name, self.request.debug, active, 
    168171                extra_verbose=False 
    169172            )