standalonePGproblemRenderer.pl seems to depend on a webwork database. It seems however that the only places where the database connection
|
our $db = WeBWorK::DB->new($dbLayout); |
is actually used are:
|
my $user = $input->{user} || fake_user($db); |
|
my $set = $input->{'this_set'} || fake_set($db); |
|
my $problem = fake_problem($db, 'problem_seed'=>$problem_seed); |
Can these fake objects be generated without a database? I hope so.
standalonePGproblemRenderer.plseems to depend on a webwork database. It seems however that the only places where the database connectionstandaloneProblemRenderer/standalonePGproblemRenderer.pl
Line 404 in 74e9da0
is actually used are:
standaloneProblemRenderer/standalonePGproblemRenderer.pl
Line 928 in 74e9da0
standaloneProblemRenderer/standalonePGproblemRenderer.pl
Line 929 in 74e9da0
standaloneProblemRenderer/standalonePGproblemRenderer.pl
Line 955 in 74e9da0
Can these fake objects be generated without a database? I hope so.