(self, project, asset_name, asset_type_id, asset_description)
Add new asset data to the DB
Add new asset data to the DB
Add new asset data to the DB
def add_asset(self, project, asset_name, asset_type_id, asset_description):
        """
        Add new asset data to the DB
        """

        # Create asset and set asset properties
        asset = entities.Asset(asset_name, project.id)
        asset.type = asset_type_id
        asset.description = asset_description

        # Add asset to DB and update UI
        self.model_assets.layoutAboutToBeChanged.emit()
        self.eve_data.add_asset(asset, project.id)
        self.model_assets.layoutChanged.emit()
def add_asset ( self , project , asset_name , asset_type_id , asset_description ) : # Create asset and set asset properties asset = entities . Asset ( asset_name , project . id ) asset . type = asset_type_id asset . description = asset_description # Add asset to DB and update UI self . model_assets . layoutAboutToBeChanged . emit ( ) self . eve_data . add_asset ( asset , project . id ) self . model_assets . layoutChanged . emit ( )