[LON-CAPA-dev] Extracting problems from page or sequence

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Thu, 27 Feb 2003 17:43:56 -0500 (EST)


Hi Hon-Kie,

> 2. I used the function below but it returns a null string. 
> (&Apache::loncommon::get_student_answers($symb,$uname,$udom,$ENV{'request.course.id'} 
> gave the right answer so I know the arguments are ok.)
> 
> my $subresult=&Apache::lonnet::ssi($request->uri,
> 				   ('grade_target' => 'analyze'),
> 				   ('grade_domain' => $domain),
> 				   ('grade_user' => $user),
> 				   ('grade_symb' => $symb),
> 				   ('grade_courseid' => $courseid));
> (undef,$subresult)=split(/_HASH_REF__/,$subresult,2);
> my %analyze=&Apache::lonnet::str2hash($subresult);


Sorry, the first argument needs to be the URL you are requesting. By
passing in $request->uri it was asking /adm/grades

I commit a change so it will ask the problem instead.

-- 
guy@albertelli.com  LON-CAPA Developer  0-7-7-4-