-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: #5 Signed-off-by: Jiří Janoušek <[email protected]>
- Loading branch information
1 parent
2eb4a49
commit ee96346
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
""" | ||
Copyright 2016-2017 Jiří Janoušek <[email protected]> | ||
Copyright 2016-2018 Jiří Janoušek <[email protected]> | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
@@ -114,8 +114,9 @@ def create_app_data_xml(meta, genuine): | |
tree.add("p", para) | ||
tree.add("p", LEGAL.strip().format(name=meta["name"])) | ||
with tree("screenshots"): | ||
for i, (url, caption) in enumerate(screenshots.SCREENSHOTS): | ||
args = {"type": "default"} if i == 0 else {} | ||
for i, (filename, _bounds, _fill, caption) in enumerate(screenshots.BASE_SCREENSHOTS[screenshots.DEFAULT_KIND]): | ||
url = screenshots.HOSTED_SCREENSHOTS_WEB_ROOT + app_id + "/" + filename | ||
args = {"type": "default"} if i == 0 else {} | ||
with tree("screenshot", **args): | ||
tree.add("image", url) | ||
tree.add("caption", caption) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters