Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Instances of this class represent a web-server job . 
The actual Job data, for example the calculations being run, is stored in a SQL database. 
The methods of this class allow this data to be retrived and set, hiding all access and query details.

The main attributes of a Job object are a 
        - job.identification - the jobs unique id
        - job.pdbID - the id of the structure the job is working on
        - job.data - An Data.SQLDataSet instance containing the jobs data

Job objects must be initialy created using the createJob() method of a JobManager class.(more...)

src/p/e/PEATDB-2.3/PEATSA/WebApp/WebScript.py   PEATDB(Download)
			print '[WEBAPP] Connection %s' % self.connection
			print '[WEBAPP] Retrieving job data'
			self.job = Data.Job(jobID=self.parser.jobID(), connection=self.connection)
			if not self.job.exists():
				raise Exceptions.DatabaseRetrievalError, 'Data for job %d is not present in database' % self.job.identification

src/p/e/PEATDB-2.3/PEATSA/WebApp/RemoteLaunch.py   PEATDB(Download)
		#Connect to the database in case there is an error
		connection = UtilityFunctions.ConnectionFromDefaultConfiguration()
		job = Data.Job(jobID=parser.jobID(), connection=connection)
 
		#call main