示例#1
0
    def writelines(self, lines):
        """Write the objects contained in lines to the file.

        :note: Not implemented.

        :param lines:   Iterable container of data to add to the file.
        :return:        None
        """
        raise method_not_implemented(self, 'writelines')
示例#2
0
    def write(self, data):
        """Append data to file.

        :note: Not implemented.

        :param data:    Data to append to the file.
        :return:        None
        """
        raise method_not_implemented(self, 'write')
示例#3
0
    def file_history(self, item, debug=False):
        """NOT IMPLEMENTED: Get previous versions of item.
        REST documentation: https://www.bitcasa.com/cloudfs-api-docs/api/List%20History.html

        :param item:    Item to find previous versions.
        :param debug:   If true, will print the the request and response to stdout.
        :return:    List of previous versions of the item.
        """
        raise method_not_implemented(self, 'file_history')
示例#4
0
    def truncate(self, size=0):
        """Delete all data in file after :size: byte.

        :note: Not implemented.

        :param size:    Number of bytes of current file to keep. Optional, defaults to 0.
        :return:        None
        """
        raise method_not_implemented(self, 'truncate')
示例#5
0
    def file_history(self, item, debug=False):
        """NOT IMPLEMENTED: Get previous versions of item.
        REST documentation: https://www.bitcasa.com/cloudfs-api-docs/api/List%20History.html

        :param item:    Item to find previous versions.
        :param debug:   If true, will print the the request and response to stdout.
        :return:    List of previous versions of the item.
        """
        raise method_not_implemented(self, 'file_history')
示例#6
0
    def readline(self, size=None):
        """ Read until reaching a line break bytes read reaches :size:.

        :note: Not implemented.

        :param size:    Max number of bytes to read before returning. Optional, no size limit if not specified.
        :return:    Data from file.
        :rtype:     String
        """
        raise method_not_implemented(self, 'readline')
示例#7
0
    def readlines(self, sizehint=None):
        """ Reads entire file into list.

        Each list entry is either a line (ending in a '\\n' character) or is close to :sizehint: bytes.

        :note: Not implemented.

        :param sizehint:    Approximate limit on list entry size. Optional, no size limit if not specified.
        :return:    Data from file.
        :rtype:     String
        """
        raise method_not_implemented(self, 'readlines')
示例#8
0
 def application_data(self, new_application_data):
     raise method_not_implemented(self, 'set application_data')
示例#9
0
 def writelines(self):
     raise method_not_implemented(self, 'writelines')
示例#10
0
 def write(self):
     raise method_not_implemented(self, 'write')
示例#11
0
 def truncate(self, size=0):
     raise method_not_implemented(self, 'truncate')
示例#12
0
 def readlines(self, sizehint=None):
     raise method_not_implemented(self, 'readlines')
示例#13
0
 def readline(self, size=None):
     raise method_not_implemented(self, 'readline')
示例#14
0
 def application_data(self, new_application_data):
     raise method_not_implemented(self, 'set application_data')
示例#15
0
 def last_name(self, new_last_name):
     raise method_not_implemented(self, 'set user last name')
示例#16
0
 def email(self, new_email):
     raise method_not_implemented(self, 'set user email')
示例#17
0
 def save(self):
     raise method_not_implemented('User', 'save changes')
示例#18
0
 def last_name(self, new_last_name):
     raise method_not_implemented(self, 'set user last name')
示例#19
0
 def first_name(self, new_first_name):
     raise method_not_implemented(self, 'set user first name')
示例#20
0
 def email(self, new_email):
     raise method_not_implemented(self, 'set user email')
示例#21
0
 def first_name(self, new_first_name):
     raise method_not_implemented(self, 'set user first name')
示例#22
0
 def application_data(self, new_application_data):
     #self.changed_meta.add('application_data')
     #self.data['application_data'] = new_application_data
     raise method_not_implemented(self, 'set application_data')
示例#23
0
 def save(self):
     raise method_not_implemented('User', 'save changes')
示例#24
0
 def history(self):
     """NOT IMPLEMENTED: Restore item from trash.
     REST documentation: https://www.bitcasa.com/cloudfs-api-docs/api/List%20History.html
     :return:
     """
     raise method_not_implemented(self, 'history')