2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com

* src/plugins/CmdRef.py: clean up unused and broken imports and vars
	0001494: unresolved import WebPage in CmdRef.py



svn: r9742
This commit is contained in:
Raphael Ackermann 2008-01-07 16:30:36 +00:00
parent 4fa4ad60aa
commit dd3b3311a3
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com
* src/plugins/CmdRef.py: clean up unused and broken imports and vars
0001494: unresolved import WebPage in CmdRef.py
2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com> 2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/docgen/ODFDoc.py: remove duplicate import * src/docgen/ODFDoc.py: remove duplicate import
* src/docgen/LaTeXDoc.py :added support for opening latex editor * src/docgen/LaTeXDoc.py :added support for opening latex editor

View File

@ -38,9 +38,8 @@ from gettext import gettext as _
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from PluginUtils import Tool, cl_list, cli_tool_list, register_tool from PluginUtils import Tool, cl_list, cli_tool_list, register_tool
from ReportBase import Report, CATEGORY_BOOK, CATEGORY_CODE, CATEGORY_WEB from ReportBase import CATEGORY_BOOK, CATEGORY_CODE, CATEGORY_WEB
from ReportBase._CommandLineReport import CommandLineReport from ReportBase._CommandLineReport import CommandLineReport
import Utils
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -73,8 +72,6 @@ class CmdRef(Tool.Tool):
else: else:
level = 0 level = 0
cli = int(uistate == None)
f = tempfile.NamedTemporaryFile() f = tempfile.NamedTemporaryFile()
fname = f.name fname = f.name
id_counter = 0 id_counter = 0
@ -166,10 +163,7 @@ class CmdRef(Tool.Tool):
import GraphViz import GraphViz
oclass = GraphViz.GraphVizOptions(item[0]) oclass = GraphViz.GraphVizOptions(item[0])
elif category == CATEGORY_WEB: elif category == CATEGORY_WEB:
if item[0] == "webpage": if item[0] == "navwebpage":
import WebPage
oclass = WebPage.WebReportOptions(item[0])
elif item[0] == "navwebpage":
import NarrativeWeb import NarrativeWeb
oclass = NarrativeWeb.WebReportOptions(item[0]) oclass = NarrativeWeb.WebReportOptions(item[0])
elif category == True: elif category == True: