inginious.frontend.webapp package

Package that implements a webapp for INGInious

Subpackages

Submodules

inginious.frontend.webapp.accessible_time module

Contains AccessibleTime, class that represents the period of time when a course/task is accessible

class inginious.frontend.webapp.accessible_time.AccessibleTime(val=None)[source]

Bases: object

represents the period of time when a course/task is accessible

after_start(when=None)[source]

Returns True if the task/course is or have been accessible in the past

before_start(when=None)[source]

Returns True if the task/course is not yet accessible

get_end_date()[source]

Return a datetime object, representing the deadline for accessibility

get_start_date()[source]

Return a datetime object, representing the date when the task/course become accessible

get_std_end_date()[source]

If the date is custom, return the end datetime with the format %Y-%m-%d %H:%M:%S. Else, returns “”.

get_std_start_date()[source]

If the date is custom, return the start datetime with the format %Y-%m-%d %H:%M:%S. Else, returns “”.

is_always_accessible()[source]

Returns true if the course/task is always accessible

is_never_accessible()[source]

Returns true if the course/task is never accessible

is_open(when=None)[source]

Returns True if the course/task is still open

inginious.frontend.webapp.accessible_time.parse_date(date, default=None)[source]

Parse a valid date

inginious.frontend.webapp.app module

inginious.frontend.webapp.courses module

A course class with some modification for users

class inginious.frontend.webapp.courses.WebAppCourse(courseid, content, task_factory, hook_manager)[source]

Bases: inginious.frontend.common.courses.FrontendCourse

A course with some modification for users

allow_unregister(plugin_override=True)[source]

Returns True if students can unregister from course

can_students_choose_group()[source]

Returns True if the students can choose their groups

get_access_control_list()[source]

Returns the list of all users allowed by the AC list

get_access_control_method()[source]

Returns either None, “username”, “realname”, or “email”, depending on the method used to verify that users can register to the course

get_accessibility(plugin_override=True)[source]

Return the AccessibleTime object associated with the accessibility of this course

get_admins()[source]

Returns a list containing the usernames of the administrators of this course

get_registration_accessibility()[source]

Return the AccessibleTime object associated with the registration

get_registration_password()[source]

Returns the password needed for registration (None if there is no password)

get_staff()[source]

Returns a list containing the usernames of all the staff users

get_tasks()[source]
get_tutors()[source]

Returns a list containing the usernames of the tutors assigned to this course

is_open_to_non_staff()[source]

Returns true if the course is accessible by users that are not administrator of this course

is_password_needed_for_registration()[source]

Returns true if a password is needed for registration

is_registration_possible(username, realname, email)[source]

Returns true if users can register for this course

is_user_accepted_by_access_control(username, realname, email)[source]

Returns True if the user is allowed by the ACL

use_classrooms()[source]

Returns True if classrooms are used

inginious.frontend.webapp.database_updater module

inginious.frontend.webapp.installer module

inginious.frontend.webapp.submission_manager module

inginious.frontend.webapp.tasks module

inginious.frontend.webapp.user_manager module