Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/downloadmanager.py
Commit message (Collapse)AuthorAgeFilesLines
* Add timer to update progress in intervals of 3 secondsManuel Quiñones2013-09-051-12/+28
|
* Download: update progress only when the percent changes - #4619Manuel Quiñones2013-09-041-6/+10
| | | | Fixes #4619 . Too much calls to datastore.write() is ineffective.
* Get back preview in downloaded images - SL #1106Manuel Quiñones2013-04-111-0/+44
| | | | | | | | | | | This patch from Gonzalo for gtk2 was the main reference: http://bugs.sugarlabs.org/attachment/ticket/1106/0001-Fix-1106-No-preview-in-Journal-for-downloaded-image.patch Also borrows from sugar3.activity.Activity.get_preview to make the preview with cairo. And uses GdkPixbuf to load any GdkPixbuf supported format. Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Download progress bar SL #4385Manuel Kaufmann2013-04-101-2/+13
| | | | | | | | | | | | This patch is a workaround for a WebKit's bug[1] regarding the 'notify::progress' signal that is not emitted when it should be. So, we use 'notify::current-size' signal instead and compare the 'current-size' with the 'total-size' to get the proper progress. [1] https://bugs.webkit.org/show_bug.cgi?id=107308 Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Correct amount in free space error message SL #394Manuel Kaufmann2013-02-131-4/+10
| | | | | | | | | | | Fixed the order of operation to calculate the free space amount to show in the error message. Added some comments on the code about the units (Bytes, Kilobytes) used by each method. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Fix #4256refs/merge-requests/4Aneesh Dogra2012-12-101-3/+8
|
* Cancel a download if space is very tight SL #394Manuel Kaufmann2012-11-161-16/+72
| | | | | | | | | | | It checks for enough space[1] before downloading the file. If there is no enough space, Browse will cancel the download process before starting it and an Alert will be shown to the user to inform this situation. [1] this check is: free_space - file_to_download > 50Mb Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Change string formatting in downloadmanager to use named argumentsManuel Quiñones2012-03-221-2/+4
| | | | | | | | Fixes this warning in Pootle: 'msgid' format string with unnamed arguments cannot be properly localized: Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Bring back download functionality using WebKitSimon Schampijer2012-01-231-309/+70
| | | | | | | | | | | | | | This brings back the download functionality to Browse using WebKit, it handles the cases when you click on a link and the Browser is not setup to view this file. Requesting a download through Palettes is still to come. The code is inspired by the download code in Surf. Signed-off-by: Simon Schampijer <simon@laptop.org>
* Rename sugar to sugar3Manuel Quiñones2011-11-291-7/+7
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Port from PyGTK to PyGI, renamingManuel Quiñones2011-11-251-9/+9
| | | | | | | Was done running the pygi-convert.sh script. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Use named parameters to enable translation in msg with multiple stringsGonzalo Odiard2011-10-061-2/+3
| | | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
* Remove more unused importsGonzalo Odiard2011-08-291-2/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* minor pep8 cleanupRafael Ortiz2011-08-171-1/+1
|
* going back to previous formating as it was damaging downloadsRafael Ortiz2011-08-171-1/+1
|
* avoiding gettext exceptionRafael Ortiz2011-08-081-1/+1
|
* Remove unfinished downloadsRafael Ortiz2011-07-151-0/+11
| | | | | | When Browse starts removes all files in the instance directory that where not modified in a long time(1 day). Since there is no way to pause a download and continue later, this files are failed downloads that should be eliminated. this is the ''cache'' case of an already fixed issue, by Jose Prous joseprous@gmail.com
* Clarify warning on Stop with pending downloads (SL#1508)Sascha Silbe2011-06-121-0/+4
| | | | | | | | | | | | | The warning previously used the word "cancel" to describe two antagonistic operations: Not continuing the download (including erasing it from the Journal) and not stopping Browse. The new wording was agreed upon [1] by the Design Team. [1] http://meeting.sugarlabs.org/sugar-meeting/meetings/2011-05-29T16:09:15.html Closes: SL#1508 Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
*