Did I find the right examples for you? yes no

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

src/m/i/mic-HEAD/mic/creator.py   mic(Download)
    def postoptparse(self):
        abspath = lambda pth: os.path.abspath(os.path.expanduser(pth))
 
        if self.options.verbose:
            msger.set_loglevel('verbose')
        if self.options.debug:
            msger.set_loglevel('debug')

src/m/i/mic-HEAD/mic/rt_util.py   mic(Download)
def select_bootstrap(repomd, cachedir, bootstrapdir):
    cfgmgr = configmgr
    lvl = msger.get_loglevel()
    msger.set_loglevel('quiet')
    repo_rpmver = misc.get_rpmver_in_repo(repomd)
    if not repo_rpmver:
        msger.set_loglevel(lvl)
            rpmver = misc.get_rpmver_in_repo(repomd)
        except errors.CreatorError, e:
            msger.set_loglevel(lvl)
            raise
 
        if not rpmver:
            continue
        if compare_rpmversion(repo_rpmver, rpmver):
            msger.set_loglevel(lvl)
            msger.set_loglevel(lvl)
            return (bsname, bsrepo)
    msger.set_loglevel(lvl)
    return (None, None)
 

src/m/i/mic-HEAD/mic/bootstrap.py   mic(Download)
 
        lvl = msger.get_loglevel()
        msger.set_loglevel('quiet')
        globalmounts = chroot.setup_chrootenv(self.rootdir, bindmounts)
        try:
            chroot.cleanup_chrootenv(self.rootdir, bindmounts, globalmounts)
 
        msger.set_loglevel(lvl)
 
    def list(self, **kwargs):

src/o/e/oe-core-HEAD/scripts/lib/mic/creator.py   oe-core(Download)
    def postoptparse(self):
        abspath = lambda pth: os.path.abspath(os.path.expanduser(pth))
 
        if self.options.verbose:
            msger.set_loglevel('verbose')
        if self.options.debug:
            msger.set_loglevel('debug')

src/o/e/oe-core-HEAD/scripts/lib/image/engine.py   oe-core(Download)
 
    if debug:
        msger.set_loglevel('debug')
 
    cr = creator.Creator()

src/m/i/mic-HEAD/tests/unittest/test_msger.py   mic(Download)
        sys.stdout = StringIO.StringIO()
        sys.stderr = StringIO.StringIO()
        msger.set_loglevel('normal')
        self.loglevel = msger.LOG_LEVEL
 
    def testVerbose(self):
        excepted = "Verbose: hello\n"
        msger.verbose("hello")
        self.assertEqual("", sys.stdout.getvalue())
        msger.set_loglevel("verbose")
    def testDebug(self):
        excepted = "Debug: hello\n"
        msger.debug("hello")
        self.assertEqual("", sys.stdout.getvalue())
        msger.set_loglevel("debug")
    def testLoglevel(self):
        # test default value
        self.assertEqual("normal", msger.get_loglevel())
        # test no effect value
        msger.set_loglevel("zzzzzz")
        self.assertEqual("normal", msger.get_loglevel())
        # test effect value
        msger.set_loglevel("verbose")

src/m/i/mic-HEAD/tests/unittest/test_configmgr.py   mic(Download)
        self.configmgr.create['cachedir'] = CACHEDIR
        self.level = msger.get_loglevel()
        msger.set_loglevel('quiet')
 
    def tearDown(self):
        msger.set_loglevel(self.level)

src/m/i/mic-HEAD/tests/unittest/test_baseimager.py   mic(Download)
        with open(KSCONF, 'w') as f:
            f.write(content)
        msger.set_loglevel('quiet')
 
    def tearDown(self):