original_docstring: 
          Prints the details of the given component instance
          
docstring: Prints the details of the given component instance
docstring_tokens: Prints the details of the given component instance
code: def instance_details(self, session, name):
          """
          Prints the details of the given component instance
          """
          try:
              details = self._ipopo.get_instance_details(name)
          except ValueError as ex:
              session.write_line(
                  "Error getting details about '{0}': {1}", name, ex
              )
              return False
  
          # Basic information
          lines = [
              "Name.....: {0}".format(details["name"]),
              "Factory..: {0}".format(details["factory"]),
              "Bundle ID: {0}".format(details["bundle_id"]),
              "State....: {0}".format(ipopo_state_to_str(details["state"])),
              "Services.:",
          ]
  
          # Provided services
          lines.extend(
              "\t{0}".format(svc_reference)
              for svc_reference in details["services"].values()
          )
  
          # Requirements
          lines.append("Dependencies:")
          for field, infos in details["dependencies"].items():
              lines.append("\tField: {0}".format(field))
              lines.append(
                  "\t\tSpecification: {0}".format(infos["specification"])
              )
              lines.append("\t\tFilter......: {0}".format(infos["filter"]))
              lines.append("\t\tOptional.....: {0}".format(infos["optional"]))
              lines.append("\t\tAggregate....: {0}".format(infos["aggregate"]))
  
              lines.append("\t\tHandler......: {0}".format(infos["handler"]))
              lines.append("\t\tBindings:")
              for ref in infos["bindings"]:
                  lines.append("\t\t\t{0}".format(ref))
  
          # Properties
          lines.append("Properties:")
          lines.append(
              self._utils.make_table(
                  ("Key", "Value"), sorted(details["properties"].items()), "\t"
              )
          )
  
          # Error trace, for erroneous components
          error_trace = details["error_trace"]
          if error_trace:
              lines.append("Error trace:")
              lines.append(error_trace)
  
          lines.append("")
          session.write("\n".join(lines))
          return None
code_tokens: def instance_details ( self , session , name ) : try : details = self . _ipopo . get_instance_details ( name ) except ValueError as ex : session . write_line ( "Error getting details about '{0}': {1}" , name , ex ) return False lines = [ "Name.....: {0}" . format ( details [ "name" ] ) , "Factory..: {0}" . format ( details [ "factory" ] ) , "Bundle ID: {0}" . format ( details [ "bundle_id" ] ) , "State....: {0}" . format ( ipopo_state_to_str ( details [ "state" ] ) ) , "Services.:" , ] lines . extend ( "\t{0}" . format ( svc_reference ) for svc_reference in details [ "services" ] . values ( ) ) lines . append ( "Dependencies:" ) for field , infos in details [ "dependencies" ] . items ( ) : lines . append ( "\tField: {0}" . format ( field ) ) lines . append ( "\t\tSpecification: {0}" . format ( infos [ "specification" ] ) ) lines . append ( "\t\tFilter......: {0}" . format ( infos [ "filter" ] ) ) lines . append ( "\t\tOptional.....: {0}" . format ( infos [ "optional" ] ) ) lines . append ( "\t\tAggregate....: {0}" . format ( infos [ "aggregate" ] ) ) lines . append ( "\t\tHandler......: {0}" . format ( infos [ "handler" ] ) ) lines . append ( "\t\tBindings:" ) for ref in infos [ "bindings" ] : lines . append ( "\t\t\t{0}" . format ( ref ) ) lines . append ( "Properties:" ) lines . append ( self . _utils . make_table ( ( "Key" , "Value" ) , sorted ( details [ "properties" ] . items ( ) ) , "\t" ) ) error_trace = details [ "error_trace" ] if error_trace : lines . append ( "Error trace:" ) lines . append ( error_trace ) lines . append ( "" ) session . write ( "\n" . join ( lines ) ) return None
short_docstring: Prints the details of the given component instance
short_docstring_tokens: Prints the details of the given component instance
comment: """
          Prints the details of the given component instance
          """$SEP$# Basic information$SEP$# Provided services$SEP$# Requirements$SEP$# Properties$SEP$# Error trace, for erroneous components