0001688: BUG when I clicked generate commandline plugin reference tool

svn: r10058
This commit is contained in:
Brian Matherly 2008-02-19 04:32:57 +00:00
parent 5ad4dcee22
commit e579cc0e14
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2008-02-18 Brian Matherly <brian@gramps-project.org>
* src/plugins/CmdRef.py:
0001688: BUG when I clicked generate commandline plugin reference tool
2008-02-18 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py:
* src/ReportBase/_ReportDialog.py:

View File

@ -103,10 +103,8 @@ class CmdRef(Tool.Tool):
unsupported = item[5]
if unsupported is True:
continue
print item[0], item[3], item[5]
category = item[1]
if category in (CATEGORY_BOOK,
CATEGORY_WEB):
if category in [CATEGORY_BOOK]:
self.write_ref(f,item,level+2,id_counter,category)
else:
self.write_ref(f,item,level+2,id_counter,None)
@ -163,10 +161,6 @@ class CmdRef(Tool.Tool):
elif category == CATEGORY_BOOK:
import BookReport
oclass = BookReport.BookOptions(item[0])
elif category == CATEGORY_WEB:
if item[0] == "navwebpage":
import NarrativeWeb
oclass = NarrativeWeb.WebReportOptions(item[0])
elif category:
# This is the common options case
# so class is already instantiated