[postr] Fix progress_tracker on upload
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [postr] Fix progress_tracker on upload
- Date: Thu, 2 Dec 2010 04:17:36 +0000 (UTC)
commit d35662d034077396062db82bd5cff8ad3142aee6
Author: Germán Póo-Caamaño <gpoo gnome org>
Date: Wed Dec 1 20:15:23 2010 -0800
Fix progress_tracker on upload
With the patch #ec1f54c2 it was introduced a bug when the user
tries to upload pictures. The progress_tracker argument was
missing.
Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>
src/postr.py | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/src/postr.py b/src/postr.py
index ff54f1a..e640ae5 100644
--- a/src/postr.py
+++ b/src/postr.py
@@ -1075,19 +1075,25 @@ class Postr(UniqueApp):
try:
if uri:
d = self.flickr.upload(uri=uri,
- title=title, desc=desc,
- tags=tags, search_hidden=not visible, safety=safety,
- is_public=is_public, is_family=is_family, is_friend=is_friend,
- content_type=content_type)
+ title=title, desc=desc, tags=tags,
+ search_hidden=not visible,
+ safety=safety, is_public=is_public,
+ is_family=is_family,
+ is_friend=is_friend,
+ content_type=content_type,
+ progress_tracker=self.upload_progress_tracker)
elif pixbuf:
# This isn't very nice, but might be the best way
data = []
pixbuf.save_to_callback(lambda d: data.append(d), "png", {})
d = self.flickr.upload(imageData=''.join(data),
title=title, desc=desc, tags=tags,
- search_hidden=not visible, safety=safety,
- is_public=is_public, is_family=is_family, is_friend=is_friend,
- content_type=content_type)
+ search_hidden=not visible,
+ safety=safety, is_public=is_public,
+ is_family=is_family,
+ is_friend=is_friend,
+ content_type=content_type,
+ progress_tracker=self.upload_progress_tracker)
else:
print "No filename or pixbuf stored"
except gio.Error, (error):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]