#NEWLINE# def __init__( self , name , rtslib_object , parent , late_params = False ) : #NEWLINE# #INDENT# '\n        Call from the class that inherits this, with the rtslib object that\n        should be checked upon.\n        ' #NEWLINE# UINode . __init__ ( self , name , parent ) #NEWLINE# self . rtsnode = rtslib_object #NEWLINE# if late_params : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# parameters = self . rtsnode . list_parameters ( ) #NEWLINE# parameters_ro = self . rtsnode . list_parameters ( writable = False ) #NEWLINE# for parameter in parameters : #NEWLINE# #INDENT# writable = ( parameter not in parameters_ro ) #NEWLINE# ( type , desc ) = getattr ( self . __class__ , 'ui_desc_parameters' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( parameter , ( 'string' , '' ) ) #NEWLINE# self . define_config_group_param ( 'parameter' , parameter , type , desc , writable ) #NEWLINE# #UNINDENT# attributes = self . rtsnode . list_attributes ( ) #NEWLINE# attributes_ro = self . rtsnode . list_attributes ( writable = False ) #NEWLINE# for attribute in self : #NEWLINE# #INDENT# writable = ( attribute not in attributes_ro ) #NEWLINE# ( type , desc ) = getattr ( self . __class__ , 'ui_desc_attributes' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( attribute , ( 'string' , '' ) ) #NEWLINE# self . define_config_group_param ( 'attribute' , attribute , type , desc , writable )