Changeset 191 for trunk/debian


Ignore:
Timestamp:
05/14/09 13:47:18 (15 years ago)
Author:
bas
Message:

src/PBSQuery.py:

  • fixed an error in the getnode, getqueue and getjob functions

update changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/changelog

    r189 r191  
    33  *  PBSQuery:
    44         New data structure. In the old structure it is a dictionary
    5          with a value and the value is a string. This is changed that 
     5         with a value and the value is a string. This is changed that
    66         dictionary values are now of type list or dictionary depends
    77         on the value of keyword, eg for a node:
    8           - np = 2: 
    9                 - node['np'] = [ '2' ] 
     8          - np = 2:
     9                - node['np'] = [ '2' ]
    1010          - properties = cores2, mem4gb, parallel
    11                 - node['properties'] = [ 'cores2', 'mem4gb', 'parallel' ] 
    12           - status = arch=x86_64,sessions=22599,,size=70627864kb, ...                                                                                   
    13                 - node['status']['arch'] = [ 'x86_64' ] 
     11                - node['properties'] = [ 'cores2', 'mem4gb', 'parallel' ]
     12          - status = arch=x86_64,sessions=22599,,size=70627864kb, ...
     13                - node['status']['arch'] = [ 'x86_64' ]
    1414                - node['status']['sessions'] = [ '222599' ]
    1515                - ...
     
    2121         example:
    2222                p = PBSQuery()
    23                 p.new_data_structure() 
     23                p.new_data_structure()
    2424
    2525                nodes = p.getnodes()
     
    2828         Author: Bas van der Vlies
    2929
    30   * PBSQuery
    31         For old and new data structure we now can use another syntax:
    32          - node['np'] and node.np are equivalent
    33 
    34         This new syntax works for all keywords. 
    35         Author: Bas van der Vlies
    36 
    37  -- Bas van der Vlies <basv@sara.nl>  Wed, 13 May 2009 16:20:27 +0200
     30  *  PBSQuery:
     31        For old and new data structure we now can use another syntax:
     32         - node['np'] and node.np are equivalent
     33
     34        This new syntax works for all keywords.
     35        Author: Bas van der Vlies
     36
     37  *  PBSQuery:
     38        Added iter object for job, node, queue and server objects, eg:
     39                node = p.getnode('gb-r1n1')
     40                print node.name
     41                for attrib in node:
     42                        print '%\t%s = %s' %(attrib, node[attrib])
     43        Author: Bas van der Vlies
     44
     45  *  PBSQuery:
     46        fixed an error in getnode, getqueue and getjob, return
     47        empty dictionary if not found.
     48        Author: Bas van der Vlies
     49
     50  *  PBSQuery:
     51        New build system for rpm packages, make -f Makefile.rpm
     52        Author: Michel Jouvin <jouvin add lal dot in2p3 dot fr>
     53        Applied: Bas van der Vlies
     54
     55 -- Bas van der Vlies <bas@rc.sara.nl>  Thu, 14 May 2009 13:41:00 +0200
    3856
    3957pbs-python (3.0.1-2) intrepid; urgency=low
Note: See TracChangeset for help on using the changeset viewer.