Module gip_common :: Class Attributes
[hide private]
[frames] | no frames]

Class Attributes

source code

UserDict.UserDict --+
                    |
                   Attributes

Given a filename containing attributes, parse it into a dictionary.

Instance Methods [hide private]
 
__init__(self, attribute_file) source code
 
load_attributes(self, attribute_file)
Load up the attribtues of the form: Name=Value or Name="Value" from a specificied attribute file
source code

Inherited from UserDict.UserDict: __cmp__, __contains__, __delitem__, __getitem__, __len__, __repr__, __setitem__, clear, copy, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Class Methods [hide private]

Inherited from UserDict.UserDict: fromkeys

Method Details [hide private]

__init__(self, attribute_file)
(Constructor)

source code 
Overrides: UserDict.UserDict.__init__

load_attributes(self, attribute_file)

source code 

Load up the attribtues of the form: Name=Value or Name="Value" from a specificied attribute file

This loads the Name: Value pairs into the class, which is dictionary-like.

Parameters:
  • attribute_file - Name of the file to parse
Raises:
  • IOError - Will throw an IOError if there is a problem reading the attribute_file