Changeset 223 for trunk


Ignore:
Timestamp:
04/12/10 14:44:45 (14 years ago)
Author:
bas
Message:

src/PBSQuery.py

  • fixed an error in the new data structure, thanks to Mark Roberts
  • new data structure is the default

CHANGES:

  • preparing fro 4.0.0 release
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGES

    r217 r223  
    11=========== 4.0.0
    2   * Added some new functions for 2.4 version:
     2  * pbs.py added some new functions for 2.4 version:
    33    - pbs_fbserver(void);
    44    - pbs_get_server_list(void);
     
    1818    - Removed old code for installations that do not a have pbs-config
    1919      installed.
     20
     21  * PBSQuery.py
     22    - There was a bug in the new data interface (Resource_List for jobs)
     23      Reported & Patch by: Mark Roberts ( mark at gingergeeks dot co dot uk)
     24      Applied by with some minor changes: Bas van der Vlies
     25
     26    - The new data structure is the default. You can switch back to the old
     27      one with:
     28            p = PBSQuery()
     29            p.old_data_structure()
     30
     31      Author: Bas van der Vlies
    2032
    2133=========== 3.6.0
  • trunk/src/PBSQuery.py

    r205 r223  
    162162
    163163
    164                                         if len(sub_dict) > 1:
    165                                                 # We must creat sub dict, only for specified
    166                                                 # key values
    167                                                 #
    168                                                 if a.name in ['status', 'Variable_List']:
    169 
    170                                                         for v in values:
    171 
    172                                                                 tmp_l = v.split('=')
    173 
    174                                                                 # Check if we already added the key
    175                                                                 #
    176                                                                 if new.has_key(a.name):
    177                                                                         new[a.name][ tmp_l[0] ] = tmp_l[1:]
    178 
    179                                                                 else:
    180                                                                         tmp_d  = dict()
    181                                                                         tmp_d[ tmp_l[0] ] = tmp_l[1:]
    182                                                                         new[a.name] = class_func(tmp_d)
     164                                        # We must creat sub dict, only for specified
     165                                        # key values
     166                                        #
     167                                        if a.name in ['status', 'Variable_List']:
     168
     169                                                for v in values:
     170
     171                                                        tmp_l = v.split('=')
     172
     173                                                        # Check if we already added the key
     174                                                        #
     175                                                        if new.has_key(a.name):
     176                                                                new[a.name][ tmp_l[0] ] = tmp_l[1:]
     177
     178                                                        else:
     179                                                                tmp_d  = dict()
     180                                                                tmp_d[ tmp_l[0] ] = tmp_l[1:]
     181                                                                new[a.name] = class_func(tmp_d)
    183182
    184183                                        else:
Note: See TracChangeset for help on using the changeset viewer.