-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
987 additions
and
26 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
39 changes: 39 additions & 0 deletions
39
kive/container/migrations/0004_containerapp_containerargument.py
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,39 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.15 on 2018-11-23 19:10 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('container', '0003_reverse_ordering'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ContainerApp', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(blank=True, help_text=b'Leave blank for default', max_length=60)), | ||
('description', models.CharField(blank=True, max_length=1000, verbose_name=b'Description')), | ||
('container', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='apps', to='container.Container')), | ||
], | ||
options={ | ||
'ordering': ('name',), | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ContainerArgument', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=60)), | ||
('position', models.IntegerField(blank=True, help_text=b'Position in the arguments (gaps and duplicates are allowed). Leave position blank to pass as an option with --name.', null=True)), | ||
('type', models.CharField(choices=[(b'I', b'Input'), (b'O', b'Output')], max_length=1)), | ||
('allow_multiple', models.BooleanField(default=False, help_text=b'True for optional inputs that accept multiple datasets and outputs that just collect all files written to a directory')), | ||
('app', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='arguments', to='container.ContainerApp')), | ||
], | ||
), | ||
] |
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,21 @@ | ||
(function(permissions) {//dependent on PermissionsTable class | ||
"use strict"; | ||
permissions.ContainerAppTable = function($table, is_user_admin, $navigation_links) { | ||
permissions.PermissionsTable.call(this, $table, is_user_admin, $navigation_links); | ||
this.list_url = "/api/containerapps/"; | ||
this.registerLinkColumn("Name", "", "name", "absolute_url"); | ||
this.registerColumn("Description", "description"); | ||
this.registerColumn("Inputs", "inputs"); | ||
this.registerColumn("Outputs", "outputs"); | ||
}; | ||
permissions.ContainerAppTable.prototype = Object.create(permissions.PermissionsTable.prototype); | ||
permissions.ContainerAppTable.prototype.extractRows = function(response) { | ||
var rows = response.results; | ||
for(var i in rows) { | ||
if (rows[i].name === '') { | ||
rows[i].name = '[default]'; | ||
} | ||
} | ||
return rows; | ||
}; | ||
})(permissions); |
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
Oops, something went wrong.