Diff for /doc/homework/storage.html between versions 1.1 and 1.2

version 1.1, 2001/05/21 15:24:47 version 1.2, 2001/05/31 21:21:49
Line 75  foreach my $key (sort(keys(%history))) { Line 75  foreach my $key (sort(keys(%history))) {
       Calling convention:        Calling convention:
     </h3>      </h3>
     <pre>      <pre>
   my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$uname,$home);    my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$uname);
   &Apache::lonnet::store(\%newrecord,$symb,$courseid,$domain,$uname,$home);    &Apache::lonnet::store(\%newrecord,$symb,$courseid,$domain,$uname);
     </pre>      </pre>
     <h4>      <h4>
       Arguments (only %newrecord is required the rest are somewhat        Arguments (only %newrecord is required the rest are somewhat
Line 107  foreach my $key (sort(keys(%history))) { Line 107  foreach my $key (sort(keys(%history))) {
  be looked at if no value is passed to the functions.   be looked at if no value is passed to the functions.
       </li>        </li>
       <li>        <li>
  <i>$home</i> - the homeserver for the user, usually found in  
  <tt>$ENV{'user.home'}</tt> but can be easily gotten from a  
  domain and name through  
  <tt>&Apache::lonnet::homeserver($uname,$domain)</tt>. If no  
  value is passed to store/restore the value in %ENV will be  
  used.  
       </li>  
       <li>  
  <i>\%newrecord</i> - the hash to store being passed by reference   <i>\%newrecord</i> - the hash to store being passed by reference
       </li>        </li>
     </ul>      </ul>
Line 132  foreach my $key (sort(keys(%history))) { Line 124  foreach my $key (sort(keys(%history))) {
  specific user / resource instance.   specific user / resource instance.
       </li>        </li>
       <li>        <li>
  <i>no_such_host</i> - the <i>$home</i> specfied desn't exist   <i>no_such_host</i> - the homeserver dosen't exist
  in the network.   in the network.
       </li>        </li>
       <li>        <li>
  <i>con_delayed</i> - the <i>$home</i> was uncontactable at   <i>con_delayed</i> - the homeserver was uncontactable at
  this time. The store will be delayed until it is again   this time. The store will be delayed until it is again
  available.   available.
       </li>        </li>
       <li>        <li>
  <i>con_failed</i> - the <i>$home</i> was uncontactable at this   <i>con_failed</i> - the homeserver was uncontactable at this
  time and store was unable to delay the store until a later   time and store was unable to delay the store until a later
  time. The store failed.   time. The store failed.
       </li>        </li>
Line 157  foreach my $key (sort(keys(%history))) { Line 149  foreach my $key (sort(keys(%history))) {
     <address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address>      <address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address>
 <!-- Created: Mon May 21 09:58:20 EDT 2001 -->  <!-- Created: Mon May 21 09:58:20 EDT 2001 -->
 <!-- hhmts start -->  <!-- hhmts start -->
 Last modified: Mon May 21 11:07:44 EDT 2001  Last modified: Wed May 30 10:52:16 EDT 2001
 <!-- hhmts end -->  <!-- hhmts end -->
   </body>    </body>
 </html>  </html>

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>