Robot Framework
modeldeprecation.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 from robot.model import Tags
17 
18 
19 def deprecated(method):
20 
21  def wrapper(self, *args, **kws):
22  return method(self, *args, **kws)
23  return wrapper
24 
25 
27  __slots__ = []
28 
29  @property
30  @deprecated
31  name = property
32 
33  def name(self):
34  return ''
35 
36  @property
37  @deprecated
38  kwname = property
39 
40  def kwname(self):
41  return self.namenamename
42 
43  @property
44  @deprecated
45  libname = property
46 
47  def libname(self):
48  return None
49 
50  @property
51  @deprecated
52  args = property
53 
54  def args(self):
55  return ()
56 
57  @property
58  @deprecated
59  assign = property
60 
61  def assign(self):
62  return ()
63 
64  @property
65  @deprecated
66  tags = property
67 
68  def tags(self):
69  return Tags()
70 
71  @property
72  @deprecated
73  timeout = property
74 
75  def timeout(self):
76  return None
77 
78  @property
79  @deprecated
80  message = property
81 
82  def message(self):
83  return ''