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

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

src/m/i/mixminion-HEAD/lib/mixminion/ClientAPI.py   mixminion(Download)
 
        self._configLocation = location
        self._config = mixminion.Config.ClientConfig(fname=location)
 
    # Advanced:
        """
        if type(self._config) == types.StringType:
            self._config = mixminion.Config.ClientConfig(string=config)
        else:
            self._config = config

src/m/i/mixminion-HEAD/lib/mixminion/ClientMain.py   mixminion(Download)
 
    try:
        return mixminion.Config.ClientConfig(fname=configFile)
    except (IOError, OSError), e:
        print >>sys.stderr, "Error reading configuration file %r:"%configFile

src/m/i/mixminion-HEAD/lib/mixminion/test.py   mixminion(Download)
        dirname = mix_mktemp()
        config = mixminion.Config.ClientConfig(
            string="[User]\nUserDir: %s\n"%dirname)
 
        ks = mixminion.ClientDirectory.ClientDirectory(config)
 
            # 2a.1. (Blocking some servers)
            configBlock = mixminion.Config.ClientConfig(string=(
                "[User]\nUserDir: %s\n[Security]\nBlockServers: Joe\n"
                "BlockEntries: Alice\nBlockExits: Bob\n" % dirname))
            dirname2 = mix_mktemp()
            config2 = mixminion.Config.ClientConfig(
                string="[User]\nUserDir: %s\n"%dirname2)
 
            ks2 = mixminion.ClientDirectory.ClientDirectory(config2)
        dirname = mix_mktemp()
        config = mixminion.Config.ClientConfig(
            string="[User]\nUserDir: %s\n"%dirname)
        direc = mixminion.ClientDirectory.ClientDirectory(config)
        self.loadDirectory(direc, d)
        userdir = mix_mktemp()
        usercfgstr = "[User]\nUserDir: %s\n[DirectoryServers]\n"%userdir
        usercfg = mixminion.Config.ClientConfig(string=usercfgstr)
        client = mixminion.ClientMain.MixminionClient(usercfg)