Skip to content

Commit

Permalink
add BulkTaskYoutubeImportForm
Browse files Browse the repository at this point in the history
  • Loading branch information
therealmarv committed Mar 13, 2016
1 parent df79739 commit 704b585
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pybossa/forms/forms.py
Expand Up @@ -198,6 +198,15 @@ def get_import_data(self):
'user_credentials': self.user_credentials.data,
}

class BulkTaskYoutubeImportForm(Form):
form_name = TextField(label=None, widget=HiddenInput(), default='youtube')
files = FieldList(TextField(label=None, widget=HiddenInput()))
def get_import_data(self):
return {
'type': 'youtube',
'files': self.files.data
}

class BulkTaskS3ImportForm(Form):
form_name = TextField(label=None, widget=HiddenInput(), default='s3')
files = FieldList(TextField(label=None, widget=HiddenInput()))
Expand Down

0 comments on commit 704b585

Please sign in to comment.