#NEWLINE# def updateStudentsFromFileForLab( g , org , infileName , lab , scratchDirName , startPointDir , force , githubid = '' ) : #NEWLINE# #INDENT# "\n    firstName='' means updateAllStudents\n    " #NEWLINE# addPyGithubToPath ( ) #NEWLINE# userList = getUserList ( infileName ) #NEWLINE# for line in userList : #NEWLINE# #INDENT# if ( ( githubid == '' ) or ( line [ 'github' ] == githubid ) ) : #NEWLINE# #INDENT# studentTeam = addStudentToTeams ( g , org , line [ 'last' ] , line [ 'first' ] , line [ 'github' ] , line [ 'email' ] , line [ 'csil' ] ) #NEWLINE# result = createLabRepoForThisUser ( g , org , lab , line [ 'last' ] , line [ 'first' ] , line [ 'github' ] , line [ 'email' ] , line [ 'csil' ] , studentTeam ) #NEWLINE# if ( result or force ) : #NEWLINE# #INDENT# pushFilesToRepo ( g , org , lab , line [ 'github' ] , scratchDirName , startPointDir ) #NEWLINE# #UNINDENT# updateLabRepoForThisUser ( g , org , lab , line [ 'last' ] , line [ 'first' ] , line [ 'github' ] , line [ 'email' ] , line [ 'csil' ] , studentTeam )