Package pyrad :: Module dictionary :: Class Dictionary
[show private | hide private]
[frames | no frames]

Class Dictionary


RADIUS dictionary class

This class stores all information about vendors, attributes and their values as defined in RADIUS dictionary files.
Method Summary
  __init__(self, dict, *dicts)
  __getitem__(self, key)
  ReadDictionary(self, file)
Parse a dictionary file
  __ParseAttribute(self, state, tokens)
  __ParseBeginVendor(self, state, tokens)
  __ParseEndVendor(self, state, tokens)
  __ParseValue(self, state, tokens)
  __ParseVendor(self, state, tokens)

Instance Variable Summary
bidict attributes: bidict mapping attribute name to attribute class
bidict attrindex: bidict mapping
bidict vendors: bidict mapping vendor name to vendor code

Method Details

__init__(self, dict=None, *dicts)
(Constructor)

Parameters:
dict - dictionary file to read
           (type=string)
dicts - list of dictionary files to read
           (type=sequence of strings)

ReadDictionary(self, file)

Parse a dictionary file

Reads a RADIUS dictionary file and merges its contents into the class instance.
Parameters:
file - Name of dictionary file to parse
           (type=string)

Instance Variable Details

attributes

bidict mapping attribute name to attribute class
Type:
bidict

attrindex

bidict mapping
Type:
bidict

vendors

bidict mapping vendor name to vendor code
Type:
bidict

Generated by Epydoc 2.1 on Wed Jun 2 14:19:55 2004 http://epydoc.sf.net