[python-win32] pyRegistry AttributeError

Jens B. Jorgensen jens.jorgensen at tallan.com
Mon Aug 16 20:12:13 CEST 2004


Doh! I just changed the docs because I thought that I already had 
changed the function name. Ack. I shall fix this later tonight and it 
shall be getKeyNames as it really should be.

Sorry!

David Flory wrote:

> 
>-----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-----
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32
>  
>


-- 
Jens B. Jorgensen
jens.jorgensen at tallan.com

"With a focused commitment to our clients and our people, we deliver value through customized technology solutions"  



More information about the Python-win32 mailing list