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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 25 Sep 2002 18:49:01 -0000


albertel		Wed Sep 25 14:49:01 2002 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - udoing some silly formatting changes
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.90 loncom/homework/lonhomework.pm:1.91
--- loncom/homework/lonhomework.pm:1.90	Tue Sep 24 08:39:42 2002
+++ loncom/homework/lonhomework.pm	Wed Sep 25 14:49:01 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.90 2002/09/24 12:39:42 sakharuk Exp $
+# $Id: lonhomework.pm,v 1.91 2002/09/25 18:49:01 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -125,7 +125,7 @@
   my ($which,$request)=@_;
   if ($which eq 'grade') {
     $request->print('<script language="JavaScript"> 
-   hwkmenu=window.open("/res/adm/pages/homeworkmenu.html","homeworkremote",
+          hwkmenu=window.open("/res/adm/pages/homeworkmenu.html","homeworkremote",
                  "height=350,width=150,menubar=no");
           </script>');
   }
@@ -204,7 +204,7 @@
 
   &Apache::lonxml::debug("sending back :$status:$datemsg:");
   if (($Apache::lonhomework::browse eq 'F') && ($status eq 'CLOSED')) {
- &Apache::lonxml::debug("should be allowed to browse a resource when closed");
+    &Apache::lonxml::debug("should be allowed to browse a resource when closed");
     $status='CAN_ANSWER';
     $datemsg='is closed but you are allowed to view it';
   }
@@ -393,9 +393,9 @@
     if ($target eq 'answer') { &showhash(%Apache::lonhomework::history); }
     if ($target eq 'web') {&Apache::lonhomework::showhashsubset(\%ENV,'^form');}
 
-my $default=&Apache::lonnet::getfile('/home/httpd/html/res/adm/includes/default_homework.lcpm');
+    my $default=&Apache::lonnet::getfile('/home/httpd/html/res/adm/includes/default_homework.lcpm');
     if ($default == -1) {
-  &Apache::lonxml::error("<b>Unable to find <i>default_homework.lcpm</i></b>");
+      &Apache::lonxml::error("<b>Unable to find <i>default_homework.lcpm</i></b>");
       $default='';
     }
     &Apache::lonxml::debug("Should be parsing now");
@@ -429,8 +429,7 @@
   my $result;
   my @allnames;
   &Apache::lonxml::debug("Looking for :$extension:");
-  foreach my $file (</home/httpd/html/res/adm/includes/templates/*.$extension>)
- {
+  foreach my $file (</home/httpd/html/res/adm/includes/templates/*.$extension>) {
     my $name=&Apache::lonnet::metadata($file,'title');
     if ($namewanted && ($name eq $namewanted)) {
       $result=$file;
@@ -505,7 +504,7 @@
   #my $t0 = [&gettimeofday()];
   my $request=$_[0];
 
-#  if ( $ENV{'user.name'} eq 'physnet' ) {$Apache::lonxml::debug=1;}
+#  if ( $ENV{'user.name'} eq 'albertel' ) {$Apache::lonxml::debug=1;}
 
   if (&setupheader($request)) { return OK; }
   $ENV{'request.uri'}=$request->uri;