<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def view_atype(self, atype):
 """View the given atype on the atype page :param atype: the atype to view :type atype: :class:`jukeboxcore.djadapter.models.Atype` :returns: None :rtype: None :raises: None """

        if not self.cur_prj:
            return
        log.debug('Viewing atype %s', atype.name)
        self.cur_atype = None
        self.pages_tabw.setCurrentIndex(4)
        self.atype_name_le.setText(atype.name)
        self.atype_desc_pte.setPlainText(atype.description)

        assetrootdata = treemodel.ListItemData(['Name', 'Description'])
        assetrootitem = treemodel.TreeItem(assetrootdata)
        self.atype_asset_model = treemodel.TreeModel(assetrootitem)
        self.atype_asset_treev.setModel(self.atype_asset_model)

        for a in djadapter.assets.filter(project=self.cur_prj, atype=atype):
            assetdata = djitemdata.AssetItemData(a)
            treemodel.TreeItem(assetdata, assetrootitem)

        self.cur_atype = atype