Robot Framework
modelcombiner.py
Go to the documentation of this file.
1
# Copyright 2008-2015 Nokia Networks
2
# Copyright 2016- Robot Framework Foundation
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
# you may not use this file except in compliance with the License.
6
# You may obtain a copy of the License at
7
#
8
# http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
16
17
class
ModelCombiner
:
18
__slots__ = [
'data'
,
'result'
,
'priority'
]
19
20
def
__init__
(self, data, result, **priority):
21
self.
data
data = data
22
self.
result
result = result
23
self.
priority
priority = priority
24
25
def
__getattr__
(self, name):
26
if
name
in
self.
priority
priority:
27
return
self.
priority
priority[name]
28
if
hasattr(self.
result
result, name):
29
return
getattr(self.
result
result, name)
30
if
hasattr(self.
data
data, name):
31
return
getattr(self.
data
data, name)
32
raise
AttributeError
(name)
AttributeError
robot.running.modelcombiner.ModelCombiner
Definition:
modelcombiner.py:17
robot.running.modelcombiner.ModelCombiner.__init__
def __init__(self, data, result, **priority)
Definition:
modelcombiner.py:20
robot.running.modelcombiner.ModelCombiner.result
result
Definition:
modelcombiner.py:22
robot.running.modelcombiner.ModelCombiner.__getattr__
def __getattr__(self, name)
Definition:
modelcombiner.py:25
robot.running.modelcombiner.ModelCombiner.priority
priority
Definition:
modelcombiner.py:23
robot.running.modelcombiner.ModelCombiner.data
data
Definition:
modelcombiner.py:21
src
robot
running
modelcombiner.py
Generated by
1.9.1