PEATSA/WebApp/JobSubmission.py
def _setPDBStream(self):
	
		'''Assigns a stream to the pdb data to the pdbStream ivar.
		
		If the stream cannot be created it sets an error.
		Note, a stream is only created if a delta-pKa calculation is not requested.
		In this case the pdb file to be used is already available'''
		
		if self.isPDBFilePresent():
			self.pdbStream = self.formData["pdbFile"].file
			self.pdbStream.seek(0)
		elif self.isPDBCodePresent():
			data = {}
			self.pdbStream = GetPDB(self.pdbId(), dict=data)
			if data.has_key('error'):
				self.errorData = {"domain":"PDT.SubmissionDomain",
					  "description":data['error'],
					  "detailedDescription": data['description'],
					  "recoverySuggestion":"Check the supplied code is valid"}
			else:	
				self.pdbStream.seek(0)
Assigns a stream to the pdb data to the pdbStream ivar.
		
		If the stream cannot be created it sets an error.
		Note, a stream is only created if a delta-pKa calculation is not requested.
		In this case the pdb file to be used is already available
Assigns a stream to the pdb data to the pdbStream ivar.
If the stream cannot be created it sets an error.
Note, a stream is only created if a delta-pKa calculation is not requested.
In this case the pdb file to be used is already available
Assigns a stream to the pdb data to the pdbStream ivar . If the stream cannot be created it sets an error . Note a stream is only created if a delta - pKa calculation is not requested . In this case the pdb file to be used is already available
def _setPDBStream(self):
		if self.isPDBFilePresent():
			self.pdbStream = self.formData["pdbFile"].file
			self.pdbStream.seek(0)
		elif self.isPDBCodePresent():
			data = {}
			self.pdbStream = GetPDB(self.pdbId(), dict=data)
			if data.has_key('error'):
				self.errorData = {"domain":"PDT.SubmissionDomain",
					  "description":data['error'],
					  "detailedDescription": data['description'],
					  "recoverySuggestion":"Check the supplied code is valid"}
			else:	
				self.pdbStream.seek(0)
def _setPDBStream ( self ) : if self . isPDBFilePresent ( ) : self . pdbStream = self . formData [ "pdbFile" ] . file self . pdbStream . seek ( 0 ) elif self . isPDBCodePresent ( ) : data = { } self . pdbStream = GetPDB ( self . pdbId ( ) , dict = data ) if data . has_key ( 'error' ) : self . errorData = { "domain" : "PDT.SubmissionDomain" , "description" : data [ 'error' ] , "detailedDescription" : data [ 'description' ] , "recoverySuggestion" : "Check the supplied code is valid" } else : self . pdbStream . seek ( 0 )
Assigns a stream to the pdb data to the pdbStream ivar.
Assigns a stream to the pdb data to the pdbStream ivar .
'''Assigns a stream to the pdb data to the pdbStream ivar.
		
		If the stream cannot be created it sets an error.
		Note, a stream is only created if a delta-pKa calculation is not requested.
		In this case the pdb file to be used is already available'''
self