OSDN Git Service

added test routine to make sure that dop.comment/order work well.
authorTaizo ITO <taizo@karesansui-project.info>
Tue, 6 Jul 2010 07:11:26 +0000 (16:11 +0900)
committerTaizo ITO <taizo@karesansui-project.info>
Tue, 6 Jul 2010 07:11:26 +0000 (16:11 +0900)
karesansui/lib/parser/collectdplugin.py

index c508592..db223f2 100644 (file)
@@ -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()
 
     # 配列確認