Changeset 264 for trunk


Ignore:
Timestamp:
11/05/10 09:08:25 (13 years ago)
Author:
bas
Message:

COPYING:

  • added GPL3 version

COPYING.LESSER:

  • renamed LICENSE.SARA

debian/copyright:

  • added some more info about the different licenses

src/PBSQuery.py:

  • some real code changes ;-)
Location:
trunk
Files:
1 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/CHANGES

    r262 r264  
    1 =========== 4.X.X
     1=========== 4.3.0
    22 * new_rack_pbsmon.py: For backward compatibility added -a/--all option.
    33   Has the same functionality as -s/--summary
    44   Author: Bas van der Vlies
     5
     6 * Added some license info to debian package and include GPL and LGPL 3.0
     7   files.
     8   Suggested by: W. Trevor King <wking at drexel dot edu>
     9
     10 * PBSQuery.py: Added support for new feature in node status field:
     11    * message=EVENT:<key=value:>+
     12    * message=ERROR <text>
     13
     14  Added the following syntax for node:
     15        * node['error']
     16        * node['event']
     17
     18  eg: node: n1
     19       state = free
     20       np = 8
     21       properties = ib,switch1,highmem
     22       ntype = cluster
     23       jobs = 0/567403.sara.nl, 1/567403.sara.nl
     24       status = ...,loadave=0.00,message=EVENT:sample.time=1288864220.003:cputotals.user=0:cputotals.nice=0:cputotals.sys=0:cputotals.wait=0:cputotals.irq=0:cputotals.soft=0:cputotals.steal=0:cputotals.idle=99:cputotals.systot=0:cputotals.usertot=0:nettotals.kbin=0:nettotals.pktin=1:nettotals.kbout=0:nettotals.pktout=0:lusclt.reads=0:lusclt.readkbs=0:lusclt.writes=0:lusclt.writekbs=0:lusclt.numfs=2:iconnect.kbin=0:iconnect.pktin=0:iconnect.kbout=0:iconnect.pktout=0,netload=3487600394,state=free,...
     25
     26  example code:
     27        p = PBSQuery()
     28        node = p.getnode(n1)
     29        print node.event['sample.time']
     30        print node['event']['sample.time']
     31
     32   Requested by: Roy Dragseth <roy dot dragseth add uit dotno>
     33   Author: Bas van der Vlies
     34
    535
    636=========== 4.2.0
  • trunk/debian/changelog

    r259 r264  
     1pbs-python (4.3.0-1) lenny; urgency=low
     2
     3  * See CHANGES
     4
     5 -- Bas van der Vlies <bas@sara.nl>  Fri, 05 Nov 2010 09:04:29 +0100
     6
    17pbs-python (4.2.0-2) lenny; urgency=low
    28
  • trunk/debian/copyright

    r64 r264  
    1 This package was debianized by
    2  Yaroslav Halchenko <yoh@psychology.rutgers.edu>
    3  on Sat, 10 May 2003 20:34:31 -0400.
     1Format-Specification:
     2    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
     3    Upstream-Maintainer: Bas van der Vlies <basv@sara.nl>
     4    Upstream-Source: https://subtrac.sara.nl/oss/pbs_python
     5    Upstream-Name: pbs_python
    46
    5 It was built based on CVS snapshot of 'rumba-manifold'
    6  from  :pserver:anonymous@cnrg2.rutgers.edu:/home/cvs
    7  on Sat, 10 May 2003 20:34:31 -0400.
     7Files: *
     8Copyright: SARA: Bas van der Vlies
     9License: LGPL-3+
    810
    9 Upstream Author:
    10  Donovan Rebbechi <elflord@psychology.rutgers.edu>
    11  Benjamin Martin Bly <ben@psychology.rutgers.edu>
     11Files: src/rm.h src/pbs_ifl.h src/log.h src/pbs_error.h
     12Copyright: Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
     13License:  OpenPBS (Portable Batch System) v2.3 Software License
    1214
    13 Copyright:
    1415
     16Files: debian/*
     17Copyytight:  Yaroslav Halchenko <yoh@psychology.rutgers.edu>
     18             Bas van der Vlies <basv@sara.nl>
     19             Donovan Rebbechi <elflord@psychology.rutgers.edu>
     20             Benjamin Martin Bly <ben@psychology.rutgers.edu>
     21License: Artistic License
     22
     23License: Artistic License
    1524    This program is free software; you can redistribute it and/or
    1625    modify it under the terms of the "Artistic License" which comes
    1726    with Perl.
    1827
    19 On Debian GNU/Linux systems, the complete text of the Artistic Licence
    20 in `/usr/share/common-licenses/Artistic'.
     28    On Debian GNU/Linux systems, the complete text of the Artistic Licence
     29    in `/usr/share/common-licenses/Artistic'.
     30
     31License:  OpenPBS (Portable Batch System) v2.3 Software License
     32    Is include this package as LICENSE.openpbs in /usr/shar/doc/pbs-python
  • trunk/pbs_python.spec

    r253 r264  
    44
    55Name: pbs_python
    6 Version: 4.2.0
     6Version: 4.3.0
    77Release: 1%{?dist}
    88License: See LICENSE
  • trunk/src/PBSQuery.py

    r263 r264  
    171171                                                        tmp_l = v.split('=')
    172172
    173                                                         ## Support for multiple EVENT mesages in format [:key=value]+
     173                                                        ## Support for multiple EVENT mesages in format [key=value:]+
    174174                                                        #  format eg: message=EVENT:sample.time=1288864220.003:cputotals.user=0
     175                                                        #             message=ERROR <text>
    175176                                                        #
    176177                                                        if tmp_l[0] in ['message']:
    177178
    178                                                                 tmp_d  = dict()
    179                                                                 new['event'] = class_func(tmp_d)
    180 
    181                                                                 message_list = v.split(':')
    182                                                                 for event_type in message_list[1:]:
    183                                                                         tmp_l = event_type.split('=')
    184                                                                         new['event'][ tmp_l[0] ] = tmp_l[1:]
     179                                                                if tmp_l[1].startswith('EVENT:'):
     180
     181                                                                        tmp_d  = dict()
     182                                                                        new['event'] = class_func(tmp_d)
     183
     184                                                                        message_list = v.split(':')
     185                                                                        for event_type in message_list[1:]:
     186                                                                                tmp_l = event_type.split('=')
     187                                                                                new['event'][ tmp_l[0] ] = tmp_l[1:]
     188
     189                                                                else:
     190                                                                        ## ERROR message
     191                                                                        #
     192                                                                        new['error'] = tmp_l [1:]
    185193
    186194                                                                ## continue with next status value
Note: See TracChangeset for help on using the changeset viewer.