Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 63: Create a play_file attribute for entries to to show which file to link to from play online #65

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

danshiovitz
Copy link
Collaborator

This patch makes it so at the time the platform is generated (by analyzing the uploaded files), it also picks one file as the play_file. For the web platforms, this file is linked to by play online (the play file doesn't get used for the non-web platforms, but you can imagine down the line the site could generate a custom parchment build based on the file or something).


Otherwise, this information will appear someday...
Copy `conf/ifcomp_local.conf-dist` to `conf/ifcomp_local.conf` and then update the database pointers therein as appropriate.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instructions previously said "ifcomp.local" but that didn't match what was in IFComp.pm

else {
$redirection_target = 'index.html';
}
$redirection_target = $entry->play_file->stringify;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

play_file is a File object holding a relative path

@@ -647,78 +662,98 @@ sub _build_subdir_named {
return $path;
}

sub _build_platform {
sub _build_contents_data {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've avoided some of the prior uses of basename here since in theory this should be able to identify play_files within subdirectories in the zipfile.

…ile to link to from play online, instead of assuming index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants