Beispiel #1
0
    def do_addBlock(self, line):
        self.deprecated_msg('addBlock', 'addblock')
        command = ['addblock'] + self.split_arguments(line)

        if '--lifetime transaction' in line:
            raise lb_exception.DeprecatedCommandError(
                '--lifetime transaction in addBlock')
        if '--lifetime session' in line:
            raise lb_exception.DeprecatedCommandError(
                '--lifetime session in addBlock')
        self.replace_deprecated_tags(command, ['-B'], ['--name'])
        self.replace_deprecated_tags(command, ['--blockName'], ['--name'])
        self.replace_deprecated_tags(command, ['-I'], ['--inactive'])
        self.replace_deprecated_tags(command, ['--active=false'],
                                     ['--inactive'])
        self.replace_deprecated_tags(command, ['--active', 'false'],
                                     ['--inactive'])
        self.replace_deprecated_tags(command, ['-A', 'false'], ['--inactive'])
        self.replace_deprecated_tags(command, ['--active', 'true'], [])
        self.replace_deprecated_tags(command, ['--active=true'], [])
        self.replace_deprecated_tags(command, ['-A', 'true'], [])
        self.replace_deprecated_tags(command, ['--lifetime', 'database'], [])
        self.replace_deprecated_tags(command, ['-M'], ['--measure'])

        self.default(command, split=False)
Beispiel #2
0
    def do_create(self, line):
        command = ['create'] + self.split_arguments(line)

        if '--copy' in command:
            raise lb_exception.DeprecatedCommandError(
                "--copy option in create")
        if '--blocks' in command:
            raise lb_exception.DeprecatedCommandError(
                "--blocks option in create")

        self.replace_deprecated_tags(command, ['-U'], ['--unique'])
        self.default(command, split=False)
Beispiel #3
0
 def do_loadLibrary(self, arg):
     raise lb_exception.DeprecatedCommandError(
         'loadLibrary', 'Use -lib option when creating a workspace.')
Beispiel #4
0
 def do_execRetry(self, arg):
     raise lb_exception.DeprecatedCommandError('execRetry')
Beispiel #5
0
 def do_comparePredicates(self, arg):
     raise lb_exception.DeprecatedCommandError('comparePredicates')
Beispiel #6
0
 def do_watch(self, arg):
     raise lb_exception.DeprecatedCommandError('watch')
Beispiel #7
0
 def do_option(self, arg):
     raise lb_exception.DeprecatedCommandError('option')