Created on 08.04.2011
Bases: object
Bases: cloudfusion.store.store.Store
config can be obtained from the function cloudfusion.store.sugarsync.sugarsync_store.SugarsyncStore.get_config(), but you need to add user and password:
config = SugarsyncStore.get_config()
config['user'] = 'me@emailserver.com' #your account username/e-mail address
config['password'] = 'MySecret!23$' #your account password
Or you can use a configuration file that already has password and username set by specifying a path:
path_to_my_config_file = '/home/joe/MySugarsync.ini'
config = get_config(path_to_my_config_file)
Parameters: | config – dictionary with key value pairs |
---|
Returns: | The cached directory listing of directory, |
---|
retrieving the listing if it does not yet exist.
Insert path into the cached directory listing, keeping the order sorted, retrieving the listing if it does not yet exist.
Returns: | True iff. path is in the cache of directory listings. |
---|
Check if path exists on the remote server. Tries to do only a partial listing to find out if path exists remotely, also caches this listing for three seconds. :param cached_listing: a locally cached listing used to determine the position of path in the remote listing :returns: True if path exists in the actual listing or in a partial listing that is cached for 3 seconds, False if it is not in the actual listing, or None if the existence is uncertain
Remove path from the cached directory listing.
Set the directory listing of directory.
Returns: | True iff. the partial directory listing in xml_tree contains the last file system item. |
---|
Returns: | dict a dictionary with all paths of the collection at translated_path as keys and the corresponding nested dictionaries with the key/value pair for is_dir and reference. |
---|
Translate unix style path into Sugarsync style path. :raise NoSuchFilesytemObjectError: if there is no such path
Get initial sugarsync configuration to initialize cloudfusion.store.sugarsync.sugarsync_store.SugarsyncStore :param path_to_configfile: path to a configuration file or None, which will use the default configuration file
Return maximum number of bytes per file
Created on 04.05.2011
Bases: object
Bases: requests.auth.AuthBase
Do nothing authentication handler, to prevent requests from using credentials stored in the .netrc configuration file.
Bases: object