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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def list_to_enum(watch_dirs):
    out = "enum('{0}')".format("','".join(watch_dirs))
    return(out)
        


src/a/r/archivedb-0.2.3/archivedb/sql.py   archivedb(Download)
import logging
import archivedb.config as config
from archivedb.common import enum_to_list, list_to_enum, split_path
 
#### DEPRECATED ################################################################
            self.table_name,
            field_name,
            list_to_enum(watch_dirs),
        )
        self._execute(query)

src/a/r/archivedb-0.2.3/archivedb/config.py   archivedb(Download)
    FULLTEXT `path` (path),
    FULLTEXT `filename` (filename)
) ENGINE=`MyISAM` AUTO_INCREMENT=1 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ROW_FORMAT=DYNAMIC CHECKSUM=0 DELAY_KEY_WRITE=0;""".format(archivedb.common.list_to_enum(args["watch_dirs"])),
    }
    args["table_struct"] = {