Revision 4067cdaf kamaki/clients/pithos.py

b/kamaki/clients/pithos.py
670 670
        read_permition=False,
671 671
        write_permition=False):
672 672
        """Give read/write permisions to an object.
673
           @param object is the object to change sharing permissions
674
 onto
675
           @param read_permition is a list of users and user groups that
676
                get read permition for this object
677
                False means all previous read permissions
678
 will be removed
679
           @param write_perimition is a list of users and user groups to
680
                get write permition for this object
681
                False means all previous read permissions
682
 will be removed
673
           @param object is the object to change sharing permissions onto
674
           @param read_permition is a list of users and user groups that get
675
           read permition for this object False means all previous read
676
           permissions will be removed
677
           @param write_perimition is a list of users and user groups to get
678
           write permition for this object False means all previous read
679
           permissions will be removed
683 680
        """
681

  
684 682
        perms = dict(read='' if not read_permition else read_permition,
685 683
            write='' if not write_permition else write_permition)
686 684
        r = self.object_post(object, update=True, permissions=perms)
......
694 692
            to caller application, e.g. a progress bar. Its next is called
695 693
            whenever a block is uploaded
696 694
        """
695

  
697 696
        self.assert_container()
698 697
        meta = self.get_container_info()
699 698
        blocksize = int(meta['x-container-block-size'])
......
732 731
        source_file,
733 732
        upload_cb=None):
734 733
        """Overwrite a part of an object with given source file
735
           @start the part of the remote object to start overwriting from,
736
                in bytes
734
           @start the part of the remote object to start overwriting from, in
735
           bytes
737 736
           @end the part of the remote object to stop overwriting to, in bytes
738 737
        """
738

  
739 739
        self.assert_container()
740 740
        meta = self.get_container_info()
741 741
        blocksize = int(meta['x-container-block-size'])

Also available in: Unified diff