else:
data['application'] = [u'unres-e0ll2y']
- '''if data['master_file']:
- self.add_error('master_file', u"Należy podać plik główny. :"+data['master_file'])
- '''
+ if data['pdb_file']== None:
+ self.add_error('pdb_file', u"Należy podać plik PDB.")
+
+ if data['sequence']== '':
+ self.add_error('sequence', u"Należy podać sekwencję aminokwasów.")
+
if data['procs'] and data['nodes']:
self.add_error(None, u"Zdefiniuj tylko jedno z pól: liczbę procesów lub topologię węzłów")
def clean_pdb_file(self):
return self._gsiftp_suffix(self.cleaned_data['pdb_file'])
+
+ def clean_sequence(self):
+ return self.cleaned_data['sequence'].strip(' \t\n\r')
@staticmethod
def _gsiftp_suffix(url):