Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 8
0
 def application_data(self, new_application_data):
     raise method_not_implemented(self, 'set application_data')
Exemplo n.º 9
0
 def writelines(self):
     raise method_not_implemented(self, 'writelines')
Exemplo n.º 10
0
 def write(self):
     raise method_not_implemented(self, 'write')
Exemplo n.º 11
0
 def truncate(self, size=0):
     raise method_not_implemented(self, 'truncate')
Exemplo n.º 12
0
 def readlines(self, sizehint=None):
     raise method_not_implemented(self, 'readlines')
Exemplo n.º 13
0
 def readline(self, size=None):
     raise method_not_implemented(self, 'readline')
Exemplo n.º 14
0
 def application_data(self, new_application_data):
     raise method_not_implemented(self, 'set application_data')
Exemplo n.º 15
0
 def last_name(self, new_last_name):
     raise method_not_implemented(self, 'set user last name')
Exemplo n.º 16
0
 def email(self, new_email):
     raise method_not_implemented(self, 'set user email')
Exemplo n.º 17
0
 def save(self):
     raise method_not_implemented('User', 'save changes')
Exemplo n.º 18
0
 def last_name(self, new_last_name):
     raise method_not_implemented(self, 'set user last name')
Exemplo n.º 19
0
 def first_name(self, new_first_name):
     raise method_not_implemented(self, 'set user first name')
Exemplo n.º 20
0
 def email(self, new_email):
     raise method_not_implemented(self, 'set user email')
Exemplo n.º 21
0
 def first_name(self, new_first_name):
     raise method_not_implemented(self, 'set user first name')
Exemplo n.º 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')
Exemplo n.º 23
0
 def save(self):
     raise method_not_implemented('User', 'save changes')
Exemplo n.º 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')