pyRegistry AttributeError

G

Guest

-----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-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top