Changeset 1816 for trunk/pylucid_project/PyLucid/system/BasePlugin.py
- Timestamp:
- 01/30/09 11:17:23 (14 months ago)
- Files:
-
- 1 modified
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