def get_projects(user):
 from website.project.utils import PROJECT_QUERY
 return Node.find_for_user(user, PROJECT_QUERY).get_roots()

def get_projects ( user ) : from website . project . utils import PROJECT_QUERY return Node . find_for_user ( user , PROJECT_QUERY ) . get_roots ( )
return a list of users projects .