-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from edx/mushtaq/video-thumbnail
Add course video image upload support
- Loading branch information
Showing
17 changed files
with
629 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,3 +66,5 @@ logs/*/*.log* | |
.vagrant | ||
|
||
venv/ | ||
|
||
video-images/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Christopher Lee <[email protected]> | ||
Mushtaq Ali <[email protected]> | ||
Muhammad Ammar <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
""" | ||
VAL Exceptions. | ||
""" | ||
|
||
class ValError(Exception): | ||
""" | ||
An error that occurs during VAL actions. | ||
This error is raised when the VAL API cannot perform a requested | ||
action. | ||
""" | ||
pass | ||
|
||
|
||
class ValInternalError(ValError): | ||
""" | ||
An error internal to the VAL API has occurred. | ||
This error is raised when an error occurs that is not caused by incorrect | ||
use of the API, but rather internal implementation of the underlying | ||
services. | ||
""" | ||
pass | ||
|
||
|
||
class ValVideoNotFoundError(ValError): | ||
""" | ||
This error is raised when a video is not found | ||
If a state is specified in a call to the API that results in no matching | ||
entry in database, this error may be raised. | ||
""" | ||
pass | ||
|
||
|
||
class ValCannotCreateError(ValError): | ||
""" | ||
This error is raised when an object cannot be created | ||
""" | ||
pass | ||
|
||
|
||
class ValCannotUpdateError(ValError): | ||
""" | ||
This error is raised when an object cannot be updated | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
import model_utils.fields | ||
import edxval.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edxval', '0004_data__add_hls_profile'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='VideoImage', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, verbose_name='created', editable=False)), | ||
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, verbose_name='modified', editable=False)), | ||
('image', edxval.models.CustomizableImageField(null=True, blank=True)), | ||
('generated_images', edxval.models.ListField()), | ||
('course_video', models.OneToOneField(related_name='video_image', to='edxval.CourseVideo')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
Oops, something went wrong.