[python-win32] pyRegistry AttributeError

David Flory flory at fdu.edu
Sun Aug 15 05:51:45 CEST 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?

In advance, many thanks for any help.

- --------------------------------------------------
David Flory, Ph.D.
Professor of Physics
Fairleigh Dickinson University
1000 River Road, Mail Stop T-Bec2-03
Teaneck, New Jersey 07666

Office:   Becton Hall Room 111
Voice:    201-692-7064
Email:    flory at fdu.edu   (regular email)
Pager:    flory at vText.com (subj + text < 150 char)
http://TheFlorys.org/David.Flory/ <== My PGP key is here
 

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

iQA/AwUBQR7d0Fe2/rcN3lp8EQJv1QCgtSQJFilwnonfp4qrgeL3TL5fmIgAnj9E
Mg8Y4PpRujvkFz/q0EciXiXs
=hXJw
-----END PGP SIGNATURE-----



More information about the Python-win32 mailing list