From e9f7fd414e94595e40eb1ba0fc471ca69136d82f Mon Sep 17 00:00:00 2001 From: Paul Bolle Date: Thu, 8 Apr 2010 11:52:25 +0200 Subject: Docs: replace gio.IO_ERROR_* with gio.ERROR_* Signed-off-by: Paul Bolle --- docs/reference/pygio-file.xml | 58 +++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'docs/reference/pygio-file.xml') diff --git a/docs/reference/pygio-file.xml b/docs/reference/pygio-file.xml index 9dfff67..ac85840 100644 --- a/docs/reference/pygio-file.xml +++ b/docs/reference/pygio-file.xml @@ -2664,7 +2664,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If the source is a directory and the target does not exist, or gio.FILE_COPY_OVERWRITE is specified - and the target is a file, then the G_IO_ERROR_WOULD_RECURSE error may be returned + and the target is a file, then the gio.ERROR_WOULD_RECURSE error may be returned (if the native move operation isn't available). @@ -2846,7 +2846,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned. Other errors @@ -2998,7 +2998,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. For symlinks, normally the information about the target of the symlink is returned, @@ -3008,7 +3008,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] files the information about the symlink itself will be returned. - If the file does not exist, the gio.IO_ERROR_NOT_FOUND error will be + If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. @@ -3147,7 +3147,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3183,7 +3183,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3219,11 +3219,11 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. - If the file does not exist, the gio.IO_ERROR_NOT_FOUND error will be returned. - If the file is a directory, the gio.IO_ERROR_IS_DIRECTORY error will be returned. + If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned. + If the file is a directory, the gio.ERROR_IS_DIRECTORY error will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. @@ -3373,11 +3373,11 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. If you pass in a non-None etag value, then this value is compared - to the current entity tag of the file, and if they differ an gio.IO_ERROR_WRONG_ETAG error + to the current entity tag of the file, and if they differ an gio.ERROR_WRONG_ETAG error is returned. This generally means that the file has been changed since you last read it. You can get the new etag from gio.FileOutputStream.get_etag() @@ -3387,15 +3387,15 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If make_backup is True, this function will attempt to make a backup - of the current file before overwriting it. If this fails a gio.IO_ERROR_CANT_CREATE_BACKUP + of the current file before overwriting it. If this fails a gio.ERROR_CANT_CREATE_BACKUP error will be returned. If you want to replace anyway, try again with make_backup set to False. - If the file is a directory the gio.IO_ERROR_IS_DIRECTORY error will be returned, and - if the file is some other form of non-regular file then a gio.IO_ERROR_NOT_REGULAR_FILE + If the file is a directory the gio.ERROR_IS_DIRECTORY error will be returned, and + if the file is some other form of non-regular file then a gio.ERROR_NOT_REGULAR_FILE error will be returned. Some file systems don't allow all file names, and may return an - gio.IO_ERROR_INVALID_FILENAME error, and if the name is to long gio.IO_ERROR_FILENAME_TOO_LONG + gio.ERROR_INVALID_FILENAME error, and if the name is to long gio.ERROR_FILENAME_TOO_LONG will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. @@ -3525,7 +3525,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] The replace_contents() method replaces the contents of file with contents of length bytes. If etag is specified (not NULL) any existing - file must have that etag, or the error gio.IO_ERROR_WRONG_ETAG will be returned. + file must have that etag, or the error gio.ERROR_WRONG_ETAG will be returned. If make_backup is True, this function will attempt to make a backup of file. @@ -3533,7 +3533,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. The returned etag can be used to verify that the file hasn't changed the next time it is saved over. @@ -3765,7 +3765,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3819,7 +3819,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3873,7 +3873,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3927,7 +3927,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3981,7 +3981,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -4035,7 +4035,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -4089,7 +4089,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -4237,7 +4237,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. @@ -4291,7 +4291,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. @@ -4408,12 +4408,12 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] The trash() method sends file to the "Trashcan", if possible. This is similar to deleting it, but the user can recover it before emptying the trashcan. - Not all file systems support trashing, so this call can return the gio.IO_ERROR_NOT_SUPPORTED error. + Not all file systems support trashing, so this call can return the gio.ERROR_NOT_SUPPORTED error. If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. @@ -4459,7 +4459,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. When the operation is finished, callback will be called. You can then call -- cgit