Forum archive 2000-2006

Holly Carley - student's hard copy WeBWorK 2

Holly Carley - student's hard copy WeBWorK 2

by Arnold Pizer -
Number of replies: 0
inactiveTopicstudent's hard copy WeBWorK 2 topic started 8/18/2004; 2:37:04 PM
last post 8/20/2004; 2:53:55 PM
userHolly Carley - student's hard copy WeBWorK 2  blueArrow
8/18/2004; 2:37:04 PM (reads: 1154, responses: 4)
In WeBWorK 2, why is it that a student can get a hard copy of problems that are not 'visible' to them?

Worse, if it is not visible and the answer date is earlier than today's date then they can get the answers. So the first priority should be to move the open date, etc., to the future. I still wonder if there is anything I can do about this.

Holly

<| Post or View Comments |>


userMichael Gage - Re: student's hard copy WeBWorK 2  blueArrow
8/18/2004; 6:53:01 PM (reads: 1401, responses: 0)
Errrr. good point.....

I've patched the file ..... webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm revision 1.47.2.1

if you are hooked up via the CVS you can go to ..../webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm

and type

cvs update -r 1.47.2.1 Hardcopy.pm

to get it. (You may be using wwcvs if you have set up anonymous access to the cvs).

This will update just the one file.

If you want to download the file by hand look at:

http://cvs.webwork.rochester.edu/viewcvs.cgi/webwork2/lib/WeBWorK/ContentGenerator/

The essential change was to replace



@sets = grep { defined $_ } @sets;



by



@sets = grep { defined $_ and
( $self->{permissionLevel} > 0
or ($_->published and $_->open_date < time) )
} @sets;



in line 289. There were some other minor changes as well.

Thanks for the report.

<| Post or View Comments |>


userBen Pollina - Re: student's hard copy WeBWorK 2  blueArrow
8/20/2004; 1:41:42 PM (reads: 1345, responses: 0)
Mike,

I tried directly downloading the Hardcopy.pm file and putting it in the directory /opt/webwork2/lib/WeBWorK/ContentGenerator. This didn't seem to fix the problem. What am I missing? Permissions are set exactly as for the old version of the file.

Ben Pollina

<| Post or View Comments |>


userMichael Gage - Re: student's hard copy WeBWorK 2  blueArrow
8/20/2004; 1:57:43 PM (reads: 1336, responses: 0)
Did you restart the apache server? With mod_perl the scripts are cached. That's why it's faster.

-- Mike

<| Post or View Comments |>


userBen Pollina - Re: student's hard copy WeBWorK 2  blueArrow
8/20/2004; 2:53:55 PM (reads: 1337, responses: 0)
Mike,

Will do. Thank you.

<| Post or View Comments |>