def create_prj_model(self, ):
        """Create and return a tree model that represents a list of projects

        :returns: the creeated model
        :rtype: :class:`jukeboxcore.gui.treemodel.TreeModel`
        :raises: None
        """
        prjs = djadapter.projects.all()
        rootdata = treemodel.ListItemData(['Name', 'Short', 'Rootpath'])
        prjroot = treemodel.TreeItem(rootdata)
        for prj in prjs:
            prjdata = djitemdata.ProjectItemData(prj)
            treemodel.TreeItem(prjdata, prjroot)
        prjmodel = treemodel.TreeModel(prjroot)
        return prjmodel
def create_prj_model ( self , ) : prjs = djadapter . projects . all ( ) rootdata = treemodel . ListItemData ( [ 'Name' , 'Short' , 'Rootpath' ] ) prjroot = treemodel . TreeItem ( rootdata ) for prj in prjs : prjdata = djitemdata . ProjectItemData ( prj ) treemodel . TreeItem ( prjdata , prjroot ) prjmodel = treemodel . TreeModel ( prjroot ) return prjmodel
Create and return a tree model that represents a list of projects

        :returns: the creeated model
        :rtype: :class:`jukeboxcore.gui.treemodel.TreeModel`
        :raises: None