Changeset 270
- Timestamp:
- 08/24/11 14:11:46 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r269 r270 1 1 =========== 4.X.X 2 2 * New generated files for pbs_wrap.c and pbs.py to support python 3.X versions 3 Author: Bas van der Vlies 4 3 5 * Fixed AdvancedParser when using 01-12 range the zero was not appended. 4 6 Reported by: Ramon Bastiaans 5 7 Author: Dennis Stam 8 9 * examples/sara_nodes.py: Catch the PBSQuery error if we can not make a 10 connection with the batch server and exit the program. 11 Author: Bas van der Vlies 6 12 7 13 =========== 4.3.0 … … 20 26 Added the following syntax for node: 21 27 * node['error'] 22 28 * node['event'] 23 29 24 30 eg: node: n1 … … 32 38 example code: 33 39 p = PBSQuery() 34 35 36 40 node = p.getnode(n1) 41 print node.event['sample.time'] 42 print node['event']['sample.time'] 37 43 38 44 Requested by: Roy Dragseth <roy dot dragseth add uit dotno> -
trunk/debian/changelog
r264 r270 1 pbs-python (4.3.1-1) lenny; urgency=low 2 3 * see CHANGES 4 5 -- Bas van der Vlies <bas@sara.nl> Wed, 24 Aug 2011 14:08:09 +0200 6 1 7 pbs-python (4.3.0-1) lenny; urgency=low 2 8 -
trunk/examples/sara_nodes.py
r252 r270 232 232 ''' 233 233 234 header = ' %-10s | %-19s | %s' % ( 'Nodename', 'State', 'Note' )235 if not options.quiet:236 print '\n%s\n%s' % ( header, ( '-' * 80 ) )237 234 238 235 p = PBSQuery.PBSQuery() … … 242 239 p.new_data_structure() 243 240 244 nodes = p.getnodes( ['state', 'note'] ) 241 try: 242 nodes = p.getnodes( ['state', 'note'] ) 243 except PBSQuery.PBSError, detail: 244 print "PBSQuery error: %s" %detail 245 sys.exit(1) 246 247 header = ' %-10s | %-19s | %s' % ( 'Nodename', 'State', 'Note' ) 248 if not options.quiet: 249 print '\n%s\n%s' % ( header, ( '-' * 80 ) ) 245 250 246 251 if args:
Note: See TracChangeset
for help on using the changeset viewer.