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

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

src/b/a/baboon-0.1.4/baboon/baboond/task.py   baboon(Download)
from baboon.common.file import FileEvent
from baboon.common.logger import logger
from baboon.common.errors.baboon_exception import BaboonException
 
 
        # Raise an error if the project cwd does not exist.
        if not os.path.exists(self.project_cwd):
            raise BaboonException('Cannot find the project on the server.'
                                  ' Are you sure %s is a correct project name'
                                  ' ?' % self.project_name)
        # Raise an error if the project cwd does not exist.
        if not os.path.exists(self.master_cwd):
            raise BaboonException('Cannot find the master user on the %s'
                                  ' project.' % self.project_name)
 
        # If the project cwd is mark as corrupted, stop this task.
        if os.path.exists(os.path.join(self.master_cwd, '.lock')):
            # The path exists -> the master_cwd is corrupted.
            raise BaboonException('The %s is corrupted. The merge task is'

src/b/a/baboon-HEAD/baboon/baboond/task.py   baboon(Download)
from baboon.common.file import FileEvent
from baboon.common.logger import logger
from baboon.common.errors.baboon_exception import BaboonException
 
 
        # Raise an error if the project cwd does not exist.
        if not os.path.exists(self.project_cwd):
            raise BaboonException('Cannot find the project on the server.'
                                  ' Are you sure %s is a correct project name'
                                  ' ?' % self.project_name)
        # Raise an error if the project cwd does not exist.
        if not os.path.exists(self.master_cwd):
            raise BaboonException('Cannot find the master user on the %s'
                                  ' project.' % self.project_name)
 
        # If the project cwd is mark as corrupted, stop this task.
        if os.path.exists(os.path.join(self.master_cwd, '.lock')):
            # The path exists -> the master_cwd is corrupted.
            raise BaboonException('The %s is corrupted. The merge task is'

src/b/a/baboon-0.1.4/baboon/baboon/plugins/git/monitor_git.py   baboon(Download)
 
from baboon.baboon.monitor import EventHandler
from baboon.common.errors.baboon_exception import BaboonException
 
 
                lines = f.readlines()
        except IOError as err:
            raise BaboonException(format(err))
 
        # Sort the line in order to have inverse pattern first

src/b/a/baboon-HEAD/baboon/baboon/plugins/git/monitor_git.py   baboon(Download)
 
from baboon.baboon.monitor import EventHandler
from baboon.common.errors.baboon_exception import BaboonException
 
 
                lines = f.readlines()
        except IOError as err:
            raise BaboonException(format(err))
 
        # Sort the line in order to have inverse pattern first

src/b/a/baboon-0.1.4/baboon/baboon/transport.py   baboon(Download)
from baboon.common import pyrsync
from baboon.common.stanza import rsync
from baboon.common.errors.baboon_exception import BaboonException
 
 
        while not self.connected.is_set():
            if self.failed_auth:
                raise BaboonException("Authentication failed.")
            self.connected.wait(1)
 

src/b/a/baboon-0.1.4/baboon/baboon/monitor.py   baboon(Download)
from baboon.common.eventbus import eventbus
from baboon.common.logger import logger
from baboon.common.errors.baboon_exception import BaboonException
 
lock = Lock()
        except OSError as err:
            self.logger.error(err)
            raise BaboonException(err)
 
    def watch(self):

src/b/a/baboon-0.1.4/baboon/baboon/initializor.py   baboon(Download)
from baboon.common.eventbus import eventbus
from baboon.common.logger import logger
from baboon.common.errors.baboon_exception import BaboonException
 
 
            self._startup_init()
        else:
            raise BaboonException("The project %s is not yet initialized. "
                                  "Please, run `baboon init %s <git-url>`." %
                                  (self.project, self.project))

src/b/a/baboon-HEAD/baboon/baboon/transport.py   baboon(Download)
from baboon.common import pyrsync
from baboon.common.stanza import rsync
from baboon.common.errors.baboon_exception import BaboonException
 
 
        while not self.connected.is_set():
            if self.failed_auth:
                raise BaboonException("Authentication failed.")
            self.connected.wait(1)
 

src/b/a/baboon-HEAD/baboon/baboon/monitor.py   baboon(Download)
from baboon.common.eventbus import eventbus
from baboon.common.logger import logger
from baboon.common.errors.baboon_exception import BaboonException
 
lock = Lock()
        except OSError as err:
            self.logger.error(err)
            raise BaboonException(err)
 
    def watch(self):

src/b/a/baboon-HEAD/baboon/baboon/initializor.py   baboon(Download)
from baboon.common.eventbus import eventbus
from baboon.common.logger import logger
from baboon.common.errors.baboon_exception import BaboonException
 
 
            self._startup_init()
        else:
            raise BaboonException("The project %s is not yet initialized. "
                                  "Please, run `baboon init %s <git-url>`." %
                                  (self.project, self.project))

  1 | 2  Next