pyRegistry AttributeError

flory at fdu.edu flory at fdu.edu
Sun Aug 15 19:23:37 EDT 2004


 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just downloaded pyRegistry (the 2004-08-11 binary update, v1.0.3) and am
having a problem.  My test code is:

===============
import pyRegistry
baseKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes"
basereg = pyRegistry.open(baseKey) 
print basereg.getValueNames()
print basereg.getKeyNames()
============

Which returns

=================
D:\bin>test_pyRegistry
('Drop Shadow', 'Flat Menus', 'SetupVersion', 'InstallTheme',
'InstallVisualStyle')
Traceback (most recent call last):
  File "D:\bin\test_pyRegistry.py", line 5, in ?
    print basereg.getKeyNames()
AttributeError: getKeyNames
============

It appears as though open() and getValueNames() both work fine while
getKeyNames throws an error.  

I am running Python 2.3.4 on a WinXP machine.  Any suggestions as to what I am
doing wrong? Or, might there be a problem with pyRegistry?

In advance, many thanks for any help.

- --------------------------------------------------
David Flory

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
Comment: 201-692-7064

iQA/AwUBQR/wMVe2/rcN3lp8EQKWOwCeKsHRzQ7Ag8Byt2lMf/bCIXExQKMAn3TI
JM57jHKr1UKhDUZi83pF3RrS
=bn4W
-----END PGP SIGNATURE-----




More information about the Python-list mailing list