Lines Matching defs:be

44 # and reason.  The first field, 'outcome' should be a single word to allow easy
45 # extraction from 'pkg history' but 'reason' may be a phrase.
82 # Cross-reference table for errors and results. Entries should be ordered
112 operations that History manages should these values need to be
121 "end_state", "username", "userid", "be", "be_exists",
130 if name not in ("result", "errors", "be", "be_uuid",
133 # Force all other attribute values to be a string
162 self.be, self.current_be, self.be_uuid, self.new_be, self.current_new_be,
165 # All "time" values should be in UTC, using ISO 8601 as the format.
183 be = None
203 # The result of the operation (must be a list indicating (outcome,
252 # The directory where the history directory can be found (or
262 # A stack where operation data will actually be stored.
294 # A deepcopy has to be performed here since this a list of dicts
333 "cannot be set before 'operation_name'.".format(
345 # last operation's exception won't be recorded to this
347 # doesn't matter anyway, so should be safe to clear.
379 # Some operations shouldn't be saved -- they're merely
392 """'root_dir' should be the path of the directory where the
393 history directory can be found (or created if it doesn't
394 exist). 'filename' should be the name of an XML file
396 'uuid_be_dic', if supplied, should be a dictionary of BE uuid
406 # will be overridden if we load history entries off disk.
419 """The directory where history files will be written to or
427 from or will attempted to be written to. Returns None if no
475 # There might not be any.
483 # There may be no childNodes, or
484 # wholeText may not be defined.
512 if node.hasAttribute("be"):
513 op.be = node.getAttribute("be")
516 op.be)
635 op.setAttribute("be", self.operation_be)
683 # Only the right-most directory should be
685 # does not exist, it shouldn't be created.
768 """Intended to be used by the client during top-level error
772 errors that might be encountered in History itself.
786 """Marks the start of an operation to be recorded in image
793 """Marks the end of an operation to be recorded in image
796 'result' should be a pkg.client.history constant value
799 be based on the class of 'error' and 'error' will be recorded
820 # If a result could still not be determined,
831 """Adds an error to the list of errors to be recorded in image
879 information in memory so that it can be restored in the event of
888 # A deepcopy has to be performed here since this a list of dicts