Revision d88ba587 kamaki/clients/pithos.py

b/kamaki/clients/pithos.py
110 110

  
111 111
        :param public: (bool)
112 112
        """
113
        self.assert_container()
113
        self._assert_container()
114 114

  
115 115
        if withHashFile:
116 116
            data = f.read()
......
159 159

  
160 160
        :param public: (bool)
161 161
        """
162
        self.assert_container()
162
        self._assert_container()
163 163
        r = self.object_put(obj,
164 164
            content_length=0,
165 165
            etag=etag,
......
323 323

  
324 324
        :param public: (bool)
325 325
        """
326
        self.assert_container()
326
        self._assert_container()
327 327

  
328 328
        #init
329 329
        block_info = (blocksize, blockhash, size, nblocks) =\
......
722 722

  
723 723
        :raises ClientError: 409 Container is not empty
724 724
        """
725
        self.assert_container()
725
        self._assert_container()
726 726
        r = self.container_delete(until=until,
727 727
            delimiter=delimiter,
728 728
            success=(204, 404, 409))
......
817 817

  
818 818
        :param delimiter: (str)
819 819
        """
820
        self.assert_container()
820
        self._assert_container()
821 821
        r = self.object_delete(obj, until=until, delimiter=delimiter)
822 822
        r.release()
823 823

  
......
933 933
        :param upload_db: progress.bar for uploading
934 934
        """
935 935

  
936
        self.assert_container()
936
        self._assert_container()
937 937
        meta = self.get_container_info()
938 938
        blocksize = int(meta['x-container-block-size'])
939 939
        filesize = fstat(source_file.fileno()).st_size
......
988 988
        :param upload_db: progress.bar for uploading
989 989
        """
990 990

  
991
        self.assert_container()
991
        self._assert_container()
992 992
        meta = self.get_container_info()
993 993
        blocksize = int(meta['x-container-block-size'])
994 994
        filesize = fstat(source_file.fileno()).st_size
......
1036 1036

  
1037 1037
        :param delimiter: (str)
1038 1038
        """
1039
        self.assert_account()
1039
        self._assert_account()
1040 1040
        self.container = dst_container
1041 1041
        dst_object = dst_object or src_object
1042 1042
        src_path = path4url(src_container, src_object)
......
1073 1073

  
1074 1074
        :param delimiter: (str)
1075 1075
        """
1076
        self.assert_account()
1076
        self._assert_account()
1077 1077
        self.container = dst_container
1078 1078
        dst_object = dst_object or src_object
1079 1079
        src_path = path4url(src_container, src_object)
......
1096 1096

  
1097 1097
        :returns: (dict)
1098 1098
        """
1099
        self.assert_account()
1099
        self._assert_account()
1100 1100

  
1101 1101
        self.set_param('format', 'json')
1102 1102
        self.set_param('limit', limit, iff=limit is not None)
......
1113 1113

  
1114 1114
        :returns: (list)
1115 1115
        """
1116
        self.assert_container()
1116
        self._assert_container()
1117 1117
        r = self.object_get(obj, format='json', version='list')
1118 1118
        return r.json['versions']

Also available in: Unified diff