#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# FluentIndexDashboard . __init__ ( self , ** kwargs ) #NEWLINE# self . children . append ( modules . Group ( title = 'IaaS' , display = 'tabs' , children = [ modules . ModelList ( title = 'Virtual Machine' , models = ( 'nodeconductor.iaas.models.Instance' , 'nodeconductor.iaas.models.InstanceSlaHistory' , 'nodeconductor.iaas.models.Template' , 'nodeconductor.iaas.models.TemplateLicense' ) ) , modules . ModelList ( title = 'Cloud' , models = ( 'nodeconductor.iaas.models.Cloud' , 'nodeconductor.iaas.models.CloudProjectMembership' , 'nodeconductor.iaas.models.OpenStackSettings' ) ) , modules . ModelList ( title = 'Network' , models = ( 'nodeconductor.iaas.models.FloatingIP' , 'nodeconductor.iaas.models.IpMapping' , 'nodeconductor.iaas.models.SecurityGroup' ) ) ] ) ) #NEWLINE# billing_models = [ 'nodeconductor.cost_tracking.*' ] #NEWLINE# if NodeConductorExtension . is_installed ( 'nodeconductor_killbill' ) : #NEWLINE# #INDENT# billing_models . append ( 'nodeconductor_killbill.models.Invoice' ) #NEWLINE# #UNINDENT# if NodeConductorExtension . is_installed ( 'nodeconductor_paypal' ) : #NEWLINE# #INDENT# billing_models . append ( 'nodeconductor_paypal.models.Payment' ) #NEWLINE# #UNINDENT# self . children . append ( AppIconList ( _ ( 'Billing' ) , models = billing_models ) ) #NEWLINE# self . children . append ( AppIconList ( _ ( 'Structure' ) , models = ( 'nodeconductor.structure.*' , 'nodeconductor.core.models.User' ) ) )