FileAction¶
Qualified name: tin.apps.assignments.models.FileAction
- class FileAction(*args, **kwargs)[source]¶
Bases:
ModelRuns a user uploaded script on files uploaded to an assignment.
- Parameters:
id (BigAutoField) – Primary key: ID
name (CharField) – Name
command (CharField) – Command
match_type (CharField) – Match type
match_value (CharField) – Match value
case_sensitive_match (BooleanField) – Case sensitive match
is_sandboxed (BooleanField) – Is sandboxed
Relationship fields:
- Parameters:
courses (
ManyToManyFieldtoCourse) – Courses (related name:file_actions)
Methods
get_match_type_displayShows the label of the
match_type.Runs the command on the input assignment
Attributes
MATCH_TYPEScase_sensitive_matchType:
BooleanFieldcommandType:
CharFieldcoursesType:
ManyToManyFieldtoCourseidType:
BigAutoFieldis_sandboxedType:
BooleanFieldmatch_typeType:
CharFieldmatch_valueType:
CharFieldnameType:
CharFieldobjects- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- run(assignment: Assignment)[source]¶
Runs the command on the input assignment