work in progress
authorDawid Jagieła <lightnir@gmail.com>
Thu, 15 Oct 2015 14:19:17 +0000 (16:19 +0200)
committerDawid Jagieła <lightnir@gmail.com>
Thu, 15 Oct 2015 14:19:17 +0000 (16:19 +0200)
qcg/templates/qcg/job_submit.html
qcg/utils.py
qcg/views.py

index 6a712a9..b25ba06 100644 (file)
                 plugins: ['remove_button']
             });
 
+            $('#id_sequence').on("click keyup", function(){
+                $(this).val($(this).val().toUpperCase());
+            });
+            
             // hide delete checkbox in empty env form
             $('#env-form-empty').find('div.form-group:last-of-type').hide();
             $('#env-controls').find('> div').formset({
index c6453e9..8307bbb 100644 (file)
@@ -21,6 +21,7 @@ from qcg import constants
 
 from django.utils import encoding
 
+
 resources_cache = caches['resources']
 
 
@@ -109,6 +110,7 @@ def to_job_desc(params, proxy):
     QCG.start()
     desc = JobDescription()
 
+
     direct_map = ('env_variables', 'executable', 'arguments', 'note', 'grant', 'hosts', 'properties', 'queue', 'procs',
                   'wall_time', 'memory', 'memory_per_slot', 'modules', 'input', 'stage_in', 'native', 'notify',
                   'preprocess', 'postprocess', 'persistent')
@@ -117,6 +119,7 @@ def to_job_desc(params, proxy):
         if params[name]:
             setattr(desc, name, params[name])
 
+
     if params['application']:
         desc.set_application(*params['application'])
         desc.stage_in += [params['master_file']]
@@ -158,7 +161,9 @@ def to_job_desc(params, proxy):
         przemytnik.append([u'UNRESPORTAL_DT',params['dt']])
     if params['damax']:
         przemytnik.append([u'UNRESPORTAL_DAMAX',params['damax']])
+
     setattr(desc, 'env_variables', przemytnik)
+
     # TODO monitoring
     
     return desc
index 4a6cf34..df16a01 100644 (file)
@@ -358,7 +358,7 @@ def job_save_template(request, job_id):
 
     template_form = JobTemplateForm(request.POST,
                                     instance=JobTemplate(owner=request.user, description=job.qcg_description))
-
+    
     if template_form.is_valid():
         template = template_form.save()