]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page/Pb/Entry.pm
Add PASCAL
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Pb / Entry.pm
index 3d696a726e2d2d7b68f0a19dd261a6ed967102dc..84fbf052aa43efd9c0af6a61e3fa4d6a8f3466ed 100644 (file)
@@ -7,13 +7,14 @@ use Gruntmaster::Page::Base pb_entry => '<tmpl_var name>';
 our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant FORMATS => [qw/C CPP JAVA PERL PYTHON/];
+use constant FORMATS => [qw/C CPP JAVA PASCAL PERL PYTHON/];
 
 sub _generate{
        my ($self, $htc, $lang, $env, $contest, $id) = @_;
        debug $env => "language is '$lang', contest is '$contest', id is '$id'";
        my $user = $env->{REMOTE_USER};
        if ($contest && $user) {
+               local $Gruntmaster::Data::contest = $contest;
                mark_open $id, $user;
                debug $env => "Marking problem $id of contest $contest open by $user";
        }
@@ -32,4 +33,7 @@ sub _generate{
        $htc->param(statement => problem_statement $id);
 }
 
+sub vary { 'Authorization' }
+sub max_age { 600 }
+
 1
This page took 0.042371 seconds and 4 git commands to generate.