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

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

src/b/a/baboon-0.1.4/baboon/baboon/commands.py   baboon(Download)
from baboon.common.utils import exec_cmd
from baboon.common.errors.baboon_exception import BaboonException
from baboon.common.errors.baboon_exception import CommandException
 
logger = logging.getLogger(__name__)
    if project:
        if project.get('enable') == '0':
            raise CommandException(409, "The project is already defined in "
                                   "your configuration file, but it's "
                                   "disabled.")
 
        raise CommandException(409, "The project is already defined in your "
    # Ensure the path exists.
    if not os.path.exists(path):
        raise CommandException(404, "The project's path does not exist on "
                               "your system.")
 
    # Ensure the path is a directory.
    if not os.path.isdir(path):
        raise CommandException(500, "The project's path is not a directory.")

src/b/a/baboon-HEAD/baboon/baboon/commands.py   baboon(Download)
from baboon.common.utils import exec_cmd
from baboon.common.errors.baboon_exception import BaboonException
from baboon.common.errors.baboon_exception import CommandException
 
logger = logging.getLogger(__name__)
    if project:
        if project.get('enable') == '0':
            raise CommandException(409, "The project is already defined in "
                                   "your configuration file, but it's "
                                   "disabled.")
 
        raise CommandException(409, "The project is already defined in your "
    # Ensure the path exists.
    if not os.path.exists(path):
        raise CommandException(404, "The project's path does not exist on "
                               "your system.")
 
    # Ensure the path is a directory.
    if not os.path.isdir(path):
        raise CommandException(500, "The project's path is not a directory.")

src/b/a/baboon-0.1.4/baboon/baboon/fmt.py   baboon(Download)
from re import match
from getpass import getpass
from termcolor import colored, cprint
from baboon.common.errors.baboon_exception import CommandException
 
    for validation, err in validations:
        if not match(validation, ret):
            raise CommandException(500, err)
 
    confirm_ret = cinput('Confirm %s' % prompt.lower(), secret=secret)
    else:
        # The values are not the same.
        raise CommandException(500, possible_err)
 

src/b/a/baboon-HEAD/baboon/baboon/fmt.py   baboon(Download)
from re import match
from getpass import getpass
from termcolor import colored, cprint
from baboon.common.errors.baboon_exception import CommandException
 
    for validation, err in validations:
        if not match(validation, ret):
            raise CommandException(500, err)
 
    confirm_ret = cinput('Confirm %s' % prompt.lower(), secret=secret)
    else:
        # The values are not the same.
        raise CommandException(500, possible_err)