mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
Improved individual student options gam create|update course ... copyfrom
Some checks are pending
Build and test GAM / build (Win64, build, 8, VC-WIN64A, windows-2022) (push) Waiting to run
Build and test GAM / build (aarch64, build, 2, linux-aarch64, [self-hosted linux arm64]) (push) Waiting to run
Build and test GAM / build (aarch64, build, 4, linux-aarch64, [self-hosted linux arm64], yes) (push) Waiting to run
Build and test GAM / build (aarch64, build, 6, darwin64-arm64, macos-14) (push) Waiting to run
Build and test GAM / build (universal2, build, 7, darwin64-arm64 darwin64-x86_64, macos-14) (push) Waiting to run
Build and test GAM / build (x86_64, build, 1, linux-x86_64, ubuntu-20.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 3, linux-x86_64, ubuntu-20.04, yes) (push) Waiting to run
Build and test GAM / build (x86_64, build, 5, darwin64-x86_64, macos-12) (push) Waiting to run
Build and test GAM / build (x86_64, test, 10, ubuntu-22.04, 3.9) (push) Waiting to run
Build and test GAM / build (x86_64, test, 11, ubuntu-22.04, 3.10) (push) Waiting to run
Build and test GAM / build (x86_64, test, 12, ubuntu-22.04, 3.11) (push) Waiting to run
Build and test GAM / build (x86_64, test, 9, ubuntu-22.04, 3.8) (push) Waiting to run
Build and test GAM / merge (push) Blocked by required conditions
Build and test GAM / publish (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Check for Google Root CA Updates / check-apis (push) Waiting to run
Some checks are pending
Build and test GAM / build (Win64, build, 8, VC-WIN64A, windows-2022) (push) Waiting to run
Build and test GAM / build (aarch64, build, 2, linux-aarch64, [self-hosted linux arm64]) (push) Waiting to run
Build and test GAM / build (aarch64, build, 4, linux-aarch64, [self-hosted linux arm64], yes) (push) Waiting to run
Build and test GAM / build (aarch64, build, 6, darwin64-arm64, macos-14) (push) Waiting to run
Build and test GAM / build (universal2, build, 7, darwin64-arm64 darwin64-x86_64, macos-14) (push) Waiting to run
Build and test GAM / build (x86_64, build, 1, linux-x86_64, ubuntu-20.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 3, linux-x86_64, ubuntu-20.04, yes) (push) Waiting to run
Build and test GAM / build (x86_64, build, 5, darwin64-x86_64, macos-12) (push) Waiting to run
Build and test GAM / build (x86_64, test, 10, ubuntu-22.04, 3.9) (push) Waiting to run
Build and test GAM / build (x86_64, test, 11, ubuntu-22.04, 3.10) (push) Waiting to run
Build and test GAM / build (x86_64, test, 12, ubuntu-22.04, 3.11) (push) Waiting to run
Build and test GAM / build (x86_64, test, 9, ubuntu-22.04, 3.8) (push) Waiting to run
Build and test GAM / merge (push) Blocked by required conditions
Build and test GAM / publish (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Check for Google Root CA Updates / check-apis (push) Waiting to run
This commit is contained in:
@@ -45378,7 +45378,7 @@ class CourseAttributes():
|
||||
self.courseWorks = []
|
||||
self.individualStudentAnnouncements = 'copy'
|
||||
self.individualStudentMaterials = 'copy'
|
||||
self.individualStudentAssignments = 'copy'
|
||||
self.individualStudentCourseWork = 'copy'
|
||||
self.copyTopics = False
|
||||
self.topicsById = {}
|
||||
self.reversedTopicIdList = []
|
||||
@@ -45496,8 +45496,11 @@ class CourseAttributes():
|
||||
self.individualStudentAnnouncements = getChoice(self.COURSE_INDIVIDUAL_STUDENT_OPTIONS)
|
||||
elif myarg == 'individualstudentmaterials':
|
||||
self.individualStudentMaterials = getChoice(self.COURSE_INDIVIDUAL_STUDENT_OPTIONS)
|
||||
elif myarg == 'individualstudentcoursework':
|
||||
self.individualStudentCourseWork = getChoice(self.COURSE_INDIVIDUAL_STUDENT_OPTIONS)
|
||||
elif myarg == 'individualstudentassignments':
|
||||
self.individualStudentAssignments = getChoice(self.COURSE_INDIVIDUAL_STUDENT_OPTIONS)
|
||||
self.individualStudentAnnouncements = self.individualStudentMaterials = self.individualStudentCourseWork =\
|
||||
getChoice(self.COURSE_INDIVIDUAL_STUDENT_OPTIONS)
|
||||
elif myarg == 'members':
|
||||
self.members = getChoice(COURSE_MEMBER_ARGUMENTS)
|
||||
elif myarg == 'markdraftaspublished':
|
||||
@@ -45834,7 +45837,7 @@ class CourseAttributes():
|
||||
body = courseWork.copy()
|
||||
courseWorkId = self.getItemIdTitle(body)
|
||||
if not self.checkItemCopyable(courseWork['state'], newCourseId, Ent.COURSE_WORK, courseWorkId,
|
||||
body, self.individualStudentAssignments, 'individualstudentassignments', j, jcount):
|
||||
body, self.individualStudentCourseWork, 'individualstudentcoursework', j, jcount):
|
||||
continue
|
||||
if self.copyMaterialsFiles:
|
||||
self.CopyMaterials(tdrive, newCourseId, body, Ent.COURSE_WORK, courseWorkId, teacherFolderId)
|
||||
@@ -45887,9 +45890,10 @@ class CourseAttributes():
|
||||
# [materialstates <CourseMaterialStateList>]
|
||||
# [individualstudentmaterials copy|delete|maptoall]
|
||||
# [workstates <CourseWorkStateList>]
|
||||
# [individualstudentassignments copy|delete|maptoall]
|
||||
# [individualstudentcoursework copy|delete|maptoall]
|
||||
# [removeduedate [<Boolean>]]
|
||||
# [mapsharemodestudentcopy edit|none|view]
|
||||
# [individualstudentassignments copy|delete|maptoall]
|
||||
# [copymaterialsfiles [<Boolean>]]
|
||||
# [copytopics [<Boolean>]]
|
||||
# [markpublishedasdraft [<Boolean>]] [markdraftaspublished [<Boolean>]]
|
||||
@@ -45993,9 +45997,10 @@ def _doUpdateCourses(entityList):
|
||||
# [materialstates <CourseMaterialStateList>]
|
||||
# [individualstudentmaterials copy|delete|maptoall]
|
||||
# [workstates <CourseWorkStateList>]
|
||||
# [individualstudentassignments copy|delete|maptoall]
|
||||
# [individualstudentcoursework copy|delete|maptoall]
|
||||
# [removeduedate [<Boolean>]]
|
||||
# [mapsharemodestudentcopy edit|none|view]
|
||||
# [individualstudentassignments copy|delete|maptoall]
|
||||
# [copymaterialsfiles [<Boolean>]]
|
||||
# [copytopics [<Boolean>]]
|
||||
# [markpublishedasdraft [<Boolean>]] [markdraftaspublished [<Boolean>]]
|
||||
@@ -46011,9 +46016,10 @@ def doUpdateCourses():
|
||||
# [materialstates <CourseMaterialStateList>]
|
||||
# [individualstudentmaterials copy|delete|maptoall]
|
||||
# [workstates <CourseWorkStateList>]
|
||||
# [individualstudentassignments copy|delete|maptoall]
|
||||
# [individualstudentcoursework copy|delete|maptoall]
|
||||
# [removeduedate [<Boolean>]]
|
||||
# [mapsharemodestudentcopy edit|none|view]
|
||||
# [individualstudentassignments copy|delete|maptoall]
|
||||
# [copymaterialsfiles [<Boolean>]]
|
||||
# [copytopics [<Boolean>]]
|
||||
# [markpublishedasdraft [<Boolean>]] [markdraftaspublished [<Boolean>]]
|
||||
|
||||
Reference in New Issue
Block a user