original_docstring: 
          Prints the details of the given component factory
          
docstring: Prints the details of the given component factory
docstring_tokens: Prints the details of the given component factory
code: def factory_details(self, session, name):
          """
          Prints the details of the given component factory
          """
          try:
              details = self._ipopo.get_factory_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"]),
              "Bundle: {0}".format(details["bundle"]),
          ]
  
          properties = details.get("properties", None)
          if properties:
              lines.append("Properties:")
              prop_headers = ("Key", "Default value")
              prop_lines = [
                  (str(key), str(value)) for key, value in properties.items()
              ]
              lines.append(self._utils.make_table(prop_headers, prop_lines))
  
          services = details.get("services", None)
          if services:
              lines.append("Provided services:")
              lines.extend("\t{0}".format(spec) for spec in services)
              lines.append("")
  
          requirements = details.get("requirements", None)
          if requirements:
              lines.append("Requirements:")
              req_headers = (
                  "ID",
                  "Specification",
                  "Filter",
                  "Aggregate",
                  "Optional",
              )
              req_lines = [
                  (
                      item["id"],
                      item["specification"],
                      item["filter"],
                      item["aggregate"],
                      item["optional"],
                  )
                  for item in requirements
              ]
  
              lines.append(self._utils.make_table(req_headers, req_lines, "\t"))
  
          handlers = details.get("handlers", None)
          if handlers:
              lines.append("Handlers:")
              handlers_headers = ("ID", "Configuration")
              handlers_lines = [(key, handlers[key]) for key in sorted(handlers)]
              lines.append(
                  self._utils.make_table(handlers_headers, handlers_lines, "\t")
              )
  
          session.write("\n".join(lines))
          return None
code_tokens: def factory_details ( self , session , name ) : try : details = self . _ipopo . get_factory_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" ] ) , "Bundle: {0}" . format ( details [ "bundle" ] ) , ] properties = details . get ( "properties" , None ) if properties : lines . append ( "Properties:" ) prop_headers = ( "Key" , "Default value" ) prop_lines = [ ( str ( key ) , str ( value ) ) for key , value in properties . items ( ) ] lines . append ( self . _utils . make_table ( prop_headers , prop_lines ) ) services = details . get ( "services" , None ) if services : lines . append ( "Provided services:" ) lines . extend ( "\t{0}" . format ( spec ) for spec in services ) lines . append ( "" ) requirements = details . get ( "requirements" , None ) if requirements : lines . append ( "Requirements:" ) req_headers = ( "ID" , "Specification" , "Filter" , "Aggregate" , "Optional" , ) req_lines = [ ( item [ "id" ] , item [ "specification" ] , item [ "filter" ] , item [ "aggregate" ] , item [ "optional" ] , ) for item in requirements ] lines . append ( self . _utils . make_table ( req_headers , req_lines , "\t" ) ) handlers = details . get ( "handlers" , None ) if handlers : lines . append ( "Handlers:" ) handlers_headers = ( "ID" , "Configuration" ) handlers_lines = [ ( key , handlers [ key ] ) for key in sorted ( handlers ) ] lines . append ( self . _utils . make_table ( handlers_headers , handlers_lines , "\t" ) ) session . write ( "\n" . join ( lines ) ) return None
short_docstring: Prints the details of the given component factory
short_docstring_tokens: Prints the details of the given component factory
comment: """
          Prints the details of the given component factory
          """