~diegosarmentero/ubuntuone-client/menulucid

« back to all changes in this revision

Viewing changes to ubuntuone/platform/sync_menu/linux.py

  • Committer: Diego Sarmentero
  • Date: 2012-10-11 13:00:10 UTC
  • Revision ID: diego.sarmentero@canonical.com-20121011130010-igx2bd6e9a1m4ya9
fixing OrderedDict

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
        items_added = 0
228
228
        remove = []
229
229
        for item in self._uploading_items:
230
 
            if item in uploading_data:
 
230
            if item in uploading_data.keys():
231
231
                size, written = uploading_data[item]
232
232
                percentage = written * 100 / size
233
233
                upload_item = self._uploading_items[item]
243
243
        for item in remove:
244
244
            self._uploading_items.pop(item)
245
245
        if items_added < 5:
246
 
            for item in uploading_data:
 
246
            for item in uploading_data.keys():
247
247
                if item not in self._uploading_items and items_added < 5:
248
248
                    size, written = uploading_data[item]
249
249
                    percentage = written * 100 / size