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:
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 (
ManyToManyField
toCourse
) – Courses (related name:file_actions
)
Methods
get_match_type_display
Shows the label of the
match_type
.Runs the command on the input assignment
Attributes
MATCH_TYPES
case_sensitive_match
Type:
BooleanField
command
Type:
CharField
courses
Type:
ManyToManyField
toCourse
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