Package backend :: Package server :: Package rhnServer :: Module server_hardware :: Class Device
[hide private]
[frames] | no frames]

Class Device

source code


This is the base Device class that supports instantiation from a dictionarry. the __init__ takes the dictionary as its argument, together with a list of valid fields to recognize and with a mapping for dictionary keys into valid field names for self.data

The fields are required to know what fields we have in the table. The mapping allows transformation from whatever comes in to valid fields in the table Looks complicated but it isn't -- gafton

Instance Methods [hide private]
 
__init__(self, fields, dict=None, mapping=None) source code

Inherited from GenericDevice: getid, must_save, reload, save

Inherited from GenericDevice (private): _null_columns

Class Variables [hide private]

Inherited from GenericDevice: table

Method Details [hide private]

__init__(self, fields, dict=None, mapping=None)
(Constructor)

source code 
Overrides: GenericDevice.__init__