[LON-CAPA-cvs] cvs: loncom /debugging_tools make_slots.pl

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 08 Nov 2005 02:17:33 -0000


albertel		Mon Nov  7 21:17:33 2005 EDT

  Modified files:              
    /loncom/debugging_tools	make_slots.pl 
  Log:
  - update docs on slots
  
  
Index: loncom/debugging_tools/make_slots.pl
diff -u loncom/debugging_tools/make_slots.pl:1.5 loncom/debugging_tools/make_slots.pl:1.6
--- loncom/debugging_tools/make_slots.pl:1.5	Tue Aug  9 03:34:52 2005
+++ loncom/debugging_tools/make_slots.pl	Mon Nov  7 21:17:33 2005
@@ -16,11 +16,11 @@
 Required:
   starttime - unix time that a slot start
   endtime - unix time that a slot ends
-  startreserve - unix time that a slot can start being reserved
-
-Optional:
   type - either 'preassigned' or 'schedulable_student'
          (controls whether slotrequest.pm will allow one to select it)
+
+Optional:
+  startreserve - unix time that a slot can start being reserved
   ip - comma seperated list of ip address or wildcard ranges or
        wilcard hostnames, or [] style range of allowable client IP
        addresses
@@ -33,8 +33,8 @@
   uniqueperiod - if the user has a reservation that has a uniqueperiod
                  that overlaps this don't allow them to schedule this
                  slot
-Possibly Need: (but not yet supported)
   secret - arrary ref of words that are the secret for this slot
+Possibly Need: (but not yet supported)
 
 
 =cut
@@ -52,8 +52,10 @@
     &freeze_escape({
 	'type'      => 'preassigned',
 	'startreserve' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
-	'starttime' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
+	'starttime' => &UnixDate("Aug 30th 00:00:00 2004","%s"),
+	#'starttime' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
 	'endtime'   => &UnixDate("Aug 30th 00:00:00 2006","%s"),
+	'endtime'   => &UnixDate("Aug 30th 00:00:00 2004","%s"),
 	'ip'        => "*albertelli.com",
 	'proctor'   => 'testuser@annarbor',
     });
@@ -85,20 +87,23 @@
 	'description' => 'Aug 30th 4 P.M., Room 123 Kedzie',
 	'startreserve' => &UnixDate("Aug 29th 00:00:00 2004","%s"),
 	'starttime' => &UnixDate("Aug 30th 00:00:00 2004","%s"),
-	'starttime' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
+	#'starttime' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
 	'endtime' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
 	#'endtime'   => &UnixDate("Aug 30th 00:00:00 2006","%s"),
-	#'endtime'   => &UnixDate("Aug 30th 00:00:00 2004","%s"),
+	'endtime'   => &UnixDate("Aug 30th 00:00:00 2004","%s"),
 	#'ip'        => "*albertelli.com,"
 	'proctor'   => 'testuser@annarbor',
 	'uniqueperiod' => [&UnixDate("Aug 30th 00:00:00 2004","%s"),
 			   &UnixDate("Aug 30th 00:00:00 2005","%s")],
+	'maxspace' => 10,
+	'secret'   => 'sauce'
     });
 $db{'slot6'}=
     &freeze_escape({
 	'type'      => 'schedulable_student',
 	'description' => 'Aug 31th 4 P.M., Room 222 Computer Center',
 	'startreserve' => &UnixDate("Aug 29th 00:00:00 2004","%s"),
+	#'starttime' => &UnixDate("Aug 30th 00:00:00 2004","%s"),
 	'starttime' => &UnixDate("Aug 30th 00:00:00 2006","%s"),
 	'endtime'   => &UnixDate("Aug 30th 00:00:00 2006","%s"),
 	#'endtime'   => &UnixDate("Aug 30th 00:00:00 2004","%s"),
@@ -106,6 +111,7 @@
 	'proctor'   => 'testuser@annarbor',
 	'uniqueperiod' => [&UnixDate("Aug 1st 00:00:00 2005","%s"),
 			   &UnixDate("Aug 30th 00:00:00 2006","%s")],
+	'maxspace' => 4,
     });
 
 sub freeze_escape {