- Timestamp:
- 05/02/08 16:47:16 (23 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/PyLucid/plugins_internal/preference_editor/preference_editor.py
r1549 r1551 11 11 ~~~~~~~~~~~~~~~~~ 12 12 $LastChangedDate$ 13 $Rev $14 $Author $13 $Rev:1549 $ 14 $Author:JensDiemer $ 15 15 16 16 :copyleft: 2008 by the PyLucid team. … … 40 40 Display the sub menu 41 41 """ 42 # self.context["PAGE"].title = _("Preferences editor")42 plugins = Plugin.objects.exclude(pref_data_string__isnull=True) 43 43 44 items = [] 45 plugins = Plugin.objects.all() 44 # Add edit link 46 45 for plugin in plugins: 47 if plugin.pref_data_string == None:48 continue49 50 46 edit_link = self.URLs.methodLink("edit", args=plugin.id) 51 52 items.append({ 53 "plugin_name": unicode(plugin), 54 "plugin_description": plugin.description, 55 "edit_link": edit_link, 56 }) 47 plugin.edit_link = edit_link 57 48 58 49 context = { 59 "p references": items,60 "admin_link": self.URLs.adminLink("PyLucid/ preference"),50 "plugins": plugins, 51 "admin_link": self.URLs.adminLink("PyLucid/Plugin"), 61 52 } 62 53 self._render_template("select", context)#, debug=True)