(self, connection, cursor)
Fill asset types table in the DB (character, environment, prop, FX)

        :param connection:
        :param cursor:
        :return:
Fill asset types table in the DB (character, environment, prop, FX)
Fill asset types table in the DB ( character environment prop FX )
def init_asset_types(self, connection, cursor):
        """
        Fill asset types table in the DB (character, environment, prop, FX)

        :param connection:
        :param cursor:
        :return:
        """

        for name, data in entities.Asset.asset_types.iteritems():
            cursor.execute("INSERT INTO asset_types VALUES ("
                           ":id,"
                           ":name,"
                           ":description)",

                           {'id': data['id'],
                            'name': name,
                            'description': data['description']})

        connection.commit()
def init_asset_types ( self , connection , cursor ) : for name , data in entities . Asset . asset_types . iteritems ( ) : cursor . execute ( "INSERT INTO asset_types VALUES (" ":id," ":name," ":description)" , { 'id' : data [ 'id' ] , 'name' : name , 'description' : data [ 'description' ] } ) connection . commit ( )