OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import copy | 5 import copy |
6 import json | 6 import json |
7 import tarfile | 7 import tarfile |
8 | 8 |
9 from google.appengine.api import memcache | 9 from google.appengine.api import memcache |
10 from google.appengine.ext import db | 10 from google.appengine.ext import db |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 id=str(self.version), | 326 id=str(self.version), |
327 format='tar.gz'), | 327 format='tar.gz'), |
328 'pubspec': self.pubspec | 328 'pubspec': self.pubspec |
329 } | 329 } |
330 | 330 |
331 if full: | 331 if full: |
332 value.update({ | 332 value.update({ |
333 'created': self.created.isoformat(), | 333 'created': self.created.isoformat(), |
334 'downloads': self.downloads, | 334 'downloads': self.downloads, |
335 'libraries': self.libraries, | 335 'libraries': self.libraries, |
336 'uploader': self.uploader.email() | 336 'uploader': self.uploaderEmail |
337 }) | 337 }) |
338 | 338 |
339 return value | 339 return value |
OLD | NEW |