Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Side by Side Diff: app/models/package_version.py

Issue 838153002: Remove obsolute readme/changelog properties (Closed) Base URL: https://github.com/dart-lang/pub-dartlang.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « app/app.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 This model contains the actual (compressed) blob of code for this version of 24 This model contains the actual (compressed) blob of code for this version of
25 the package. 25 the package.
26 """ 26 """
27 27
28 version = VersionProperty(required=True) 28 version = VersionProperty(required=True)
29 """The version of the package.""" 29 """The version of the package."""
30 30
31 pubspec = PubspecProperty(required=True, indexed=False) 31 pubspec = PubspecProperty(required=True, indexed=False)
32 """The package version's pubspec file.""" 32 """The package version's pubspec file."""
33 33
34 readme = ReadmeProperty()
35 """The README file."""
36
37 readmeFilename = db.StringProperty(indexed=False) 34 readmeFilename = db.StringProperty(indexed=False)
38 """The README filename.""" 35 """The README filename."""
39 36
40 readmeContent = db.TextProperty() 37 readmeContent = db.TextProperty()
41 """The README file as a string.""" 38 """The README file as a string."""
42 39
43 changelog = ReadmeProperty()
44 """The CHANGELOG file."""
45 40
46 changelogFilename = db.StringProperty(indexed=False) 41 changelogFilename = db.StringProperty(indexed=False)
47 """The CHANGELOG filename.""" 42 """The CHANGELOG filename."""
48 43
49 changelogContent = db.TextProperty() 44 changelogContent = db.TextProperty()
50 """The CHANGELOG file as a string.""" 45 """The CHANGELOG file as a string."""
51 46
52 libraries = db.ListProperty(str) 47 libraries = db.ListProperty(str)
53 """All libraries that can be imported from this package version.""" 48 """All libraries that can be imported from this package version."""
54 49
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 311
317 if full: 312 if full:
318 value.update({ 313 value.update({
319 'created': self.created.isoformat(), 314 'created': self.created.isoformat(),
320 'downloads': self.downloads, 315 'downloads': self.downloads,
321 'libraries': self.libraries, 316 'libraries': self.libraries,
322 'uploader': self.uploaderEmail 317 'uploader': self.uploaderEmail
323 }) 318 })
324 319
325 return value 320 return value
OLDNEW
« no previous file with comments | « app/app.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698