- Timestamp:
- 10/15/08 14:14:34 (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r171 r175 1 =========== 3.0.0 2 - PBSQuery 3 * Cleaned up some old lines of code which didn't do anything. 4 * Changed the returnvalue of getqueue, getnode and getjob. Now 5 they return an instance of the object, instead of a dict. 6 * Now the getnode-function accepts the short name as well as 7 the long name as an argument. 8 9 By: Sil Westerveld <Sil.Westerveld@sara.nl> 10 1 11 =========== 2.9.8 2 12 - pbs_python.spec file patch added libdir and python defines so it -
trunk/src/PBSQuery.py
r171 r175 141 141 self._disconnect() 142 142 143 self.serverinfo = {}144 143 self._list_2_dict(serverinfo, server) 145 144 … … 164 163 self._statqueue(name, attrib_list) 165 164 q_attrs = self.d['q_express'] 166 return self.d 165 return self.d[name] 167 166 168 167 def getqueues(self, attrib_list=None): … … 184 183 self._disconnect() 185 184 186 self.nodes = {}187 185 self._list_2_dict(nodes, node) 188 186 189 187 def getnode(self, name, attrib_list=None): 190 188 self._statnode(name, attrib_list) 191 return self.d 189 return self.d[name] 192 190 193 191 def getnodes(self, attrib_list=None): … … 210 208 self._disconnect() 211 209 212 self.jobs = {}213 210 self._list_2_dict(jobs, job) 214 211 215 212 def getjob(self, name, attrib_list=None): 213 # To make sure we use the full name of a job; Changes a name 214 # like 1234567 into 1234567.server.name 215 name = name.split('.')[0] + "." + self.get_server_name() 216 216 217 self._statjob(name, attrib_list) 217 return self.d 218 return self.d[name] 218 219 219 220 def getjobs(self, attrib_list=None):
Note: See TracChangeset
for help on using the changeset viewer.