Pyro.core.ObjBase.__init__(self)
            soma.workflow.database_server.WorkflowDatabaseServer.__init__(self, database_file, tmp_file_dir_path)

        pass

        def test(self):
            return True

    if not len(sys.argv) == 2:
        sys.stdout.write("start_database_server takes 1 argument: resource id. \n")
        sys.exit(1)

    ressource_id = sys.argv[1]
    print "Ressource: " + ressource_id

    config = Configuration.load_from_file(ressource_id)

    (server_log_file, server_log_format, server_log_level) = config.get_server_log_info()

    if server_log_file:
        logging.basicConfig(
            filename=server_log_file, format=server_log_format, level=eval("logging." + server_log_level)
        )

    ########################
    # Pyro server creation
    Pyro.core.initServer()
    daemon = Pyro.core.Daemon()
    # locate the NS
    locator = Pyro.naming.NameServerLocator()
    print "searching for Name Server..."
  sys.stdout.write("Configuration file: " + config_file_path)
  resource_ids = Configuration.get_configured_resources(config_file_path)
  
  # Resource
  sys.stdout.write("Configured resources:\n")
  for i in range(0, len(resource_ids)):
    sys.stdout.write("  " + repr(i) + " -> " + repr(resource_ids[i]) + "\n")
  sys.stdout.write("Select a resource number: ")
  resource_index = int(sys.stdin.readline())
  resource_id = resource_ids[resource_index]
  sys.stdout.write("Selected resource => " + repr(resource_id) + "\n")
  sys.stdout.write("---------------------------------\n")
  login = None
  password = None
  
  config = Configuration.load_from_file(resource_id, config_file_path)

  if config.get_mode() == 'remote':
    sys.stdout.write("This is a remote connection\n")
    sys.stdout.write("login:"******"Login => " + repr(login) + "\n")
  sys.stdout.write("---------------------------------\n")
  
  # Workflow types
  wf_types = ["multiple", "special command"]
  sys.stdout.write("Workflow example to test: \n")