[postr] Define a default max file size to upload
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [postr] Define a default max file size to upload
- Date: Fri, 6 Nov 2009 04:46:37 +0000 (UTC)
commit a9fc7516bb1e0541396caad040b8415ba2bc30fe
Author: Germán Póo-Caamaño <gpoo gnome org>
Date: Thu Nov 5 21:32:24 2009 -0300
Define a default max file size to upload
In order to work offline, we must assume a default max file
size to upload. A pro account has a limit of 20M and a free
account 10M. We assume the best case (a pro account).
src/StatusBar.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/StatusBar.py b/src/StatusBar.py
index 4cc7aed..ee37a38 100644
--- a/src/StatusBar.py
+++ b/src/StatusBar.py
@@ -27,6 +27,9 @@ class StatusBar(gtk.Label):
self.flickr = flickr
self.quota = None
self.to_upload = None
+ # In case we are offline or we can not get the max file size to
+ # upload, we assume a pro account (20M)
+ self.maxfile = 20
def __update(self):
message = ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]