Revision b3590640

b/lib/rpc_defs.py
629 629
  "RpcClientConfig": _Prepare([
630 630
    ("upload_file", MULTI, None, constants.RPC_TMO_NORMAL, [
631 631
      ("file_name", ED_FILE_DETAILS, None),
632
      ], None, None, "Upload a file"),
632
      ], None, None, "Upload files"),
633
    ("upload_file_single", MULTI, None, constants.RPC_TMO_NORMAL, [
634
      ("file_name", None, "The name of the file"),
635
      ("content", ED_COMPRESS, "The data to be uploaded"),
636
      ("mode", None, "The mode of the file or None"),
637
      ("uid", None, "The owner of the file"),
638
      ("gid", None, "The group of the file"),
639
      ("atime", None, "The file's last access time"),
640
      ("mtime", None, "The file's last modification time"),
641
      ], None, None, "Upload files"),
633 642
    ("write_ssconf_files", MULTI, None, constants.RPC_TMO_NORMAL, [
634 643
      ("values", None, None),
635 644
      ], None, None, "Write ssconf files"),
b/lib/server/noded.py
892 892
    return backend.UploadFile(*(params[0]))
893 893

  
894 894
  @staticmethod
895
  def perspective_upload_file_single(params):
896
    """Upload a file.
897

  
898
    Note that the backend implementation imposes strict rules on which
899
    files are accepted.
900

  
901
    """
902
    return backend.UploadFile(*params)
903

  
904
  @staticmethod
895 905
  def perspective_master_node_name(params):
896 906
    """Returns the master node name.
897 907

  

Also available in: Unified diff