Lines Matching defs:name

18 # information: Portions Copyright [yyyy] [name of copyright owner]
120 for attr in ("name", "start_time", "end_time", "start_state",
129 def __setattr__(self, name, value):
130 if name not in ("result", "errors", "be", "be_uuid",
137 return object.__setattr__(self, name, value)
160 """.format(self.name, self.result, self.start_time, self.end_time,
167 name = None
184 # The current name of the boot environment.
190 # The current name of the new boot environment.
195 # The name of the file containing the release notes, or None.
255 # The name of the client (e.g. pkg, etc.)
299 def __getattribute__(self, name):
300 if name == "client_args":
301 return object.__getattribute__(self, name)[:]
303 if not name.startswith("operation_"):
304 return object.__getattribute__(self, name)
310 return getattr(ops[-1]["operation"], name[len("operation_"):])
312 def __setattr__(self, name, value):
313 if name == "client_args":
315 "is read-only.".format(name))
317 if not name.startswith("operation_"):
318 return object.__setattr__(self, name, value)
321 if name == "operation_name":
334 name))
337 setattr(op, name[len("operation_"):], value)
342 if name == "operation_name":
375 elif name == "operation_result":
382 if op.name not in DISCARDED_OPERATIONS and \
394 exist). 'filename' should be the name of an XML file
470 self.client_name = node.getAttribute("name")
493 op.name = node.getAttribute("name")
595 client.setAttribute("name", self.client_name)
625 op.setAttribute("name", self.operation_name)
719 name, ext = os.path.splitext(
721 name = name.split("-", 1)[0]
722 # Pick the next name in our sequence
725 "{0}-{1:>02d}{2}".format(name,
785 def log_operation_start(self, name, be_name=None, be_uuid=None):
788 self.operation_name = name
907 for name, val in six.iteritems(self.__snapshot):
908 if not name.startswith("__"):
909 object.__setattr__(self, name, val)