Changeset 796 for kde/kreadconfig


Ignore:
Timestamp:
Sep 4, 2009, 12:08:25 PM (15 years ago)
Author:
joergs
Message:

show immutable flag

Location:
kde/kreadconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kde/kreadconfig/kreadconfig-test.sh

    r795 r796  
    66#kde4-config --path config
    77
    8 echo "set KDEDIRS to test/profile1 and test/profile2"
     8#echo "set KDEDIRS to test/profile1 and test/profile2"
    99export KDEDIRS=$PWD/test/profile1:$PWD/test/profile2
     10echo KDEDIRS=$KDEDIRS
    1011
    1112#echo $KDEDIRS
  • kde/kreadconfig/kreadconfig.py

    r795 r796  
    5050    #print dir(config)
    5151    for i in config.entryMap():
    52       #for i in config.keys():
     52      immutaleString = ''
     53      if config.isEntryImmutable( i ):
     54        immutaleString = "[$i]"
    5355      try:
    54         print i, "=", config.readEntry( i ).toUtf8()
     56        print i + immutaleString, "=", config.readEntry( i ).toUtf8()
    5557      except AttributeError:
    56         # ignore when readEntry does not exist
    57         print i + " => readEntry not defined"
    58         #, i.count(), dir(i)
    59         pass
     58      # ignore when readEntry does not exist
     59        print i + " => readEntry not defined"
     60        #, i.count(), dir(i)
     61        pass
    6062      except UnicodeEncodeError:
    61         print i + " => encoding error"
    62         pass
     63        print i + " => encoding error"
     64        pass
    6365  print
    6466
Note: See TracChangeset for help on using the changeset viewer.