From: Mike G. v. a. <we...@ma...> - 2007-09-19 15:54:37
|
Log Message: ----------- Corrected $userdata->emailaddress to $userdata->email so that the email address is passed correctly to webwork. Added a list of FIXES that are needed in this subroutine so that group information is translated into section and recitation data in webwork. Modified Files: -------------- wwmoodle/wwassignment: lib.php Revision Data ------------- Index: lib.php =================================================================== RCS file: /webwork/cvs/system/wwmoodle/wwassignment/lib.php,v retrieving revision 1.25 retrieving revision 1.26 diff -Lwwassignment/lib.php -Lwwassignment/lib.php -u -r1.25 -r1.26 --- wwassignment/lib.php +++ wwassignment/lib.php @@ -669,6 +669,7 @@ if(isset($setlist)) { $setoptions = array(); foreach($setlist as $setid) { + $setoptions[$setid] = $setid; } return $setoptions; @@ -710,11 +711,18 @@ */ function create_user($webworkcourse,&$userdata,$permission='0') { $studentid = $userid; + # FIXME: find permission for this user and set permissions appropriately in webwork + # FIXME: find the group(s) that this person is a member of + # FIXME: I have used the following scheme: gage_SEC use groups ending like this to determine sections in webwork + # FIXME: use ordinary groups taName to correspond to recitation sections in WeBWorK + # + # FIXME: make it so an update_user function is called whenever the user data in moodle is changed + # FIXME: so if a student switches groups this is reflected in WeBWorK $this->handler('add_user',array('courseName' => $webworkcourse, 'record' => array( 'user_id' => $userdata->username, 'first_name' => $userdata->firstname, 'last_name' => $userdata->lastname, - 'email_address' => $userdata->emailaddress, + 'email_address' => $userdata->email, 'student_id' => $studentid, 'status' => 'C', 'section' => '', |