students.studylevel - Student Study Level Components¶
Container which holds the data of a student study level and contains the course tickets.
-
class
waeup.kofa.students.studylevel.
CourseTicket
[source]¶ Bases:
grokcore.content.components.Model
This is a course ticket which allows the student to attend the course. Lecturers will enter scores and more at the end of the term.
A course ticket contains a copy of the original course and certificate course data. If the courses and/or the referring certificate courses are removed, the corresponding tickets remain unchanged. So we do not need any event triggered actions on course tickets.
-
__doc__
= 'This is a course ticket which allows the\n student to attend the course. Lecturers will enter scores and more at\n the end of the term.\n\n A course ticket contains a copy of the original course and\n certificate course data. If the courses and/or the referring certificate\n courses are removed, the corresponding tickets remain unchanged.\n So we do not need any event triggered actions on course tickets.\n '¶
-
__implemented__
= <implementedBy waeup.kofa.students.studylevel.CourseTicket>¶
-
__module__
= 'waeup.kofa.students.studylevel'¶
-
__provides__
¶ Special descriptor for class __provides__
The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.
For example:
>>> from zope.interface import Interface >>> class IFooFactory(Interface): ... pass >>> class IFoo(Interface): ... pass >>> class C(object): ... implements(IFoo) ... classProvides(IFooFactory) >>> [i.getName() for i in C.__provides__] ['IFooFactory']
>>> [i.getName() for i in C().__provides__] ['IFoo']
-
_getGradeWeightFromScore
¶ Nigerian Course Grading System
-
automatic
¶ Automatical Creation (computed attribute)
-
carry_over
¶ Carry-over Course (computed attribute)
-
certcode
¶
-
course_category
¶ Course Category (computed attribute)
-
credits
¶ Credits (computed attribute)
-
dcode
¶ Department Code (computed attribute)
-
editable_by_lecturer
¶ True if lecturer is allowed to edit the ticket.
-
fcode
¶ Faculty Code (computed attribute)
-
grade
¶ Returns the grade calculated from total score.
-
level
¶ Returns the id of the level the ticket has been added to.
-
level_session
¶ Returns the session of the level the ticket has been added to.
-
mandatory
¶ Required (computed attribute)
-
outstanding
¶ Outstanding Course (computed attribute)
-
passmark
¶ Passmark (computed attribute)
-
removable_by_student
¶ True if student is allowed to remove the ticket.
-
score
¶ Score (computed attribute)
-
semester
¶ Semester/Term (computed attribute)
-
student
¶ Get the associated student object.
-
ticket_session
¶ Imported Session (computed attribute)
-
title
¶ Title (computed attribute)
-
total_score
¶ Returns the total score of this ticket. In the base package this is simply the score. In customized packages this could be something else.
-
weight
¶ Returns the weight calculated from total score.
-
-
class
waeup.kofa.students.studylevel.
CourseTicketFactory
[source]¶ Bases:
grokcore.component.components.GlobalUtility
A factory for student study levels.
-
__doc__
= 'A factory for student study levels.\n '¶
-
__implemented__
= <implementedBy waeup.kofa.students.studylevel.CourseTicketFactory>¶
-
__module__
= 'waeup.kofa.students.studylevel'¶
-
__provides__
¶ Special descriptor for class __provides__
The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.
For example:
>>> from zope.interface import Interface >>> class IFooFactory(Interface): ... pass >>> class IFoo(Interface): ... pass >>> class C(object): ... implements(IFoo) ... classProvides(IFooFactory) >>> [i.getName() for i in C.__provides__] ['IFooFactory']
>>> [i.getName() for i in C().__provides__] ['IFoo']
-
description
= u'This factory instantiates new course ticket instances.'¶
-
title
= (u'Create a new course ticket.',)¶
-
-
class
waeup.kofa.students.studylevel.
StudentStudyLevel
[source]¶ Bases:
grokcore.content.components.Container
This is a container for course tickets.
-
__doc__
= 'This is a container for course tickets.\n '¶
-
__implemented__
= <implementedBy waeup.kofa.students.studylevel.StudentStudyLevel>¶
-
__module__
= 'waeup.kofa.students.studylevel'¶
-
__provides__
¶ Special descriptor for class __provides__
The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.
For example:
>>> from zope.interface import Interface >>> class IFooFactory(Interface): ... pass >>> class IFoo(Interface): ... pass >>> class C(object): ... implements(IFoo) ... classProvides(IFooFactory) >>> [i.getName() for i in C.__provides__] ['IFooFactory']
>>> [i.getName() for i in C().__provides__] ['IFoo']
-
addCertCourseTickets
(cert)[source]¶ Collect all certificate courses and create course tickets automatically.
-
certcode
¶
-
course_registration_forbidden
¶
-
cumulative_params
¶ Calculate the cumulative gpa and other cumulative parameters for this level. All levels below this level are taken under consideration (including repeating levels). This method is used for level reports and meanwhile also for session results presentations.
-
getSessionString
¶
-
gpa
¶ Return string formatted gpa value.
-
gpa_params
¶ Calculate gpa parameters for this level.
-
gpa_params_rectified
¶ Calculate corrected level (sessional) gpa parameters. The corrected gpa is displayed on transcripts only.
-
is_current_level
¶
-
level
¶ Level (computed attribute)
-
level_session
¶ Session (computed attribute)
-
level_title
¶
-
level_verdict
¶ Verdict (computed attribute)
-
number_of_tickets
¶
-
passed_params
¶ Determine the number and credits of passed and failed courses. Count the number of courses registered but not taken. This method is used for level reports and the OutstandingCoursesExporter.
-
student
¶
-
total_credits
¶
-
transcript_remark
¶ Transcript Remark (computed attribute)
-
updateCourseTicket
(ticket, course)[source]¶ Updates a course ticket object and return code if ticket has been invalidated.
-
validated_by
¶ Validated by (computed attribute)
-
validation_date
¶ Validation Date (computed attribute)
-
-
class
waeup.kofa.students.studylevel.
StudentStudyLevelFactory
[source]¶ Bases:
grokcore.component.components.GlobalUtility
A factory for student study levels.
-
__doc__
= 'A factory for student study levels.\n '¶
-
__implemented__
= <implementedBy waeup.kofa.students.studylevel.StudentStudyLevelFactory>¶
-
__module__
= 'waeup.kofa.students.studylevel'¶
-
__provides__
¶ Special descriptor for class __provides__
The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.
For example:
>>> from zope.interface import Interface >>> class IFooFactory(Interface): ... pass >>> class IFoo(Interface): ... pass >>> class C(object): ... implements(IFoo) ... classProvides(IFooFactory) >>> [i.getName() for i in C.__provides__] ['IFooFactory']
>>> [i.getName() for i in C().__provides__] ['IFoo']
-
description
= u'This factory instantiates new student study level instances.'¶
-
title
= (u'Create a new student study level.',)¶
-