def __str__(self):
        if self._outputs:
            outs = self._outputs.items()
            outs.sort()
        else:
            outs = []
        ins = self._inputs.items()
        ins.sort()

        stream = StringIO()
        write = stream.write
        write("Case:\n")
        write("   uuid: %s\n" % self.uuid)
        write("   timestamp: %15f\n" % self.timestamp)
        if self.parent_uuid:
            write("   parent_uuid: %s\n" % self.parent_uuid)
        if ins:
            write("   inputs:\n")
            for name, val in ins:
                write("      %s: %s\n" % (name, val))
        if outs:
            write("   outputs:\n")
            for name, val in outs:
                write("      %s: %s\n" % (name, val))
        if self.exc:
            stream.write("   exc: %s\n" % exception_str(self.exc))
            stream.write("        %s\n" % traceback_str(self.exc))

        return stream.getvalue()
    def __str__(self):
        if self._outputs:
            outs = self._outputs.items()
            outs.sort()
        else:
            outs = []
        ins = self._inputs.items()
        ins.sort()

        stream = StringIO()
        write = stream.write
        write("Case:\n")
        write("   uuid: %s\n" % self.uuid)
        write("   timestamp: %15f\n" % self.timestamp)
        if self.parent_uuid:
            write("   parent_uuid: %s\n" % self.parent_uuid)
        if ins:
            write("   inputs:\n")
            for name, val in ins:
                write("      %s: %s\n" % (name, val))
        if outs:
            write("   outputs:\n")
            for name, val in outs:
                write("      %s: %s\n" % (name, val))
        if self.exc:
            stream.write("   exc: %s\n" % exception_str(self.exc))
            stream.write("        %s\n" % traceback_str(self.exc))

        return stream.getvalue()
 def __str__(self):
     stream = StringIO()
     write = stream.write
     write("Case: %s\n" % self.index)
     write("   uuid: %s\n" % self.uuid)
     write("   parent_uuid: %s\n" % self.parent_uuid)
     write("   inputs:\n")
     for name, val in sorted(self._inputs.items()):
         write("      %s: %s\n" % (name, val))
     write("   outputs:\n")
     for name in sorted(self._outputs):
         write("      %s\n" % name)
     write("   extra outputs:\n")
     for name in sorted(self._extra_outputs):
         write("      %s\n" % name)
     write("   retries: %s\n" % self.retries)
     write("   exc: %s\n" % exception_str(self.exc))
     if self.exc is not None:
         write("        %s\n" % traceback_str(self.exc))
     return stream.getvalue()
 def __str__(self):
     stream = StringIO()
     write = stream.write
     write("Case: %s\n" % self.index)
     write("   uuid: %s\n" % self.uuid)
     write("   parent_uuid: %s\n" % self.parent_uuid)
     write("   inputs:\n")
     for name, val in sorted(self._inputs.items()):
         write("      %s: %s\n" % (name, val))
     write("   outputs:\n")
     for name in sorted(self._outputs):
         write("      %s\n" % name)
     write("   extra outputs:\n")
     for name in sorted(self._extra_outputs):
         write("      %s\n" % name)
     write("   retries: %s\n" % self.retries)
     write("   exc: %s\n" % exception_str(self.exc))
     if self.exc is not None:
         write("        %s\n" % traceback_str(self.exc))
     return stream.getvalue()
 def msg(self):
     """Exception message."""
     return '' if self.exc is None else exception_str(self.exc)
 def msg(self):
     """Exception message."""
     return '' if self.exc is None else exception_str(self.exc)