(self)
Create asset entity in the DB
Create asset entity in the DB
Create asset entity in the DB
def add_asset(self):
        """
        Create asset entity in the DB
        """

        # Get asset name from UI
        asset_name = self.asset_ui.linAssetName.text()
        asset_type_index = self.asset_ui.comAssetType.model().index(self.asset_ui.comAssetType.currentIndex(), 0)
        asset_type_id = asset_type_index.data(QtCore.Qt.UserRole + 1)
        # asset_publish = self.asset_ui.linHDAName.text()
        asset_description = self.asset_ui.txtDescription.toPlainText()

        self.parent.add_asset(self.project, asset_name, asset_type_id, asset_description)
def add_asset ( self ) : # Get asset name from UI asset_name = self . asset_ui . linAssetName . text ( ) asset_type_index = self . asset_ui . comAssetType . model ( ) . index ( self . asset_ui . comAssetType . currentIndex ( ) , 0 ) asset_type_id = asset_type_index . data ( QtCore . Qt . UserRole + 1 ) # asset_publish = self.asset_ui.linHDAName.text() asset_description = self . asset_ui . txtDescription . toPlainText ( ) self . parent . add_asset ( self . project , asset_name , asset_type_id , asset_description )