Changeset 1816
- Timestamp:
- 01/30/09 11:17:23 (14 months ago)
- Location:
- trunk/pylucid_project/PyLucid/system
- Files:
-
- 2 modified
-
BasePlugin.py (modified) (2 diffs)
-
plugin_manager.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid_project/PyLucid/system/BasePlugin.py
r1804 r1816 47 47 class PyLucidBasePlugin(object): 48 48 49 def __init__(self, context, response ):50 self.plugin_name = self.__class__.__name__49 def __init__(self, context, response, plugin_name): 50 self.plugin_name = plugin_name 51 51 self.internal_page = InternalPage(context, self.plugin_name) 52 52 … … 172 172 try: 173 173 content = self.internal_page.get_content(internal_page_name, "html") 174 except InternalPageNotFound: 175 msg = "Internal page '%s' not found!" % internal_page_name 174 except InternalPageNotFound, err: 175 if debug: 176 msg = err 177 else: 178 msg = "Internal page '%s' not found!" % internal_page_name 176 179 self.page_msg.red(msg) 177 180 return "[%s]" % msg -
trunk/pylucid_project/PyLucid/system/plugin_manager.py
r1731 r1816 109 109 110 110 plugin_class = getattr(plugin_module, plugin_name) 111 # page_msg(plugin_class, type(plugin_class)112 class_instance = plugin_class(context, local_response )111 #request.page_msg(plugin_class, type(plugin_class), plugin_name) 112 class_instance = plugin_class(context, local_response, plugin_name) 113 113 unbound_method = getattr(class_instance, method_name) 114 114