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

All Samples(23)  |  Call(16)  |  Derive(0)  |  Import(7)

src/f/l/flashbake-HEAD/src/flashbake/__init__.py   flashbake(Download)
'''  __init__.py - Shared classes and functions for the flashbake package.'''
 
from flashbake.plugins import PluginError, PLUGIN_ERRORS
from flashbake.compat import relpath, next_, iglob
from types import *
        if plugin_spec.find(':') < 0:
            logging.debug('Plugin spec not validly formed, %s.' % plugin_spec)
            raise PluginError(PLUGIN_ERRORS.invalid_plugin, plugin_spec) #@UndefinedVariable
 
        tokens = plugin_spec.split(':')
        except ImportError:
            logging.warn('Invalid module, %s' % plugin_name)
            raise PluginError(PLUGIN_ERRORS.unknown_plugin, plugin_spec) #@UndefinedVariable
 
        try:
            logging.debug(e)
            logging.debug('Couldn\'t load class %s' % plugin_spec)
            raise PluginError(PLUGIN_ERRORS.unknown_plugin, plugin_spec) #@UndefinedVariable
        is_message_plugin = isinstance(plugin, flashbake.plugins.AbstractMessagePlugin)
        is_file_plugin = isinstance(plugin, flashbake.plugins.AbstractFilePlugin)
        is_notify_plugin = isinstance(plugin, flashbake.plugins.AbstractNotifyPlugin)
        if not is_message_plugin and not is_file_plugin and not is_notify_plugin:
            raise PluginError(PLUGIN_ERRORS.invalid_type, plugin_spec) #@UndefinedVariable

src/f/l/flashbake-0.27/src/flashbake/__init__.py   flashbake(Download)
'''  __init__.py - Shared classes and functions for the flashbake package.'''
 
from flashbake.plugins import PluginError, PLUGIN_ERRORS
from flashbake.compat import relpath, next_, iglob
from types import *
        if plugin_spec.find(':') < 0:
            logging.debug('Plugin spec not validly formed, %s.' % plugin_spec)
            raise PluginError(PLUGIN_ERRORS.invalid_plugin, plugin_spec) #@UndefinedVariable
 
        tokens = plugin_spec.split(':')
        except ImportError:
            logging.warn('Invalid module, %s' % plugin_name)
            raise PluginError(PLUGIN_ERRORS.unknown_plugin, plugin_spec) #@UndefinedVariable
 
        try:
            logging.debug(e)
            logging.debug('Couldn\'t load class %s' % plugin_spec)
            raise PluginError(PLUGIN_ERRORS.unknown_plugin, plugin_spec) #@UndefinedVariable
        is_message_plugin = isinstance(plugin, flashbake.plugins.AbstractMessagePlugin)
        is_file_plugin = isinstance(plugin, flashbake.plugins.AbstractFilePlugin)
        is_notify_plugin = isinstance(plugin, flashbake.plugins.AbstractNotifyPlugin)
        if not is_message_plugin and not is_file_plugin and not is_notify_plugin:
            raise PluginError(PLUGIN_ERRORS.invalid_type, plugin_spec) #@UndefinedVariable

src/f/l/flashbake-HEAD/src/flashbake/plugins/growl.py   flashbake(Download)
 
        if self.growlnotify == None:
            raise plugins.PluginError(plugins.PLUGIN_ERRORS.ignorable_error, #@UndefinedVariable
                                      self.plugin_spec,
                                      'Could not find command, growlnotify.')

src/f/l/flashbake-HEAD/src/flashbake/plugins/scrivener.py   flashbake(Download)
by Jason Penney, jasonpenney.net'''
 
from flashbake.plugins import (
    AbstractFilePlugin, AbstractMessagePlugin, PluginError,
    PLUGIN_ERRORS)
                else:
                    raise PluginError(
                        PLUGIN_ERRORS.ignorable_error,
                        self.plugin_spec,
                        'Unsupported file type: %s' % f)

src/f/l/flashbake-0.27/src/flashbake/plugins/growl.py   flashbake(Download)
 
        if self.growlnotify == None:
            raise plugins.PluginError(plugins.PLUGIN_ERRORS.ignorable_error, #@UndefinedVariable
                                      self.plugin_spec,
                                      'Could not find command, growlnotify.')

src/f/l/flashbake-0.27/src/flashbake/plugins/scrivener.py   flashbake(Download)
by Jason Penney, jasonpenney.net'''
 
from flashbake.plugins import (
    AbstractFilePlugin, AbstractMessagePlugin, PluginError,
    PLUGIN_ERRORS)
                else:
                    raise PluginError(
                        PLUGIN_ERRORS.ignorable_error,
                        self.plugin_spec,
                        'Unsupported file type: %s' % f)

src/f/l/flashbake-HEAD/src/flashbake/console.py   flashbake(Download)
 
from flashbake import commit, context, control
from flashbake.plugins import PluginError, PLUGIN_ERRORS
from optparse import OptionParser
from os.path import join, realpath

src/f/l/flashbake-0.27/src/flashbake/console.py   flashbake(Download)
 
from flashbake import commit, context, control
from flashbake.plugins import PluginError, PLUGIN_ERRORS
from optparse import OptionParser
from os.path import join, realpath

src/f/l/flashbake-HEAD/test/config.py   flashbake(Download)
from flashbake import ControlConfig
from flashbake.plugins import PluginError
import unittest