class_docstr: The configurator base class which defines some useful defaults.
class_docstr_tok: ["The","configurator","base","class","which","defines","some","useful","defaults","."]
docstr: Configure an object with a user-supplied factory.
code: def configure_custom(self, config):
      """Configure an object with a user-supplied factory."""
      c = config.pop("()")
      if (
          not hasattr(c, "__call__")
          and hasattr(types, "ClassType")
          and type(c) != types.ClassType
      ):
          c = self.resolve(c)
      props = config.pop(".", None)
      # Check for valid identifiers
      kwargs = dict([(k, config[k]) for k in config if valid_ident(k)])
      result = c(**kwargs)
      if props:
          for name, value in props.items():
              setattr(result, name, value)
      return result
  
imports: import cStringIO
  import errno
  import io
  import logging
  import logging.handlers
  import os
  import re
  import socket
  import struct
  import sys
  import traceback
  import types
  from SocketServer import ThreadingTCPServer, StreamRequestHandler
label_desc: Use image node_id 6 for calling the BaseConfigurator obj's underlying member method code with example usage: obj.configure_custom(config) and returns: result