[LON-CAPA-cvs] cvs: loncom /homework loncapagrade.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 18 Oct 2005 14:14:12 -0000
albertel Tue Oct 18 10:14:12 2005 EDT
Modified files:
/loncom/homework loncapagrade.pm
Log:
- style policing
Index: loncom/homework/loncapagrade.pm
diff -u loncom/homework/loncapagrade.pm:1.2 loncom/homework/loncapagrade.pm:1.3
--- loncom/homework/loncapagrade.pm:1.2 Wed Aug 7 13:08:30 2002
+++ loncom/homework/loncapagrade.pm Tue Oct 18 10:14:12 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# external style responses
#
-# $Id: loncapagrade.pm,v 1.2 2002/08/07 17:08:30 albertel Exp $
+# $Id: loncapagrade.pm,v 1.3 2005/10/18 14:14:12 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -39,57 +39,58 @@
}
sub start_loncapagrade {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'grade') {
- %Apache::loncapagrade::results=();
- &Apache::lonxml::register('Apache::loncapagrade',('awarddetail','message'));
- }
- return $result;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'grade') {
+ %Apache::loncapagrade::results=();
+ &Apache::lonxml::register('Apache::loncapagrade',
+ ('awarddetail','message'));
+ }
+ return $result;
}
sub end_loncapagrade {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'grade') {
- &Apache::lonxml::deregister('Apache::loncapagrade',
- ('loncapagrade','awardetail','message'));
- }
- return $result;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'grade') {
+ &Apache::lonxml::deregister('Apache::loncapagrade',
+ ('loncapagrade','awardetail','message'));
+ }
+ return $result;
}
sub start_awarddetail {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'grade') { &Apache::lonxml::startredirection; }
- return $result;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'grade') { &Apache::lonxml::startredirection(); }
+ return $result;
}
sub end_awarddetail {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'grade') {
- $Apache::loncapagrade::results{'awarddetail'}=
- &Apache::lonxml::endredirection;
- }
- return $result;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'grade') {
+ $Apache::loncapagrade::results{'awarddetail'}=
+ &Apache::lonxml::endredirection();
+ }
+ return $result;
}
sub start_message {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'grade') { &Apache::lonxml::startredirection; }
- return $result;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'grade') { &Apache::lonxml::startredirection(); }
+ return $result;
}
sub end_message {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'grade') {
- $Apache::loncapagrade::results{'message'}=
- &Apache::lonxml::endredirection;
- }
- return $result;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'grade') {
+ $Apache::loncapagrade::results{'message'}=
+ &Apache::lonxml::endredirection();
+ }
+ return $result;
}
1;