FileAction

Qualified name: tin.apps.assignments.models.FileAction

class FileAction(*args, **kwargs)[source]

Bases: Model

Runs a user uploaded script on files uploaded to an assignment.

Parameters:

Relationship fields:

Parameters:

courses (ManyToManyField to Course) – Courses (related name: file_actions)

Methods

get_match_type_display

Shows the label of the match_type.

run

Runs the command on the input assignment

Attributes

MATCH_TYPES

case_sensitive_match

Type: BooleanField

command

Type: CharField

courses

Type: ManyToManyField to Course

id

Type: BigAutoField

is_sandboxed

Type: BooleanField

match_type

Type: CharField

match_value

Type: CharField

name

Type: CharField

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

run(assignment: Assignment)[source]

Runs the command on the input assignment