[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf /homework lonhomework.pm

www lon-capa-cvs@mail.lon-capa.org
Tue, 13 May 2003 01:18:37 -0000


www		Mon May 12 21:18:37 2003 EDT

  Modified files:              
    /loncom	loncapa_apache.conf 
    /loncom/homework	lonhomework.pm 
  Log:
  Aargh ... mostly rewinding. We don't want the homework to be rendered on the
  course's homeserver, or do we?
  
  
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.49 loncom/loncapa_apache.conf:1.50
--- loncom/loncapa_apache.conf:1.49	Mon May 12 19:44:43 2003
+++ loncom/loncapa_apache.conf	Mon May 12 21:18:37 2003
@@ -1,7 +1,7 @@
 ##
 ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
 ##
-## $Id: loncapa_apache.conf,v 1.49 2003/05/12 23:44:43 www Exp $
+## $Id: loncapa_apache.conf,v 1.50 2003/05/13 01:18:37 www Exp $
 ##
 
 #
@@ -196,7 +196,7 @@
 PerlHandler Apache::lonxml
 </LocationMatch>
 
-<LocationMatch "^/(res|uploaded|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
+<LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
 SetHandler perl-script
 PerlHandler Apache::lonhomework
 </LocationMatch>
@@ -205,6 +205,14 @@
 PerlAccessHandler       Apache::lonacc
 SetHandler perl-script
 PerlHandler Apache::lonwrapper
+ErrorDocument     403 /adm/login
+ErrorDocument	  500 /adm/errorhandler
+</LocationMatch>
+
+<LocationMatch "^/adm/smpprob/">
+PerlAccessHandler       Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::lonsimpleproblem
 ErrorDocument     403 /adm/login
 ErrorDocument	  500 /adm/errorhandler
 </LocationMatch>
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.124 loncom/homework/lonhomework.pm:1.125
--- loncom/homework/lonhomework.pm:1.124	Mon May 12 17:22:57 2003
+++ loncom/homework/lonhomework.pm	Mon May 12 21:18:37 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.124 2003/05/12 21:22:57 www Exp $
+# $Id: lonhomework.pm,v 1.125 2003/05/13 01:18:37 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -61,8 +61,7 @@
 }
 
 sub get_target {
-  if (($ENV{'request.state'} eq "published") ||
-      ($ENV{'request.state'} eq "uploaded")) {
+  if ($ENV{'request.state'} eq "published") {
     if ( defined($ENV{'form.grade_target'}  ) 
 	 && ($ENV{'form.grade_target'} eq 'tex')) {
       return ($ENV{'form.grade_target'});