Example #1
0
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;
}
Example #2
0
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;
}