Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/k/a/karesansui-HEAD/karesansui/lib/parser/base/xml_like_conf_parser.py   karesansui(Download)
                    dop.set("__",[_key,_section_val],values)
                    if _comment != "":
                        dop.comment("__",[_key,_section_val])
                    if level == 1:
                        self.orders.append([_key,_section_val])
                            dop.set("__",[_key,_value],values)
                            if _comment != "":
                                dop.comment("__",[_key,_value])
                            if level == 0:
                                self.orders.append([_key,_value])
                            dop.set("__",[_key],values)
                            if _comment != "":
                                dop.comment("__",[_key])
                            if level == 0:
                                self.orders.append([_key])
                            dop.set("__",[_key],values)
                            if _comment != "":
                                dop.comment("__",[_key])
                            if level == 0:
                                self.orders.append([_key])
            dop.add('__',new_key,val)
        if iscomment is True:
            dop.comment('__',new_key)
 
        #preprint_r(dop.getconf('__'))

src/k/a/karesansui-HEAD/karesansui/lib/parser/modprobe_conf.py   karesansui(Download)
    dop.add("dum",["include",new_key],new_value)
    # コメントにするなら
    dop.comment("dum",["include",new_key])
 
    new_key   = '/path/to/include/file2'
    dop.add("dum",["alias",new_key],new_value)
    # コメントにするなら
    dop.comment("dum",["alias",new_key])
 
    new_key   = "snd-hda-intel"

src/k/a/karesansui-HEAD/karesansui/lib/parser/resolv.py   karesansui(Download)
    dop = DictOp()
    dop.addconf("dum",parser.read_conf())
    dop.comment("dum","search")
    dop.comment("dum","nameserver")
    dop.add("dum","domain","example.com localdomain")

src/k/a/karesansui-HEAD/karesansui/lib/parser/iscsid.py   karesansui(Download)
    dop.addconf("dum",parser.read_conf())
    dop.add("dum",['key'],['value',[['','comment mae1','comment mae2'],'comment ato']])
    dop.comment("dum",['node.session.iscsi.FastAbort'])
    dop.uncomment("dum",['node.session.iscsi.FastAbort'])
    conf = dop.getconf("dum")

src/k/a/karesansui-HEAD/bin/add_iscsi.py   karesansui(Download)
            dop.cdp_set("new", ISCSI_CONFIG_KEY_AUTH_PASSWORD, password)
        else:
            dop.comment("new", ISCSI_CONFIG_KEY_AUTH_USER)
            dop.comment("new", ISCSI_CONFIG_KEY_AUTH_PASSWORD)
 

src/k/a/karesansui-HEAD/bin/update_iscsi.py   karesansui(Download)
            dop.cdp_set("new", ISCSI_CONFIG_KEY_AUTH_PASSWORD, password)
        else:
            dop.comment("new", ISCSI_CONFIG_KEY_AUTH_USER)
            dop.comment("new", ISCSI_CONFIG_KEY_AUTH_PASSWORD)