Changeset 1585 for trunk/pylucid/PyLucid/system/plugin_manager.py
- Timestamp:
- 05/23/08 16:33:49 (22 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid/PyLucid/system/plugin_manager.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/PyLucid/system/plugin_manager.py
r1565 r1585 53 53 plugin_name, method_name, msg 54 54 ) 55 context["page_msg"](msg)55 request.page_msg(msg) 56 56 msg2 = '<i title="(Error details in page messages.)">["%s.%s" error.]</i>' % ( 57 57 plugin_name, method_name … … 59 59 local_response.write(msg2) 60 60 61 # context["page_msg"](plugin_name, method_name)61 # request.page_msg(plugin_name, method_name) 62 62 try: 63 63 plugin = Plugin.objects.get(plugin_name=plugin_name) … … 73 73 debug = request.debug, 74 74 ) 75 # context["page_msg"](plugin_config.plugin_manager_data)75 # request.page_msg(plugin_config.plugin_manager_data) 76 76 try: 77 77 method_cfg = plugin_config.plugin_manager_data[method_name] … … 82 82 return 83 83 84 # context["page_msg"](method_cfg)84 # request.page_msg(method_cfg) 85 85 if method_cfg["must_login"]: 86 86 # User must be login to use this method … … 146 146 147 147 msg = "Run plugin %s.%s Error" % (plugin_name, method_name) 148 context["page_msg"].red("%s:" % msg)148 request.page_msg.red("%s:" % msg) 149 149 import sys, traceback 150 context["page_msg"]("<pre>%s</pre>" % traceback.format_exc())150 request.page_msg("<pre>%s</pre>" % traceback.format_exc()) 151 151 return msg + "(Look in the page_msg)" 152 152