Module comscan :: Class RegistryAccess
[show private | hide private]
[frames | no frames]

Class RegistryAccess


A class that is significantly easier to use to access the Registry
Method Summary
  __init__(self, hive)
  findkey(self, start, lookfor, prependresult)
Searches for the named key
  getallchildren(self, start, prependresult)
Returns a list of all child nodes in the hierarchy
  getchildren(self, key)
Returns a list of the child nodes of a key
  getvalue(self, key, node)
Gets a value
  safegetchildren(self, key)
Doesn't throw exception if doesn't exist
  safegetvalue(self, key, node, default)
Gets a value and if nothing is found returns the default

Method Details

findkey(self, start, lookfor, prependresult='')

Searches for the named key

getallchildren(self, start, prependresult='')

Returns a list of all child nodes in the hierarchy

getchildren(self, key)

Returns a list of the child nodes of a key

getvalue(self, key, node)

Gets a value

The result is returned as the correct type (string, int, etc)

safegetchildren(self, key)

Doesn't throw exception if doesn't exist
Returns:
A list of zero or more items

safegetvalue(self, key, node, default=None)

Gets a value and if nothing is found returns the default

Generated by Epydoc 2.1 on Fri Aug 15 18:58:36 2008 http://epydoc.sf.net