boost::python::object getActiveSessionsAsList(CatalogManagerImpl &self) { boost::python::list sessions; const auto vecSessions = self.getActiveSessions(); for (const auto &vecSession : vecSessions) { sessions.append(vecSession); } return sessions; }
boost::python::object getActiveSessionsAsList(CatalogManagerImpl& self) { boost::python::list sessions; const auto vecSessions = self.getActiveSessions(); for(auto itr = vecSessions.begin(); itr != vecSessions.end(); ++itr) { sessions.append(*itr); } return sessions; }