Chromium Code Reviews| Index: app/handlers/api/package_versions.py |
| diff --git a/app/handlers/api/package_versions.py b/app/handlers/api/package_versions.py |
| index 7ccc2f85289c0862b0bcc119fe339b6defefd9fe..df1d04b76c09f07d32f8247a21a562651acfe7d7 100644 |
| --- a/app/handlers/api/package_versions.py |
| +++ b/app/handlers/api/package_versions.py |
| @@ -164,10 +164,10 @@ class PackageVersions(object): |
| return "" |
| @handlers.api(2) |
| - def show(self, package_id, id, format): |
| + def show(self, package_id, id, format=None): |
|
Bob Nystrom
2013/12/18 19:24:01
What does it mean for format to be omitted? Defaul
|
| """Retrieve the document describing a package version.""" |
| # The mapper thinks the final version digit is the format. |
| - id = id + '.' + format |
| + if format: id = id + '.' + format |
| return json.dumps( |
| handlers.request().package_version(id).as_dict(full=True)) |