Package g4ds :: Module messagewrapper :: Class PolicyFileWrapper
[show private | hide private]
[frames | no frames]

Class PolicyFileWrapper

GenericWrapper --+
                 |
                PolicyFileWrapper


Parses permission policy files.
Method Summary
  __init__(self)
Yet empty constructor.
List of Dict / List of Dict / List of Dict parsePolicyString(self, policy)
Parses a policy and returns the contents in form of dictionaries.
  _parseGroups(self, node, groups)
Parses a groups bit of a policy.
  _parseRoles(self, node, rolesets)
Parses a roles bit of a policy.
  _parseRules(self, node, rulesets)
Parses a rules bit of a policy.
Inherited from GenericWrapper: unwrapActionAndData, unwrapArgsAndDatas, wrapActionAndData, wrapArgsAndDatas, _decodeHex, _encodeHex, _replaceCdata, _unReplaceCdata

Method Details

__init__(self)
(Constructor)

Yet empty constructor.
Overrides:
g4ds.messagewrapper.GenericWrapper.__init__

parsePolicyString(self, policy)

Parses a policy and returns the contents in form of dictionaries.
Parameters:
policy - Policy in XML encoded String represenation
           (type=String)
Returns:
The extracted Rolesets / Groups / Rulesets
           (type=List of Dict / List of Dict / List of Dict)

_parseGroups(self, node, groups)

Parses a groups bit of a policy.

_parseRoles(self, node, rolesets)

Parses a roles bit of a policy.

_parseRules(self, node, rulesets)

Parses a rules bit of a policy.

Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 http://epydoc.sf.net