0001688: BUG when I clicked generate commandline plugin reference tool
svn: r9978
This commit is contained in:
parent
99ee408037
commit
d1d05ec311
@ -1,3 +1,7 @@
|
|||||||
|
2008-02-02 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/plugins/CmdRef.py: 0001688: BUG when I clicked generate commandline
|
||||||
|
plugin reference tool
|
||||||
|
|
||||||
2008-02-02 Raphael Ackermann <raphael.ackermann@gmail.com>
|
2008-02-02 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||||
keestux <?@?>
|
keestux <?@?>
|
||||||
* data/man/gramps.1.in: patch applied for
|
* data/man/gramps.1.in: patch applied for
|
||||||
|
@ -61,7 +61,7 @@ _tags = [
|
|||||||
class CmdRef(Tool.Tool):
|
class CmdRef(Tool.Tool):
|
||||||
def __init__(self,dbstate, uistate, options_class, name, callback=None):
|
def __init__(self,dbstate, uistate, options_class, name, callback=None):
|
||||||
Tool.Tool.__init__(self,dbstate,options_class,name)
|
Tool.Tool.__init__(self,dbstate,options_class,name)
|
||||||
db = dbstate.db
|
self.__db = dbstate.db
|
||||||
|
|
||||||
# retrieve options
|
# retrieve options
|
||||||
include = self.options.handler.options_dict['include']
|
include = self.options.handler.options_dict['include']
|
||||||
@ -95,14 +95,17 @@ class CmdRef(Tool.Tool):
|
|||||||
|
|
||||||
# Common report options
|
# Common report options
|
||||||
item = cl_list[0]
|
item = cl_list[0]
|
||||||
clr = CommandLineReport(db,item[0],item[1],item[3],{},True)
|
clr = CommandLineReport(self.__db, item[0], item[1], item[3], {}, True)
|
||||||
self.write_ref(f,clr,level+2,id_counter,True)
|
self.write_ref(f,clr,level+2,id_counter,True)
|
||||||
id_counter = id_counter + 1
|
id_counter = id_counter + 1
|
||||||
|
|
||||||
for item in cl_list:
|
for item in cl_list:
|
||||||
|
unsupported = item[5]
|
||||||
|
if unsupported is True:
|
||||||
|
continue
|
||||||
|
print item[0], item[3], item[5]
|
||||||
category = item[1]
|
category = item[1]
|
||||||
if category in (CATEGORY_BOOK,
|
if category in (CATEGORY_BOOK,
|
||||||
CATEGORY_CODE,
|
|
||||||
CATEGORY_WEB):
|
CATEGORY_WEB):
|
||||||
self.write_ref(f,item,level+2,id_counter,category)
|
self.write_ref(f,item,level+2,id_counter,category)
|
||||||
else:
|
else:
|
||||||
@ -116,7 +119,8 @@ class CmdRef(Tool.Tool):
|
|||||||
|
|
||||||
# Common tool options
|
# Common tool options
|
||||||
item = cli_tool_list[0]
|
item = cli_tool_list[0]
|
||||||
clr = Tool.CommandLineTool(db,item[0],item[1],item[3],{},True)
|
clr = Tool.CommandLineTool(self.__db, item[0],
|
||||||
|
item[1], item[3], {}, True)
|
||||||
self.write_ref(f,clr,level+2,id_counter,True)
|
self.write_ref(f,clr,level+2,id_counter,True)
|
||||||
id_counter = id_counter + 1
|
id_counter = id_counter + 1
|
||||||
|
|
||||||
@ -155,13 +159,10 @@ class CmdRef(Tool.Tool):
|
|||||||
|
|
||||||
# Instantiate options class
|
# Instantiate options class
|
||||||
if category == None:
|
if category == None:
|
||||||
oclass = item[3]( item[0])
|
oclass = item[3](item[0], self.__db)
|
||||||
elif category == CATEGORY_BOOK:
|
elif category == CATEGORY_BOOK:
|
||||||
import BookReport
|
import BookReport
|
||||||
oclass = BookReport.BookOptions(item[0])
|
oclass = BookReport.BookOptions(item[0])
|
||||||
elif category == CATEGORY_CODE:
|
|
||||||
import GraphViz
|
|
||||||
oclass = GraphViz.GraphVizOptions(item[0])
|
|
||||||
elif category == CATEGORY_WEB:
|
elif category == CATEGORY_WEB:
|
||||||
if item[0] == "navwebpage":
|
if item[0] == "navwebpage":
|
||||||
import NarrativeWeb
|
import NarrativeWeb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user