From 2f99ced7b71ce3a9e104c14212e1eac478ad5543 Mon Sep 17 00:00:00 2001 From: Taizo ITO Date: Tue, 6 Jul 2010 16:11:26 +0900 Subject: [PATCH] added test routine to make sure that dop.comment/order work well. --- karesansui/lib/parser/collectdplugin.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/karesansui/lib/parser/collectdplugin.py b/karesansui/lib/parser/collectdplugin.py index c508592..db223f2 100644 --- a/karesansui/lib/parser/collectdplugin.py +++ b/karesansui/lib/parser/collectdplugin.py @@ -210,7 +210,15 @@ if __name__ == '__main__': key = [new_plugin_name,"Foo"] dop.insert_order("dum",key,0,is_parent_parser=True) - #print dop.get("dum",[new_plugin_name,"@ORDERS"],multiple_file=True) + # work completely + #dop.cdp_comment("dum",["python","Plugin","python","Import"],multiple_file=True) + #dop.cdp_comment("dum",["python","Plugin","python","Module","notification"],multiple_file=True) + #dop.cdp_comment("dum",["python","Plugin","python","Module","notification","CountupDBPath"],multiple_file=True) + #dop.cdp_set("dum",["python","Plugin","python","Module","notification","@ORDERS"],[['Environ'],['CountupDBPath']],multiple_file=True,is_opt_multi=True) + # work completely, too. + #dop.cdp_comment("dum",["python","Plugin","python","ModulePath"],multiple_file=True) + # work completely, too. (but this is overwritten by _pre_write_conf() method) + #dop.cdp_set("dum",["python","Plugin","python","@ORDERS"],[['ModulePath'],['Encoding']],multiple_file=True,is_opt_multi=True) #sys.exit() # 配列確認 -- 2.11.0