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

All Samples(14)  |  Call(9)  |  Derive(0)  |  Import(5)

src/s/t/stratuslab-client-14.03.0/stratuslab/volume_manager/PersistentDisk.py   stratuslab-client(Download)
from stratuslab import Defaults
from stratuslab.Authn import UsernamePasswordCredentialsLoader
from stratuslab.Exceptions import ValidationException, ClientException, \
    ServerException, ConfigurationException
from stratuslab.ConfigHolder import ConfigHolder
                self.pdiskEndpoint = configHolder.endpoint
            except AttributeError:
                raise ConfigurationException('Missing persistent disk endpoint.')
 
    def _initPDiskConnection(self, configHolder=None):

src/s/t/stratuslab-client-14.03.0/stratuslab/ConfigHolder.py   stratuslab-client(Download)
import ConfigParser
import stratuslab.Util as Util
from stratuslab.Exceptions import ConfigurationException
 
class ConfigHolder(object):
            msg = 'Cannot access configuration file %s: %s' % (configFileName,
                                                               str(ex))
            raise ConfigurationException(msg)
        config = SafeConfigParser()
        config.read(configFileName)
                self._parser.read(configFile) # filename
        except ConfigParser.ParsingError, ex:
            raise ConfigurationException(ex)
 
        self._initDict()
            self._loadDefaults()
        except ConfigParser.NoSectionError, ex:
            raise ConfigurationException(ex)
 
        if not selected_section:
                self._loadSection(selected_section)
            except ConfigParser.NoSectionError, ex:
                raise ConfigurationException(ex)
 
        ConfigHolder._formatConfigKeys(self._dict)

src/s/t/stratuslab-client-14.03.0/stratuslab/pat/Service.py   stratuslab-client(Download)
 
from stratuslab.ConfigHolder import ConfigHolder
from stratuslab.Exceptions import ConfigurationException
from stratuslab.pat.Client import PortTranslationDbClient
 
            if os.path.exists(path):
                return path
        raise(ConfigurationException('Missing configuration file'))
 
    def _sendJson(self, data):

src/s/t/stratuslab-client-14.03.0/stratuslab/CommandBase.py   stratuslab-client(Download)
import stratuslab.Exceptions as Exceptions
from stratuslab.ConfigHolder import ConfigHolder, UserConfigurator
from stratuslab.Exceptions import ConfigurationException
 
 
                                                                   selected_section=selected_section)
        except ConfigurationException, ex:
            raise ConfigurationException('Error parsing user configuration file %s' % configFile + '. Details: %s' % ex)
 
    def _updateOptionsFromConfigFile(self):

src/s/t/stratuslab-client-14.03.0/stratuslab/system/centos.py   stratuslab-client(Download)
    def _buildBridgeAndIfaceConfig(ifaceConfOrig, iface, bridge):
 
        res = re.search('(^BOOTPROTO.*)', ifaceConfOrig, re.M)
        if not res:
            raise Exceptions.ConfigurationException('BOOTPROTO not defined in %s config.' % iface)

src/s/t/stratuslab-client-14.03.0/stratuslab/Testor.py   stratuslab-client(Download)
from stratuslab.Creator import Creator
from stratuslab.Exceptions import OneException, ClientException
from stratuslab.Exceptions import ConfigurationException
from stratuslab.Exceptions import ExecutionException
from stratuslab.Exceptions import InputException
        if not self.frontendIp:
            raise ConfigurationException(
                'Missing environment variable %s or configuration parameter frontend_ip' % Util.envEndpoint)
        os.environ[Util.envEndpoint] = self.frontendIp