def versions(request): return HttpResponse( json.dumps({"versions": list_versions(request.GET["interpreter"])}), mimetype="application/json" )
from containers.models import Host from containers.forms import get_available_hosts, get_image_choices from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, Field, Div from crispy_forms.bootstrap import FieldWithButtons, StrictButton from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from crane.inspect import list_oses, list_interpreters, list_third_party_softwares, list_versions, interpreter_extension oses = list_oses() interpreters = list_interpreters() third_party = list_third_party_softwares() interpreter_name = interpreters[0][1] extension = interpreter_extension(interpreter_name) versions = list_versions(interpreter_name) def get_application_images(): raw_images = get_image_choices() images = [] for image in raw_images: if image[1].count('/') == 4: images.append(image) return images # FIXME : put in view, do ajax for this def get_existing_database(): # FIXME : list the dir on remote host return [] class CreateContainerForm(forms.Form):
from containers.models import Host from containers.forms import get_available_hosts, get_image_choices from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, Field, Div from crispy_forms.bootstrap import FieldWithButtons, StrictButton from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from crane.inspect import list_oses, list_interpreters, list_third_party_softwares, list_versions, interpreter_extension oses = list_oses() interpreters = list_interpreters() third_party = list_third_party_softwares() interpreter_name = interpreters[0][1] extension = interpreter_extension(interpreter_name) versions = list_versions(interpreter_name) def get_application_images(): raw_images = get_image_choices() images = [] for image in raw_images: if image[1].count('/') == 4: images.append(image) return images # FIXME : put in view, do ajax for this def get_existing_database(): # FIXME : list the dir on remote host return []
def versions(request): return HttpResponse(json.dumps( {'versions': list_versions(request.GET['interpreter'])}), mimetype="application/json")