ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
(Generate patch)

Comparing COMP/BOSS/BossPython/BossSession_wrap.cxx (file contents):
Revision 1.14 by gcodispo, Mon Nov 6 08:52:57 2006 UTC vs.
Revision 1.25 by gcodispo, Mon Mar 5 08:07:03 2007 UTC

# Line 654 | Line 654 | SWIG_InstallConstants(PyObject *d, swig_
654  
655   /* -------- TYPES TABLE (BEGIN) -------- */
656  
657 < #define  SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t swig_types[0]
658 < #define  SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator swig_types[1]
659 < #define  SWIGTYPE_p_XMLDoc swig_types[2]
657 > #define  SWIGTYPE_p_XMLDoc swig_types[0]
658 > #define  SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t swig_types[1]
659 > #define  SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator swig_types[2]
660   #define  SWIGTYPE_p_std__vectorTBossTask_p_t swig_types[3]
661   #define  SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t swig_types[4]
662 < #define  SWIGTYPE_p_BossTask swig_types[5]
663 < #define  SWIGTYPE_p_BossTaskException swig_types[6]
664 < #define  SWIGTYPE_p_std__ostream swig_types[7]
665 < #define  SWIGTYPE_p_BossAttributeContainer swig_types[8]
666 < #define  SWIGTYPE_p_printOption swig_types[9]
662 > #define  SWIGTYPE_p_std__ostream swig_types[5]
663 > #define  SWIGTYPE_p_BossTask swig_types[6]
664 > #define  SWIGTYPE_p_BossTaskException swig_types[7]
665 > #define  SWIGTYPE_p_printOption swig_types[8]
666 > #define  SWIGTYPE_p_BossAttributeContainer swig_types[9]
667   #define  SWIGTYPE_p_BossJob swig_types[10]
668   #define  SWIGTYPE_p_BossDatabase swig_types[11]
669   #define  SWIGTYPE_p_BossSession swig_types[12]
670   #define  SWIGTYPE_p_std__vectorTstd__string_t swig_types[13]
671   #define  SWIGTYPE_p_std__mapTstd__string_std__string_t swig_types[14]
672   #define  SWIGTYPE_p_BossAdministratorSession swig_types[15]
673 < #define  SWIGTYPE_p_BossTask__job_iterator swig_types[16]
674 < #define  SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[17]
673 > #define  SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[16]
674 > #define  SWIGTYPE_p_BossTask__job_iterator swig_types[17]
675   #define  SWIGTYPE_p_jobStates swig_types[18]
676   static swig_type_info *swig_types[20];
677  
# Line 917 | Line 917 | void std_vectorlstd_string_g___delslice_
917                  self->erase(self->begin()+i,self->begin()+j);
918              }
919  
920 + static PyObject * BossError;
921 + static PyObject * SchedulerError;
922   #include "BossSession.h"
923   #include "BossAdministratorSession.h"
924   #include "BossTask.h"
# Line 927 | Line 929 | void std_vectorlstd_string_g___delslice_
929   #include "BossProgram.h"
930   #include "BossProgramExec.h"
931   #include "BossDatabase.h"
932 + #include "BossScheduler.h"
933 + #include "BossDeclaration.h"
934  
935   PyObject *BossSession_show(BossSession *self,std::vector<std::string > &my_vec){
936      PyObject *  my_list = PyList_New( my_vec.size());
# Line 953 | Line 957 | PyObject *BossSession_schedulers(BossSes
957      std::vector<std::string> my_vec = self->showSchedulers();
958      return BossSession_show( self, my_vec );
959    }
960 < PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,bool keepfile){
960 > PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,unsigned int timeout,bool keepfile){
961      std::vector<std::string> my_vec = self->listMatch( scheduler,
962                                                         schclassad,
963                                                         keepfile,
964                                                         taskid,
965 <                                                       jobid);
965 >                                                       jobid,
966 >                                                       timeout);
967      return BossSession_show( self, my_vec );
968    }
969 < PyObject *BossSession_queryTasks(BossSession *self,int filter_opt,std::string const &taskRange,std::string const &jobRange,std::string const &subn,std::string type,std::string user,std::string after,std::string before,bool avoidCheck){
970 <       if ( !avoidCheck ) {
971 <         self->schedulerQuery ( filter_opt, taskRange, jobRange, subn,
972 <                                type, user, after, before);
968 <       }
969 <       PyObject * job_dict = PyList_New(0);
970 <       std::vector <std::string>
971 <         taskList = self->selectTasks( taskRange, before, after, user);
972 <       for ( std::vector <std::string>::const_iterator it= taskList.begin();
973 <            it!= taskList.end(); ++it ) {
974 <         PyList_Append( job_dict,  PyString_FromString(it->c_str() ) );
969 > PyObject *BossSession_queryTasks(BossSession *self,int filter_opt,std::string const &taskRange,std::string const &jobRange,std::string const &subn,std::string type,std::string user,std::string after,std::string before,unsigned int timeout,bool avoidCheck){
970 >      if ( !avoidCheck ) {
971 >        self->schedulerQuery ( filter_opt, taskRange, jobRange, subn,
972 >                               type, user, after, before, timeout );
973        }
974 <       return  job_dict;
975 <     }
976 < PyObject *BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){
977 <      std::string tmp;
978 <      BossAttributeContainer::const_iterator it_end = obj.end ();
979 <      for (BossAttributeContainer::const_iterator it = obj.begin ();
982 <           it != it_end; ++it) {
983 <        tmp = (*it).first.name ();
984 <        char * key = new char[ tmp.size() ];
985 <        key = strdup(tmp.c_str());
986 <        tmp = (*it).second.value ();
987 <        PyObject * val = PyString_FromString( tmp.c_str() );
988 <        PyDict_SetItemString( dict, key, val );
989 <        delete [] key;
974 >      PyObject * job_dict = PyList_New(0);
975 >      std::vector <std::string>
976 >        taskList = self->selectTasks( taskRange, before, after, user);
977 >      for ( std::vector <std::string>::const_iterator it= taskList.begin();
978 >            it!= taskList.end(); ++it ) {
979 >        PyList_Append( job_dict,  PyString_FromString(it->c_str() ) );
980        }
981 <      return dict;
981 >      return  job_dict;
982      }
983 < PyObject *BossTask_jobDict(BossTask const *self,std::vector<BossJob * >::const_iterator &jit){
983 > void BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){
984 >    std::string tmp;
985 >    BossAttributeContainer::const_iterator it_end = obj.end ();
986 >    for (BossAttributeContainer::const_iterator it = obj.begin ();
987 >         it != it_end; ++it) {
988 >
989 >      PyObject * key = PyString_FromString( (it->first.name()).c_str() );
990 >      PyObject * val = PyString_FromString( (*it).second.value ().c_str() );
991 >      PyDict_SetItem( dict, key, val);
992 >      Py_DECREF(key);
993 >      Py_DECREF(val);
994 >    }
995 >    return;
996 >  }
997 > void BossTask_jobDict(BossTask const *self,std::vector<BossJob * >::const_iterator &jit,PyObject *job_dict){
998  
999 <    PyObject * job_dict = PyDict_New();
999 >    //    PyObject * job_dict = PyDict_New();
1000      std::string tmp;
1001  
1002      BossAttributeContainer obj = (*jit)->getTableEntries("JOB");
1003 <    job_dict = BossTask_appendToPyDict ( self, job_dict, obj );
1003 >    BossTask_appendToPyDict ( self, job_dict, obj );
1004  
1005      std::set<std::string> sch = (*jit)->getSchedulerElements();
1006      std::set<std::string>::const_iterator sch_end =  sch.end();
1007      for (std::set<std::string>::const_iterator it =sch.begin();
1008           it != sch_end; ++ it ) {
1009 <      tmp = (*it);
1006 <      char * key = new char[ tmp.size() ];
1007 <      key = strdup(tmp.c_str());
1009 >
1010        tmp = (**jit)["JOB_SCHED_INFO."+(*it)];
1011 +      PyObject * key = PyString_FromString( it->c_str() );
1012        PyObject * val = PyString_FromString( tmp.c_str() );
1013 <      PyDict_SetItemString( job_dict, key, val );
1014 <      delete [] key;
1013 >      PyDict_SetItem( job_dict, key, val);
1014 >      Py_DECREF(key);
1015 >      Py_DECREF(val);
1016      }
1017 <    return job_dict;
1017 >    return;
1018    }
1019   PyObject *BossTask_jobsDict(BossTask *self){
1020    
# Line 1018 | Line 1022 | PyObject *BossTask_jobsDict(BossTask *se
1022      if ( self->job_begin () == self->job_end ()) self->load(ALL);
1023      for (BossTask::job_iterator jit = self->job_begin ();
1024           jit != self->job_end (); ++jit) {
1025 <      std::string id = (*jit)->chainId();
1026 <      PyObject * tmp =  BossTask_jobDict( self, jit );
1027 <      PyObject * myid =  PyString_FromString(id.c_str() );
1028 <      PyDict_SetItem( job_dict, myid,tmp );
1025 >      PyObject * id = PyString_FromString( ((*jit)->chainId()).c_str() );
1026 >      PyObject * tmp_dict = PyDict_New();
1027 >      BossTask_jobDict( self, jit, tmp_dict );
1028 >      PyDict_SetItem( job_dict, id, tmp_dict );
1029 >      Py_DECREF(id);
1030 >      Py_DECREF(tmp_dict);
1031      }
1032      return job_dict;
1033    }
# Line 1066 | Line 1072 | PyObject *BossTask_jobPrograms(BossTask
1072      for ( programs_it = programs.begin(); programs_it != programs_it_end;
1073            ++programs_it  ) {
1074        std::string id = (programs_it->first)["PROGRAM.ID"];
1075 <      PyObject * tmp =  BossTask_progDict( self, programs_it );
1075 >      PyObject * tmp_dict =  BossTask_progDict( self, programs_it );
1076        PyObject * myid =  PyString_FromString(id.c_str() );
1077 <      PyDict_SetItem( job_dict, myid,tmp );
1077 >      PyDict_SetItem( job_dict, myid, tmp_dict );
1078 >      Py_DECREF(myid);
1079 >      Py_DECREF(tmp_dict);
1080      }
1081      return job_dict;
1082    }
# Line 1084 | Line 1092 | static PyObject *_wrap_new_objectMap__SW
1092          try {
1093              result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >();
1094              
1095 +        }catch (const BossSchedFailure & e) {
1096 +            PyErr_SetString ( SchedulerError, e.what() );
1097 +            return NULL;
1098          }catch (const std::exception& e) {
1099 <            SWIG_exception(SWIG_RuntimeError, e.what());
1099 >            PyErr_SetString ( BossError, e.what() );
1100 >            return NULL;
1101          }
1102      }
1103      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1);
# Line 1143 | Line 1155 | static PyObject *_wrap_new_objectMap__SW
1155          try {
1156              result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >((std::map<std::string,std::string > const &)*arg1);
1157              
1158 +        }catch (const BossSchedFailure & e) {
1159 +            PyErr_SetString ( SchedulerError, e.what() );
1160 +            return NULL;
1161          }catch (const std::exception& e) {
1162 <            SWIG_exception(SWIG_RuntimeError, e.what());
1162 >            PyErr_SetString ( BossError, e.what() );
1163 >            return NULL;
1164          }
1165      }
1166      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1);
# Line 1258 | Line 1274 | static PyObject *_wrap_objectMap___len__
1274          try {
1275              result = (unsigned int)((std::map<std::string,std::string > const *)arg1)->size();
1276              
1277 +        }catch (const BossSchedFailure & e) {
1278 +            PyErr_SetString ( SchedulerError, e.what() );
1279 +            return NULL;
1280          }catch (const std::exception& e) {
1281 <            SWIG_exception(SWIG_RuntimeError, e.what());
1281 >            PyErr_SetString ( BossError, e.what() );
1282 >            return NULL;
1283          }
1284      }
1285      resultobj = PyInt_FromLong((long)result);
# Line 1280 | Line 1300 | static PyObject *_wrap_objectMap_clear(P
1300          try {
1301              (arg1)->clear();
1302              
1303 +        }catch (const BossSchedFailure & e) {
1304 +            PyErr_SetString ( SchedulerError, e.what() );
1305 +            return NULL;
1306          }catch (const std::exception& e) {
1307 <            SWIG_exception(SWIG_RuntimeError, e.what());
1307 >            PyErr_SetString ( BossError, e.what() );
1308 >            return NULL;
1309          }
1310      }
1311      Py_INCREF(Py_None); resultobj = Py_None;
# Line 1303 | Line 1327 | static PyObject *_wrap_objectMap___nonze
1327          try {
1328              result = (bool)std_maplstd_stringcstd_string_g___nonzero_____(arg1);
1329              
1330 +        }catch (const BossSchedFailure & e) {
1331 +            PyErr_SetString ( SchedulerError, e.what() );
1332 +            return NULL;
1333          }catch (const std::exception& e) {
1334 <            SWIG_exception(SWIG_RuntimeError, e.what());
1334 >            PyErr_SetString ( BossError, e.what() );
1335 >            return NULL;
1336          }
1337      }
1338      resultobj = PyInt_FromLong((long)result);
# Line 1375 | Line 1403 | static PyObject *_wrap_objectMap___setit
1403          try {
1404              std_maplstd_stringcstd_string_g___setitem_____(arg1,arg2,arg3);
1405              
1406 +        }catch (const BossSchedFailure & e) {
1407 +            PyErr_SetString ( SchedulerError, e.what() );
1408 +            return NULL;
1409          }catch (const std::exception& e) {
1410 <            SWIG_exception(SWIG_RuntimeError, e.what());
1410 >            PyErr_SetString ( BossError, e.what() );
1411 >            return NULL;
1412          }
1413      }
1414      Py_INCREF(Py_None); resultobj = Py_None;
# Line 1437 | Line 1469 | static PyObject *_wrap_objectMap_has_key
1469          try {
1470              result = (bool)std_maplstd_stringcstd_string_g_has_key___(arg1,arg2);
1471              
1472 +        }catch (const BossSchedFailure & e) {
1473 +            PyErr_SetString ( SchedulerError, e.what() );
1474 +            return NULL;
1475          }catch (const std::exception& e) {
1476 <            SWIG_exception(SWIG_RuntimeError, e.what());
1476 >            PyErr_SetString ( BossError, e.what() );
1477 >            return NULL;
1478          }
1479      }
1480      resultobj = PyInt_FromLong((long)result);
# Line 1460 | Line 1496 | static PyObject *_wrap_objectMap_keys(Py
1496          try {
1497              result = (PyObject *)std_maplstd_stringcstd_string_g_keys___(arg1);
1498              
1499 +        }catch (const BossSchedFailure & e) {
1500 +            PyErr_SetString ( SchedulerError, e.what() );
1501 +            return NULL;
1502          }catch (const std::exception& e) {
1503 <            SWIG_exception(SWIG_RuntimeError, e.what());
1503 >            PyErr_SetString ( BossError, e.what() );
1504 >            return NULL;
1505          }
1506      }
1507      resultobj = result;
# Line 1483 | Line 1523 | static PyObject *_wrap_objectMap_values(
1523          try {
1524              result = (PyObject *)std_maplstd_stringcstd_string_g_values___(arg1);
1525              
1526 +        }catch (const BossSchedFailure & e) {
1527 +            PyErr_SetString ( SchedulerError, e.what() );
1528 +            return NULL;
1529          }catch (const std::exception& e) {
1530 <            SWIG_exception(SWIG_RuntimeError, e.what());
1530 >            PyErr_SetString ( BossError, e.what() );
1531 >            return NULL;
1532          }
1533      }
1534      resultobj = result;
# Line 1506 | Line 1550 | static PyObject *_wrap_objectMap_items(P
1550          try {
1551              result = (PyObject *)std_maplstd_stringcstd_string_g_items___(arg1);
1552              
1553 +        }catch (const BossSchedFailure & e) {
1554 +            PyErr_SetString ( SchedulerError, e.what() );
1555 +            return NULL;
1556          }catch (const std::exception& e) {
1557 <            SWIG_exception(SWIG_RuntimeError, e.what());
1557 >            PyErr_SetString ( BossError, e.what() );
1558 >            return NULL;
1559          }
1560      }
1561      resultobj = result;
# Line 1537 | Line 1585 | static PyObject *_wrap_objectMap___conta
1585          try {
1586              result = (bool)std_maplstd_stringcstd_string_g___contains_____(arg1,arg2);
1587              
1588 +        }catch (const BossSchedFailure & e) {
1589 +            PyErr_SetString ( SchedulerError, e.what() );
1590 +            return NULL;
1591          }catch (const std::exception& e) {
1592 <            SWIG_exception(SWIG_RuntimeError, e.what());
1592 >            PyErr_SetString ( BossError, e.what() );
1593 >            return NULL;
1594          }
1595      }
1596      resultobj = PyInt_FromLong((long)result);
# Line 1583 | Line 1635 | static PyObject *_wrap_delete_objectMap(
1635          try {
1636              delete arg1;
1637              
1638 +        }catch (const BossSchedFailure & e) {
1639 +            PyErr_SetString ( SchedulerError, e.what() );
1640 +            return NULL;
1641          }catch (const std::exception& e) {
1642 <            SWIG_exception(SWIG_RuntimeError, e.what());
1642 >            PyErr_SetString ( BossError, e.what() );
1643 >            return NULL;
1644          }
1645      }
1646      Py_INCREF(Py_None); resultobj = Py_None;
# Line 1616 | Line 1672 | static PyObject *_wrap_new_vector_string
1672          try {
1673              result = (std::vector<std::string > *)new std::vector<std::string >(arg1);
1674              
1675 +        }catch (const BossSchedFailure & e) {
1676 +            PyErr_SetString ( SchedulerError, e.what() );
1677 +            return NULL;
1678          }catch (const std::exception& e) {
1679 <            SWIG_exception(SWIG_RuntimeError, e.what());
1679 >            PyErr_SetString ( BossError, e.what() );
1680 >            return NULL;
1681          }
1682      }
1683      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
# Line 1651 | Line 1711 | static PyObject *_wrap_new_vector_string
1711          try {
1712              result = (std::vector<std::string > *)new std::vector<std::string >(arg1,(std::string const &)*arg2);
1713              
1714 +        }catch (const BossSchedFailure & e) {
1715 +            PyErr_SetString ( SchedulerError, e.what() );
1716 +            return NULL;
1717          }catch (const std::exception& e) {
1718 <            SWIG_exception(SWIG_RuntimeError, e.what());
1718 >            PyErr_SetString ( BossError, e.what() );
1719 >            return NULL;
1720          }
1721      }
1722      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
# Line 1703 | Line 1767 | static PyObject *_wrap_new_vector_string
1767          try {
1768              result = (std::vector<std::string > *)new std::vector<std::string >((std::vector<std::string > const &)*arg1);
1769              
1770 +        }catch (const BossSchedFailure & e) {
1771 +            PyErr_SetString ( SchedulerError, e.what() );
1772 +            return NULL;
1773          }catch (const std::exception& e) {
1774 <            SWIG_exception(SWIG_RuntimeError, e.what());
1774 >            PyErr_SetString ( BossError, e.what() );
1775 >            return NULL;
1776          }
1777      }
1778      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
# Line 1830 | Line 1898 | static PyObject *_wrap_vector_string___l
1898          try {
1899              result = (unsigned int)((std::vector<std::string > const *)arg1)->size();
1900              
1901 +        }catch (const BossSchedFailure & e) {
1902 +            PyErr_SetString ( SchedulerError, e.what() );
1903 +            return NULL;
1904          }catch (const std::exception& e) {
1905 <            SWIG_exception(SWIG_RuntimeError, e.what());
1905 >            PyErr_SetString ( BossError, e.what() );
1906 >            return NULL;
1907          }
1908      }
1909      resultobj = PyInt_FromLong((long)result);
# Line 1882 | Line 1954 | static PyObject *_wrap_vector_string___n
1954          try {
1955              result = (bool)((std::vector<std::string > const *)arg1)->empty();
1956              
1957 +        }catch (const BossSchedFailure & e) {
1958 +            PyErr_SetString ( SchedulerError, e.what() );
1959 +            return NULL;
1960          }catch (const std::exception& e) {
1961 <            SWIG_exception(SWIG_RuntimeError, e.what());
1961 >            PyErr_SetString ( BossError, e.what() );
1962 >            return NULL;
1963          }
1964      }
1965      resultobj = PyInt_FromLong((long)result);
# Line 1904 | Line 1980 | static PyObject *_wrap_vector_string_cle
1980          try {
1981              (arg1)->clear();
1982              
1983 +        }catch (const BossSchedFailure & e) {
1984 +            PyErr_SetString ( SchedulerError, e.what() );
1985 +            return NULL;
1986          }catch (const std::exception& e) {
1987 <            SWIG_exception(SWIG_RuntimeError, e.what());
1987 >            PyErr_SetString ( BossError, e.what() );
1988 >            return NULL;
1989          }
1990      }
1991      Py_INCREF(Py_None); resultobj = Py_None;
# Line 1934 | Line 2014 | static PyObject *_wrap_vector_string_app
2014          try {
2015              (arg1)->push_back(arg2);
2016              
2017 +        }catch (const BossSchedFailure & e) {
2018 +            PyErr_SetString ( SchedulerError, e.what() );
2019 +            return NULL;
2020          }catch (const std::exception& e) {
2021 <            SWIG_exception(SWIG_RuntimeError, e.what());
2021 >            PyErr_SetString ( BossError, e.what() );
2022 >            return NULL;
2023          }
2024      }
2025      Py_INCREF(Py_None); resultobj = Py_None;
# Line 2010 | Line 2094 | static PyObject *_wrap_vector_string___g
2094          try {
2095              result = std_vectorlstd_string_g___getslice_____(arg1,arg2,arg3);
2096              
2097 +        }catch (const BossSchedFailure & e) {
2098 +            PyErr_SetString ( SchedulerError, e.what() );
2099 +            return NULL;
2100          }catch (const std::exception& e) {
2101 <            SWIG_exception(SWIG_RuntimeError, e.what());
2101 >            PyErr_SetString ( BossError, e.what() );
2102 >            return NULL;
2103          }
2104      }
2105      {
# Line 2102 | Line 2190 | static PyObject *_wrap_vector_string___s
2190          try {
2191              std_vectorlstd_string_g___setslice_____(arg1,arg2,arg3,(std::vector<std::string > const &)*arg4);
2192              
2193 +        }catch (const BossSchedFailure & e) {
2194 +            PyErr_SetString ( SchedulerError, e.what() );
2195 +            return NULL;
2196          }catch (const std::exception& e) {
2197 <            SWIG_exception(SWIG_RuntimeError, e.what());
2197 >            PyErr_SetString ( BossError, e.what() );
2198 >            return NULL;
2199          }
2200      }
2201      Py_INCREF(Py_None); resultobj = Py_None;
# Line 2149 | Line 2241 | static PyObject *_wrap_vector_string___d
2241          try {
2242              std_vectorlstd_string_g___delslice_____(arg1,arg2,arg3);
2243              
2244 +        }catch (const BossSchedFailure & e) {
2245 +            PyErr_SetString ( SchedulerError, e.what() );
2246 +            return NULL;
2247          }catch (const std::exception& e) {
2248 <            SWIG_exception(SWIG_RuntimeError, e.what());
2248 >            PyErr_SetString ( BossError, e.what() );
2249 >            return NULL;
2250          }
2251      }
2252      Py_INCREF(Py_None); resultobj = Py_None;
# Line 2171 | Line 2267 | static PyObject *_wrap_delete_vector_str
2267          try {
2268              delete arg1;
2269              
2270 +        }catch (const BossSchedFailure & e) {
2271 +            PyErr_SetString ( SchedulerError, e.what() );
2272 +            return NULL;
2273          }catch (const std::exception& e) {
2274 <            SWIG_exception(SWIG_RuntimeError, e.what());
2274 >            PyErr_SetString ( BossError, e.what() );
2275 >            return NULL;
2276          }
2277      }
2278      Py_INCREF(Py_None); resultobj = Py_None;
# Line 2189 | Line 2289 | static PyObject * vector_string_swigregi
2289      Py_INCREF(obj);
2290      return Py_BuildValue((char *)"");
2291   }
2292 < static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) {
2292 > static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) {
2293      PyObject *resultobj;
2294 <    BossSession *arg1 = (BossSession *) 0 ;
2295 <    std::vector<std::string > *arg2 = 0 ;
2296 <    PyObject *result;
2294 >    std::string arg1 = (std::string) "" ;
2295 >    std::string arg2 = (std::string) "2" ;
2296 >    std::string arg3 = (std::string) "" ;
2297 >    std::string arg4 = (std::string) "" ;
2298 >    BossSession *result;
2299      PyObject * obj0 = 0 ;
2300      PyObject * obj1 = 0 ;
2301 +    PyObject * obj2 = 0 ;
2302 +    PyObject * obj3 = 0 ;
2303      
2304 <    if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_show",&obj0,&obj1)) goto fail;
2305 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2306 <    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2307 <    if (arg2 == NULL) {
2308 <        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2304 >    if(!PyArg_ParseTuple(args,(char *)"|OOOO:new_BossSession",&obj0,&obj1,&obj2,&obj3)) goto fail;
2305 >    if (obj0) {
2306 >        {
2307 >            if (PyString_Check(obj0))
2308 >            arg1 = std::string(PyString_AsString(obj0));
2309 >            else
2310 >            SWIG_exception(SWIG_TypeError, "string expected");
2311 >        }
2312      }
2313 <    {
2314 <        try {
2315 <            result = (PyObject *)BossSession_show(arg1,*arg2);
2316 <            
2317 <        }catch (const std::exception& e) {
2318 <            SWIG_exception(SWIG_RuntimeError, e.what());
2313 >    if (obj1) {
2314 >        {
2315 >            if (PyString_Check(obj1))
2316 >            arg2 = std::string(PyString_AsString(obj1));
2317 >            else
2318 >            SWIG_exception(SWIG_TypeError, "string expected");
2319 >        }
2320 >    }
2321 >    if (obj2) {
2322 >        {
2323 >            if (PyString_Check(obj2))
2324 >            arg3 = std::string(PyString_AsString(obj2));
2325 >            else
2326 >            SWIG_exception(SWIG_TypeError, "string expected");
2327 >        }
2328 >    }
2329 >    if (obj3) {
2330 >        {
2331 >            if (PyString_Check(obj3))
2332 >            arg4 = std::string(PyString_AsString(obj3));
2333 >            else
2334 >            SWIG_exception(SWIG_TypeError, "string expected");
2335          }
2336      }
2214    resultobj = result;
2215    return resultobj;
2216    fail:
2217    return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_BossSession_CHTools(PyObject *self, PyObject *args) {
2222    PyObject *resultobj;
2223    BossSession *arg1 = (BossSession *) 0 ;
2224    PyObject *result;
2225    PyObject * obj0 = 0 ;
2226    
2227    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_CHTools",&obj0)) goto fail;
2228    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2337      {
2338          try {
2339 <            result = (PyObject *)BossSession_CHTools(arg1);
2339 >            result = (BossSession *)new BossSession(arg1,arg2,arg3,arg4);
2340              
2341 +        }catch (const BossSchedFailure & e) {
2342 +            PyErr_SetString ( SchedulerError, e.what() );
2343 +            return NULL;
2344          }catch (const std::exception& e) {
2345 <            SWIG_exception(SWIG_RuntimeError, e.what());
2345 >            PyErr_SetString ( BossError, e.what() );
2346 >            return NULL;
2347          }
2348      }
2349 <    resultobj = result;
2349 >    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossSession, 1);
2350      return resultobj;
2351      fail:
2352      return NULL;
2353   }
2354  
2355  
2356 < static PyObject *_wrap_BossSession_ProgramTypes(PyObject *self, PyObject *args) {
2356 > static PyObject *_wrap_delete_BossSession(PyObject *self, PyObject *args) {
2357      PyObject *resultobj;
2358      BossSession *arg1 = (BossSession *) 0 ;
2247    PyObject *result;
2359      PyObject * obj0 = 0 ;
2360      
2361 <    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_ProgramTypes",&obj0)) goto fail;
2361 >    if(!PyArg_ParseTuple(args,(char *)"O:delete_BossSession",&obj0)) goto fail;
2362      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2363      {
2364          try {
2365 <            result = (PyObject *)BossSession_ProgramTypes(arg1);
2365 >            delete arg1;
2366              
2367 +        }catch (const BossSchedFailure & e) {
2368 +            PyErr_SetString ( SchedulerError, e.what() );
2369 +            return NULL;
2370          }catch (const std::exception& e) {
2371 <            SWIG_exception(SWIG_RuntimeError, e.what());
2371 >            PyErr_SetString ( BossError, e.what() );
2372 >            return NULL;
2373          }
2374      }
2375 <    resultobj = result;
2375 >    Py_INCREF(Py_None); resultobj = Py_None;
2376      return resultobj;
2377      fail:
2378      return NULL;
2379   }
2380  
2381  
2382 < static PyObject *_wrap_BossSession_RTMons(PyObject *self, PyObject *args) {
2382 > static PyObject *_wrap_BossSession_resetDB(PyObject *self, PyObject *args) {
2383      PyObject *resultobj;
2384      BossSession *arg1 = (BossSession *) 0 ;
2270    PyObject *result;
2385      PyObject * obj0 = 0 ;
2386      
2387 <    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_RTMons",&obj0)) goto fail;
2387 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_resetDB",&obj0)) goto fail;
2388      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2389      {
2390          try {
2391 <            result = (PyObject *)BossSession_RTMons(arg1);
2391 >            (arg1)->resetDB();
2392              
2393 +        }catch (const BossSchedFailure & e) {
2394 +            PyErr_SetString ( SchedulerError, e.what() );
2395 +            return NULL;
2396          }catch (const std::exception& e) {
2397 <            SWIG_exception(SWIG_RuntimeError, e.what());
2397 >            PyErr_SetString ( BossError, e.what() );
2398 >            return NULL;
2399          }
2400      }
2401 <    resultobj = result;
2401 >    Py_INCREF(Py_None); resultobj = Py_None;
2402      return resultobj;
2403      fail:
2404      return NULL;
2405   }
2406  
2407  
2408 < static PyObject *_wrap_BossSession_schedulers(PyObject *self, PyObject *args) {
2408 > static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) {
2409      PyObject *resultobj;
2410      BossSession *arg1 = (BossSession *) 0 ;
2293    PyObject *result;
2411      PyObject * obj0 = 0 ;
2412      
2413 <    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_schedulers",&obj0)) goto fail;
2413 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clear",&obj0)) goto fail;
2414      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2415      {
2416          try {
2417 <            result = (PyObject *)BossSession_schedulers(arg1);
2417 >            (arg1)->clear();
2418              
2419 +        }catch (const BossSchedFailure & e) {
2420 +            PyErr_SetString ( SchedulerError, e.what() );
2421 +            return NULL;
2422          }catch (const std::exception& e) {
2423 <            SWIG_exception(SWIG_RuntimeError, e.what());
2423 >            PyErr_SetString ( BossError, e.what() );
2424 >            return NULL;
2425          }
2426      }
2427 <    resultobj = result;
2427 >    Py_INCREF(Py_None); resultobj = Py_None;
2428      return resultobj;
2429      fail:
2430      return NULL;
2431   }
2432  
2433  
2434 < static PyObject *_wrap_BossSession_schedListMatch(PyObject *self, PyObject *args) {
2434 > static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) {
2435      PyObject *resultobj;
2436      BossSession *arg1 = (BossSession *) 0 ;
2437 <    std::string *arg2 = 0 ;
2438 <    std::string *arg3 = 0 ;
2439 <    std::string const &arg4_defvalue = "" ;
2319 <    std::string *arg4 = (std::string *) &arg4_defvalue ;
2320 <    std::string const &arg5_defvalue = "" ;
2321 <    std::string *arg5 = (std::string *) &arg5_defvalue ;
2322 <    bool arg6 = (bool) false ;
2323 <    PyObject *result;
2437 >    std::string const &arg2_defvalue = "" ;
2438 >    std::string *arg2 = (std::string *) &arg2_defvalue ;
2439 >    BossTask *result;
2440      std::string temp2 ;
2325    std::string temp3 ;
2326    std::string temp4 ;
2327    std::string temp5 ;
2441      PyObject * obj0 = 0 ;
2442      PyObject * obj1 = 0 ;
2330    PyObject * obj2 = 0 ;
2331    PyObject * obj3 = 0 ;
2332    PyObject * obj4 = 0 ;
2333    PyObject * obj5 = 0 ;
2443      
2444 <    if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2444 >    if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_makeBossTask",&obj0,&obj1)) goto fail;
2445      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2446 <    {
2338 <        if (PyString_Check(obj1)) {
2339 <            temp2 = std::string(PyString_AsString(obj1));
2340 <            arg2 = &temp2;
2341 <        }else {
2342 <            SWIG_exception(SWIG_TypeError, "string expected");
2343 <        }
2344 <    }
2345 <    {
2346 <        if (PyString_Check(obj2)) {
2347 <            temp3 = std::string(PyString_AsString(obj2));
2348 <            arg3 = &temp3;
2349 <        }else {
2350 <            SWIG_exception(SWIG_TypeError, "string expected");
2351 <        }
2352 <    }
2353 <    if (obj3) {
2354 <        {
2355 <            if (PyString_Check(obj3)) {
2356 <                temp4 = std::string(PyString_AsString(obj3));
2357 <                arg4 = &temp4;
2358 <            }else {
2359 <                SWIG_exception(SWIG_TypeError, "string expected");
2360 <            }
2361 <        }
2362 <    }
2363 <    if (obj4) {
2446 >    if (obj1) {
2447          {
2448 <            if (PyString_Check(obj4)) {
2449 <                temp5 = std::string(PyString_AsString(obj4));
2450 <                arg5 = &temp5;
2448 >            if (PyString_Check(obj1)) {
2449 >                temp2 = std::string(PyString_AsString(obj1));
2450 >                arg2 = &temp2;
2451              }else {
2452                  SWIG_exception(SWIG_TypeError, "string expected");
2453              }
2454          }
2455      }
2373    if (obj5) {
2374        arg6 = PyInt_AsLong(obj5) ? true : false;
2375        if (PyErr_Occurred()) SWIG_fail;
2376    }
2456      {
2457          try {
2458 <            result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6);
2458 >            result = (BossTask *)(arg1)->makeBossTask((std::string const &)*arg2);
2459              
2460 +        }catch (const BossSchedFailure & e) {
2461 +            PyErr_SetString ( SchedulerError, e.what() );
2462 +            return NULL;
2463          }catch (const std::exception& e) {
2464 <            SWIG_exception(SWIG_RuntimeError, e.what());
2464 >            PyErr_SetString ( BossError, e.what() );
2465 >            return NULL;
2466          }
2467      }
2468 <    resultobj = result;
2468 >    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0);
2469      return resultobj;
2470      fail:
2471      return NULL;
2472   }
2473  
2474  
2475 < static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) {
2475 > static PyObject *_wrap_BossSession_destroyBossTask(PyObject *self, PyObject *args) {
2476      PyObject *resultobj;
2477      BossSession *arg1 = (BossSession *) 0 ;
2478 <    int arg2 = (int) SCHEDULED ;
2396 <    std::string const &arg3_defvalue = "all" ;
2397 <    std::string *arg3 = (std::string *) &arg3_defvalue ;
2398 <    std::string const &arg4_defvalue = "all" ;
2399 <    std::string *arg4 = (std::string *) &arg4_defvalue ;
2400 <    std::string const &arg5_defvalue = "" ;
2401 <    std::string *arg5 = (std::string *) &arg5_defvalue ;
2402 <    std::string arg6 = (std::string) "" ;
2403 <    std::string arg7 = (std::string) "" ;
2404 <    std::string arg8 = (std::string) "" ;
2405 <    std::string arg9 = (std::string) "" ;
2406 <    bool arg10 = (bool) false ;
2407 <    PyObject *result;
2408 <    std::string temp3 ;
2409 <    std::string temp4 ;
2410 <    std::string temp5 ;
2478 >    BossTask *arg2 = (BossTask *) 0 ;
2479      PyObject * obj0 = 0 ;
2480 <    PyObject * obj2 = 0 ;
2413 <    PyObject * obj3 = 0 ;
2414 <    PyObject * obj4 = 0 ;
2415 <    PyObject * obj5 = 0 ;
2416 <    PyObject * obj6 = 0 ;
2417 <    PyObject * obj7 = 0 ;
2418 <    PyObject * obj8 = 0 ;
2419 <    PyObject * obj9 = 0 ;
2480 >    PyObject * obj1 = 0 ;
2481      
2482 <    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_queryTasks",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2482 >    if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_destroyBossTask",&obj0,&obj1)) goto fail;
2483      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2484 <    if (obj2) {
2424 <        {
2425 <            if (PyString_Check(obj2)) {
2426 <                temp3 = std::string(PyString_AsString(obj2));
2427 <                arg3 = &temp3;
2428 <            }else {
2429 <                SWIG_exception(SWIG_TypeError, "string expected");
2430 <            }
2431 <        }
2432 <    }
2433 <    if (obj3) {
2434 <        {
2435 <            if (PyString_Check(obj3)) {
2436 <                temp4 = std::string(PyString_AsString(obj3));
2437 <                arg4 = &temp4;
2438 <            }else {
2439 <                SWIG_exception(SWIG_TypeError, "string expected");
2440 <            }
2441 <        }
2442 <    }
2443 <    if (obj4) {
2444 <        {
2445 <            if (PyString_Check(obj4)) {
2446 <                temp5 = std::string(PyString_AsString(obj4));
2447 <                arg5 = &temp5;
2448 <            }else {
2449 <                SWIG_exception(SWIG_TypeError, "string expected");
2450 <            }
2451 <        }
2452 <    }
2453 <    if (obj5) {
2454 <        {
2455 <            if (PyString_Check(obj5))
2456 <            arg6 = std::string(PyString_AsString(obj5));
2457 <            else
2458 <            SWIG_exception(SWIG_TypeError, "string expected");
2459 <        }
2460 <    }
2461 <    if (obj6) {
2462 <        {
2463 <            if (PyString_Check(obj6))
2464 <            arg7 = std::string(PyString_AsString(obj6));
2465 <            else
2466 <            SWIG_exception(SWIG_TypeError, "string expected");
2467 <        }
2468 <    }
2469 <    if (obj7) {
2470 <        {
2471 <            if (PyString_Check(obj7))
2472 <            arg8 = std::string(PyString_AsString(obj7));
2473 <            else
2474 <            SWIG_exception(SWIG_TypeError, "string expected");
2475 <        }
2476 <    }
2477 <    if (obj8) {
2478 <        {
2479 <            if (PyString_Check(obj8))
2480 <            arg9 = std::string(PyString_AsString(obj8));
2481 <            else
2482 <            SWIG_exception(SWIG_TypeError, "string expected");
2483 <        }
2484 <    }
2485 <    if (obj9) {
2486 <        arg10 = PyInt_AsLong(obj9) ? true : false;
2487 <        if (PyErr_Occurred()) SWIG_fail;
2488 <    }
2489 <    {
2490 <        try {
2491 <            result = (PyObject *)BossSession_queryTasks(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
2492 <            
2493 <        }catch (const std::exception& e) {
2494 <            SWIG_exception(SWIG_RuntimeError, e.what());
2495 <        }
2496 <    }
2497 <    resultobj = result;
2498 <    return resultobj;
2499 <    fail:
2500 <    return NULL;
2501 < }
2502 <
2503 <
2504 < static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) {
2505 <    PyObject *resultobj;
2506 <    std::string arg1 = (std::string) "" ;
2507 <    BossSession *result;
2508 <    PyObject * obj0 = 0 ;
2509 <    
2510 <    if(!PyArg_ParseTuple(args,(char *)"|O:new_BossSession",&obj0)) goto fail;
2511 <    if (obj0) {
2512 <        {
2513 <            if (PyString_Check(obj0))
2514 <            arg1 = std::string(PyString_AsString(obj0));
2515 <            else
2516 <            SWIG_exception(SWIG_TypeError, "string expected");
2517 <        }
2518 <    }
2484 >    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2485      {
2486          try {
2487 <            result = (BossSession *)new BossSession(arg1);
2487 >            (arg1)->destroyBossTask(arg2);
2488              
2489 +        }catch (const BossSchedFailure & e) {
2490 +            PyErr_SetString ( SchedulerError, e.what() );
2491 +            return NULL;
2492          }catch (const std::exception& e) {
2493 <            SWIG_exception(SWIG_RuntimeError, e.what());
2493 >            PyErr_SetString ( BossError, e.what() );
2494 >            return NULL;
2495          }
2496      }
2497 <    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossSession, 1);
2497 >    Py_INCREF(Py_None); resultobj = Py_None;
2498      return resultobj;
2499      fail:
2500      return NULL;
2501   }
2502  
2503  
2504 < static PyObject *_wrap_delete_BossSession(PyObject *self, PyObject *args) {
2504 > static PyObject *_wrap_BossSession_showCHTools(PyObject *self, PyObject *args) {
2505      PyObject *resultobj;
2506      BossSession *arg1 = (BossSession *) 0 ;
2507 +    std::vector<std::string > result;
2508      PyObject * obj0 = 0 ;
2509      
2510 <    if(!PyArg_ParseTuple(args,(char *)"O:delete_BossSession",&obj0)) goto fail;
2510 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showCHTools",&obj0)) goto fail;
2511      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2512      {
2513          try {
2514 <            delete arg1;
2514 >            result = (arg1)->showCHTools();
2515              
2516 +        }catch (const BossSchedFailure & e) {
2517 +            PyErr_SetString ( SchedulerError, e.what() );
2518 +            return NULL;
2519          }catch (const std::exception& e) {
2520 <            SWIG_exception(SWIG_RuntimeError, e.what());
2520 >            PyErr_SetString ( BossError, e.what() );
2521 >            return NULL;
2522          }
2523      }
2549    Py_INCREF(Py_None); resultobj = Py_None;
2550    return resultobj;
2551    fail:
2552    return NULL;
2553 }
2554
2555
2556 static PyObject *_wrap_BossSession_resetDB(PyObject *self, PyObject *args) {
2557    PyObject *resultobj;
2558    BossSession *arg1 = (BossSession *) 0 ;
2559    PyObject * obj0 = 0 ;
2560    
2561    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_resetDB",&obj0)) goto fail;
2562    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2524      {
2525 <        try {
2526 <            (arg1)->resetDB();
2527 <            
2528 <        }catch (const std::exception& e) {
2568 <            SWIG_exception(SWIG_RuntimeError, e.what());
2569 <        }
2525 >        resultobj = PyTuple_New((&result)->size());
2526 >        for (unsigned int i=0; i<(&result)->size(); i++)
2527 >        PyTuple_SetItem(resultobj,i,
2528 >        SwigString_FromString(((std::vector<std::string > &)result)[i]));
2529      }
2571    Py_INCREF(Py_None); resultobj = Py_None;
2530      return resultobj;
2531      fail:
2532      return NULL;
2533   }
2534  
2535  
2536 < static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) {
2536 > static PyObject *_wrap_BossSession_showProgramTypes(PyObject *self, PyObject *args) {
2537      PyObject *resultobj;
2538      BossSession *arg1 = (BossSession *) 0 ;
2539 +    std::vector<std::string > result;
2540      PyObject * obj0 = 0 ;
2541      
2542 <    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clear",&obj0)) goto fail;
2542 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showProgramTypes",&obj0)) goto fail;
2543      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2544      {
2545          try {
2546 <            (arg1)->clear();
2546 >            result = (arg1)->showProgramTypes();
2547              
2548 +        }catch (const BossSchedFailure & e) {
2549 +            PyErr_SetString ( SchedulerError, e.what() );
2550 +            return NULL;
2551          }catch (const std::exception& e) {
2552 <            SWIG_exception(SWIG_RuntimeError, e.what());
2552 >            PyErr_SetString ( BossError, e.what() );
2553 >            return NULL;
2554          }
2555      }
2556 <    Py_INCREF(Py_None); resultobj = Py_None;
2556 >    {
2557 >        resultobj = PyTuple_New((&result)->size());
2558 >        for (unsigned int i=0; i<(&result)->size(); i++)
2559 >        PyTuple_SetItem(resultobj,i,
2560 >        SwigString_FromString(((std::vector<std::string > &)result)[i]));
2561 >    }
2562      return resultobj;
2563      fail:
2564      return NULL;
2565   }
2566  
2567  
2568 < static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) {
2568 > static PyObject *_wrap_BossSession_showRTMon(PyObject *self, PyObject *args) {
2569      PyObject *resultobj;
2570      BossSession *arg1 = (BossSession *) 0 ;
2571 <    std::string const &arg2_defvalue = "" ;
2604 <    std::string *arg2 = (std::string *) &arg2_defvalue ;
2605 <    BossTask *result;
2606 <    std::string temp2 ;
2571 >    std::vector<std::string > result;
2572      PyObject * obj0 = 0 ;
2608    PyObject * obj1 = 0 ;
2573      
2574 <    if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_makeBossTask",&obj0,&obj1)) goto fail;
2574 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showRTMon",&obj0)) goto fail;
2575      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2612    if (obj1) {
2613        {
2614            if (PyString_Check(obj1)) {
2615                temp2 = std::string(PyString_AsString(obj1));
2616                arg2 = &temp2;
2617            }else {
2618                SWIG_exception(SWIG_TypeError, "string expected");
2619            }
2620        }
2621    }
2576      {
2577          try {
2578 <            result = (BossTask *)(arg1)->makeBossTask((std::string const &)*arg2);
2578 >            result = (arg1)->showRTMon();
2579              
2580 +        }catch (const BossSchedFailure & e) {
2581 +            PyErr_SetString ( SchedulerError, e.what() );
2582 +            return NULL;
2583          }catch (const std::exception& e) {
2584 <            SWIG_exception(SWIG_RuntimeError, e.what());
2584 >            PyErr_SetString ( BossError, e.what() );
2585 >            return NULL;
2586          }
2587      }
2588 <    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0);
2588 >    {
2589 >        resultobj = PyTuple_New((&result)->size());
2590 >        for (unsigned int i=0; i<(&result)->size(); i++)
2591 >        PyTuple_SetItem(resultobj,i,
2592 >        SwigString_FromString(((std::vector<std::string > &)result)[i]));
2593 >    }
2594      return resultobj;
2595      fail:
2596      return NULL;
2597   }
2598  
2599  
2600 < static PyObject *_wrap_BossSession_destroyBossTask(PyObject *self, PyObject *args) {
2600 > static PyObject *_wrap_BossSession_showSchedulers(PyObject *self, PyObject *args) {
2601      PyObject *resultobj;
2602      BossSession *arg1 = (BossSession *) 0 ;
2603 <    BossTask *arg2 = (BossTask *) 0 ;
2603 >    std::vector<std::string > result;
2604      PyObject * obj0 = 0 ;
2642    PyObject * obj1 = 0 ;
2605      
2606 <    if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_destroyBossTask",&obj0,&obj1)) goto fail;
2606 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showSchedulers",&obj0)) goto fail;
2607      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2646    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2608      {
2609          try {
2610 <            (arg1)->destroyBossTask(arg2);
2610 >            result = (arg1)->showSchedulers();
2611              
2612 +        }catch (const BossSchedFailure & e) {
2613 +            PyErr_SetString ( SchedulerError, e.what() );
2614 +            return NULL;
2615          }catch (const std::exception& e) {
2616 <            SWIG_exception(SWIG_RuntimeError, e.what());
2616 >            PyErr_SetString ( BossError, e.what() );
2617 >            return NULL;
2618          }
2619      }
2620 <    Py_INCREF(Py_None); resultobj = Py_None;
2620 >    {
2621 >        resultobj = PyTuple_New((&result)->size());
2622 >        for (unsigned int i=0; i<(&result)->size(); i++)
2623 >        PyTuple_SetItem(resultobj,i,
2624 >        SwigString_FromString(((std::vector<std::string > &)result)[i]));
2625 >    }
2626      return resultobj;
2627      fail:
2628      return NULL;
# Line 2671 | Line 2641 | static PyObject *_wrap_BossSession_defau
2641          try {
2642              result = (arg1)->defaultCHTool();
2643              
2644 +        }catch (const BossSchedFailure & e) {
2645 +            PyErr_SetString ( SchedulerError, e.what() );
2646 +            return NULL;
2647          }catch (const std::exception& e) {
2648 <            SWIG_exception(SWIG_RuntimeError, e.what());
2648 >            PyErr_SetString ( BossError, e.what() );
2649 >            return NULL;
2650          }
2651      }
2652      {
# Line 2696 | Line 2670 | static PyObject *_wrap_BossSession_defau
2670          try {
2671              result = (arg1)->defaultProgramType();
2672              
2673 +        }catch (const BossSchedFailure & e) {
2674 +            PyErr_SetString ( SchedulerError, e.what() );
2675 +            return NULL;
2676          }catch (const std::exception& e) {
2677 <            SWIG_exception(SWIG_RuntimeError, e.what());
2677 >            PyErr_SetString ( BossError, e.what() );
2678 >            return NULL;
2679          }
2680      }
2681      {
# Line 2721 | Line 2699 | static PyObject *_wrap_BossSession_defau
2699          try {
2700              result = (arg1)->defaultRTMon();
2701              
2702 +        }catch (const BossSchedFailure & e) {
2703 +            PyErr_SetString ( SchedulerError, e.what() );
2704 +            return NULL;
2705          }catch (const std::exception& e) {
2706 <            SWIG_exception(SWIG_RuntimeError, e.what());
2706 >            PyErr_SetString ( BossError, e.what() );
2707 >            return NULL;
2708          }
2709      }
2710      {
# Line 2746 | Line 2728 | static PyObject *_wrap_BossSession_defau
2728          try {
2729              result = (arg1)->defaultScheduler();
2730              
2731 +        }catch (const BossSchedFailure & e) {
2732 +            PyErr_SetString ( SchedulerError, e.what() );
2733 +            return NULL;
2734          }catch (const std::exception& e) {
2735 <            SWIG_exception(SWIG_RuntimeError, e.what());
2735 >            PyErr_SetString ( BossError, e.what() );
2736 >            return NULL;
2737          }
2738      }
2739      {
# Line 2771 | Line 2757 | static PyObject *_wrap_BossSession_versi
2757          try {
2758              result = (arg1)->version();
2759              
2760 +        }catch (const BossSchedFailure & e) {
2761 +            PyErr_SetString ( SchedulerError, e.what() );
2762 +            return NULL;
2763          }catch (const std::exception& e) {
2764 <            SWIG_exception(SWIG_RuntimeError, e.what());
2764 >            PyErr_SetString ( BossError, e.what() );
2765 >            return NULL;
2766          }
2767      }
2768      {
# Line 2796 | Line 2786 | static PyObject *_wrap_BossSession_clien
2786          try {
2787              result = (arg1)->clientID();
2788              
2789 +        }catch (const BossSchedFailure & e) {
2790 +            PyErr_SetString ( SchedulerError, e.what() );
2791 +            return NULL;
2792          }catch (const std::exception& e) {
2793 <            SWIG_exception(SWIG_RuntimeError, e.what());
2793 >            PyErr_SetString ( BossError, e.what() );
2794 >            return NULL;
2795          }
2796      }
2797      {
# Line 2827 | Line 2821 | static PyObject *_wrap_BossSession_showC
2821          try {
2822              result = (int)(arg1)->showConfigs(arg2);
2823              
2824 +        }catch (const BossSchedFailure & e) {
2825 +            PyErr_SetString ( SchedulerError, e.what() );
2826 +            return NULL;
2827          }catch (const std::exception& e) {
2828 <            SWIG_exception(SWIG_RuntimeError, e.what());
2828 >            PyErr_SetString ( BossError, e.what() );
2829 >            return NULL;
2830          }
2831      }
2832      resultobj = PyInt_FromLong((long)result);
# Line 2880 | Line 2878 | static PyObject *_wrap_BossSession_RTupd
2878          try {
2879              result = (int)(arg1)->RTupdate(arg2,arg3,arg4);
2880              
2881 +        }catch (const BossSchedFailure & e) {
2882 +            PyErr_SetString ( SchedulerError, e.what() );
2883 +            return NULL;
2884          }catch (const std::exception& e) {
2885 <            SWIG_exception(SWIG_RuntimeError, e.what());
2885 >            PyErr_SetString ( BossError, e.what() );
2886 >            return NULL;
2887          }
2888      }
2889      resultobj = PyInt_FromLong((long)result);
# Line 2901 | Line 2903 | static PyObject *_wrap_BossSession_listM
2903      std::string *arg5 = (std::string *) &arg5_defvalue ;
2904      std::string const &arg6_defvalue = "" ;
2905      std::string *arg6 = (std::string *) &arg6_defvalue ;
2906 +    unsigned int arg7 = (unsigned int) 0 ;
2907      std::vector<std::string > result;
2908      std::string temp2 ;
2909      std::string temp3 ;
# Line 2912 | Line 2915 | static PyObject *_wrap_BossSession_listM
2915      PyObject * obj3 = 0 ;
2916      PyObject * obj4 = 0 ;
2917      PyObject * obj5 = 0 ;
2918 +    PyObject * obj6 = 0 ;
2919      
2920 <    if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2920 >    if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2921      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2922      {
2923          if (PyString_Check(obj1)) {
# Line 2955 | Line 2959 | static PyObject *_wrap_BossSession_listM
2959              }
2960          }
2961      }
2962 +    if (obj6) {
2963 +        arg7 = (unsigned int) PyInt_AsLong(obj6);
2964 +        if (PyErr_Occurred()) SWIG_fail;
2965 +    }
2966      {
2967          try {
2968 <            result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6);
2968 >            result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7);
2969              
2970 +        }catch (const BossSchedFailure & e) {
2971 +            PyErr_SetString ( SchedulerError, e.what() );
2972 +            return NULL;
2973          }catch (const std::exception& e) {
2974 <            SWIG_exception(SWIG_RuntimeError, e.what());
2974 >            PyErr_SetString ( BossError, e.what() );
2975 >            return NULL;
2976          }
2977      }
2978      {
# Line 2989 | Line 3001 | static PyObject *_wrap_BossSession_sched
3001      std::string arg7 = (std::string) "" ;
3002      std::string arg8 = (std::string) "" ;
3003      std::string arg9 = (std::string) "" ;
3004 +    unsigned int arg10 = (unsigned int) 0 ;
3005      std::string temp3 ;
3006      std::string temp4 ;
3007      std::string temp5 ;
# Line 3000 | Line 3013 | static PyObject *_wrap_BossSession_sched
3013      PyObject * obj6 = 0 ;
3014      PyObject * obj7 = 0 ;
3015      PyObject * obj8 = 0 ;
3016 +    PyObject * obj9 = 0 ;
3017      
3018 <    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3018 >    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3019      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3020      if (obj2) {
3021          {
# Line 3065 | Line 3079 | static PyObject *_wrap_BossSession_sched
3079              SWIG_exception(SWIG_TypeError, "string expected");
3080          }
3081      }
3082 +    if (obj9) {
3083 +        arg10 = (unsigned int) PyInt_AsLong(obj9);
3084 +        if (PyErr_Occurred()) SWIG_fail;
3085 +    }
3086      {
3087          try {
3088 <            (arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9);
3088 >            (arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
3089              
3090 +        }catch (const BossSchedFailure & e) {
3091 +            PyErr_SetString ( SchedulerError, e.what() );
3092 +            return NULL;
3093          }catch (const std::exception& e) {
3094 <            SWIG_exception(SWIG_RuntimeError, e.what());
3094 >            PyErr_SetString ( BossError, e.what() );
3095 >            return NULL;
3096          }
3097      }
3098      Py_INCREF(Py_None); resultobj = Py_None;
# Line 3148 | Line 3170 | static PyObject *_wrap_BossSession_selec
3170          try {
3171              result = (arg1)->selectTasks((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
3172              
3173 +        }catch (const BossSchedFailure & e) {
3174 +            PyErr_SetString ( SchedulerError, e.what() );
3175 +            return NULL;
3176          }catch (const std::exception& e) {
3177 <            SWIG_exception(SWIG_RuntimeError, e.what());
3177 >            PyErr_SetString ( BossError, e.what() );
3178 >            return NULL;
3179          }
3180      }
3181      {
# Line 3178 | Line 3204 | static PyObject *_wrap_BossSession_query
3204      std::string arg7 = (std::string) "" ;
3205      std::string arg8 = (std::string) "" ;
3206      std::string arg9 = (std::string) "" ;
3207 <    bool arg10 = (bool) false ;
3207 >    unsigned int arg10 = (unsigned int) 0 ;
3208 >    bool arg11 = (bool) false ;
3209      SwigValueWrapper< std::vector<BossTask * > > result;
3210      std::string temp3 ;
3211      std::string temp4 ;
# Line 3192 | Line 3219 | static PyObject *_wrap_BossSession_query
3219      PyObject * obj7 = 0 ;
3220      PyObject * obj8 = 0 ;
3221      PyObject * obj9 = 0 ;
3222 +    PyObject * obj10 = 0 ;
3223      
3224 <    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3224 >    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
3225      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3226      if (obj2) {
3227          {
# Line 3258 | Line 3286 | static PyObject *_wrap_BossSession_query
3286          }
3287      }
3288      if (obj9) {
3289 <        arg10 = PyInt_AsLong(obj9) ? true : false;
3289 >        arg10 = (unsigned int) PyInt_AsLong(obj9);
3290 >        if (PyErr_Occurred()) SWIG_fail;
3291 >    }
3292 >    if (obj10) {
3293 >        arg11 = PyInt_AsLong(obj10) ? true : false;
3294          if (PyErr_Occurred()) SWIG_fail;
3295      }
3296      {
3297          try {
3298 <            result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
3298 >            result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11);
3299              
3300 +        }catch (const BossSchedFailure & e) {
3301 +            PyErr_SetString ( SchedulerError, e.what() );
3302 +            return NULL;
3303          }catch (const std::exception& e) {
3304 <            SWIG_exception(SWIG_RuntimeError, e.what());
3304 >            PyErr_SetString ( BossError, e.what() );
3305 >            return NULL;
3306          }
3307      }
3308      {
# Line 3280 | Line 3316 | static PyObject *_wrap_BossSession_query
3316   }
3317  
3318  
3319 < static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) {
3284 <    PyObject *obj;
3285 <    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3286 <    SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj);
3287 <    Py_INCREF(obj);
3288 <    return Py_BuildValue((char *)"");
3289 < }
3290 < static PyObject *_wrap_BossTaskException_key_set(PyObject *self, PyObject *args) {
3319 > static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) {
3320      PyObject *resultobj;
3321 <    BossTaskException *arg1 = (BossTaskException *) 0 ;
3322 <    char *arg2 ;
3321 >    BossSession *arg1 = (BossSession *) 0 ;
3322 >    std::vector<std::string > *arg2 = 0 ;
3323 >    PyObject *result;
3324      PyObject * obj0 = 0 ;
3325 +    PyObject * obj1 = 0 ;
3326      
3327 <    if(!PyArg_ParseTuple(args,(char *)"Os:BossTaskException_key_set",&obj0,&arg2)) goto fail;
3328 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3327 >    if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_show",&obj0,&obj1)) goto fail;
3328 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3329 >    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3330 >    if (arg2 == NULL) {
3331 >        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3332 >    }
3333      {
3334 <        if (arg2) {
3335 <            arg1->key = (char const *) (new char[strlen(arg2)+1]);
3336 <            strcpy((char *) arg1->key,arg2);
3337 <        }else {
3338 <            arg1->key = 0;
3334 >        try {
3335 >            result = (PyObject *)BossSession_show(arg1,*arg2);
3336 >            
3337 >        }catch (const BossSchedFailure & e) {
3338 >            PyErr_SetString ( SchedulerError, e.what() );
3339 >            return NULL;
3340 >        }catch (const std::exception& e) {
3341 >            PyErr_SetString ( BossError, e.what() );
3342 >            return NULL;
3343          }
3344      }
3345 <    Py_INCREF(Py_None); resultobj = Py_None;
3345 >    resultobj = result;
3346      return resultobj;
3347      fail:
3348      return NULL;
3349   }
3350  
3351  
3352 < static PyObject *_wrap_BossTaskException_key_get(PyObject *self, PyObject *args) {
3352 > static PyObject *_wrap_BossSession_CHTools(PyObject *self, PyObject *args) {
3353      PyObject *resultobj;
3354 <    BossTaskException *arg1 = (BossTaskException *) 0 ;
3355 <    char *result;
3354 >    BossSession *arg1 = (BossSession *) 0 ;
3355 >    PyObject *result;
3356      PyObject * obj0 = 0 ;
3357      
3358 <    if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_key_get",&obj0)) goto fail;
3359 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3360 <    result = (char *) ((arg1)->key);
3361 <    
3362 <    resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3358 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_CHTools",&obj0)) goto fail;
3359 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3360 >    {
3361 >        try {
3362 >            result = (PyObject *)BossSession_CHTools(arg1);
3363 >            
3364 >        }catch (const BossSchedFailure & e) {
3365 >            PyErr_SetString ( SchedulerError, e.what() );
3366 >            return NULL;
3367 >        }catch (const std::exception& e) {
3368 >            PyErr_SetString ( BossError, e.what() );
3369 >            return NULL;
3370 >        }
3371 >    }
3372 >    resultobj = result;
3373      return resultobj;
3374      fail:
3375      return NULL;
3376   }
3377  
3378  
3379 < static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) {
3379 > static PyObject *_wrap_BossSession_ProgramTypes(PyObject *self, PyObject *args) {
3380      PyObject *resultobj;
3381 <    char *arg1 ;
3382 <    BossTaskException *result;
3381 >    BossSession *arg1 = (BossSession *) 0 ;
3382 >    PyObject *result;
3383 >    PyObject * obj0 = 0 ;
3384      
3385 <    if(!PyArg_ParseTuple(args,(char *)"s:new_BossTaskException",&arg1)) goto fail;
3385 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_ProgramTypes",&obj0)) goto fail;
3386 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3387      {
3388          try {
3389 <            result = (BossTaskException *)new BossTaskException((char const *)arg1);
3389 >            result = (PyObject *)BossSession_ProgramTypes(arg1);
3390              
3391 +        }catch (const BossSchedFailure & e) {
3392 +            PyErr_SetString ( SchedulerError, e.what() );
3393 +            return NULL;
3394          }catch (const std::exception& e) {
3395 <            SWIG_exception(SWIG_RuntimeError, e.what());
3395 >            PyErr_SetString ( BossError, e.what() );
3396 >            return NULL;
3397          }
3398      }
3399 <    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTaskException, 1);
3399 >    resultobj = result;
3400      return resultobj;
3401      fail:
3402      return NULL;
3403   }
3404  
3405  
3406 < static PyObject *_wrap_BossTaskException_what(PyObject *self, PyObject *args) {
3406 > static PyObject *_wrap_BossSession_RTMons(PyObject *self, PyObject *args) {
3407      PyObject *resultobj;
3408 <    BossTaskException *arg1 = (BossTaskException *) 0 ;
3409 <    char *result;
3408 >    BossSession *arg1 = (BossSession *) 0 ;
3409 >    PyObject *result;
3410      PyObject * obj0 = 0 ;
3411      
3412 <    if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_what",&obj0)) goto fail;
3413 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3412 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_RTMons",&obj0)) goto fail;
3413 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3414      {
3415          try {
3416 <            result = (char *)((BossTaskException const *)arg1)->what();
3416 >            result = (PyObject *)BossSession_RTMons(arg1);
3417              
3418 +        }catch (const BossSchedFailure & e) {
3419 +            PyErr_SetString ( SchedulerError, e.what() );
3420 +            return NULL;
3421          }catch (const std::exception& e) {
3422 <            SWIG_exception(SWIG_RuntimeError, e.what());
3422 >            PyErr_SetString ( BossError, e.what() );
3423 >            return NULL;
3424          }
3425      }
3426 <    resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3426 >    resultobj = result;
3427      return resultobj;
3428      fail:
3429      return NULL;
3430   }
3431  
3432  
3433 < static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) {
3433 > static PyObject *_wrap_BossSession_schedulers(PyObject *self, PyObject *args) {
3434      PyObject *resultobj;
3435 <    BossTaskException *arg1 = (BossTaskException *) 0 ;
3435 >    BossSession *arg1 = (BossSession *) 0 ;
3436 >    PyObject *result;
3437      PyObject * obj0 = 0 ;
3438      
3439 <    if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTaskException",&obj0)) goto fail;
3440 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3439 >    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_schedulers",&obj0)) goto fail;
3440 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3441      {
3442          try {
3443 <            delete arg1;
3443 >            result = (PyObject *)BossSession_schedulers(arg1);
3444              
3445 +        }catch (const BossSchedFailure & e) {
3446 +            PyErr_SetString ( SchedulerError, e.what() );
3447 +            return NULL;
3448          }catch (const std::exception& e) {
3449 <            SWIG_exception(SWIG_RuntimeError, e.what());
3449 >            PyErr_SetString ( BossError, e.what() );
3450 >            return NULL;
3451          }
3452      }
3453 <    Py_INCREF(Py_None); resultobj = Py_None;
3453 >    resultobj = result;
3454      return resultobj;
3455      fail:
3456      return NULL;
3457   }
3458  
3459  
3460 < static PyObject * BossTaskException_swigregister(PyObject *self, PyObject *args) {
3397 <    PyObject *obj;
3398 <    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3399 <    SWIG_TypeClientData(SWIGTYPE_p_BossTaskException, obj);
3400 <    Py_INCREF(obj);
3401 <    return Py_BuildValue((char *)"");
3402 < }
3403 < static PyObject *_wrap_BossTask_appendToPyDict(PyObject *self, PyObject *args) {
3460 > static PyObject *_wrap_BossSession_schedListMatch(PyObject *self, PyObject *args) {
3461      PyObject *resultobj;
3462 <    BossTask *arg1 = (BossTask *) 0 ;
3463 <    PyObject *arg2 = (PyObject *) 0 ;
3464 <    BossAttributeContainer *arg3 = 0 ;
3462 >    BossSession *arg1 = (BossSession *) 0 ;
3463 >    std::string *arg2 = 0 ;
3464 >    std::string *arg3 = 0 ;
3465 >    std::string const &arg4_defvalue = "" ;
3466 >    std::string *arg4 = (std::string *) &arg4_defvalue ;
3467 >    std::string const &arg5_defvalue = "" ;
3468 >    std::string *arg5 = (std::string *) &arg5_defvalue ;
3469 >    unsigned int arg6 = (unsigned int) 0 ;
3470 >    bool arg7 = (bool) false ;
3471      PyObject *result;
3472 +    std::string temp2 ;
3473 +    std::string temp3 ;
3474 +    std::string temp4 ;
3475 +    std::string temp5 ;
3476      PyObject * obj0 = 0 ;
3477      PyObject * obj1 = 0 ;
3478      PyObject * obj2 = 0 ;
3479 +    PyObject * obj3 = 0 ;
3480 +    PyObject * obj4 = 0 ;
3481 +    PyObject * obj5 = 0 ;
3482 +    PyObject * obj6 = 0 ;
3483      
3484 <    if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_appendToPyDict",&obj0,&obj1,&obj2)) goto fail;
3485 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3486 <    arg2 = obj1;
3487 <    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_BossAttributeContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3488 <    if (arg3 == NULL) {
3489 <        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3484 >    if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3485 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3486 >    {
3487 >        if (PyString_Check(obj1)) {
3488 >            temp2 = std::string(PyString_AsString(obj1));
3489 >            arg2 = &temp2;
3490 >        }else {
3491 >            SWIG_exception(SWIG_TypeError, "string expected");
3492 >        }
3493 >    }
3494 >    {
3495 >        if (PyString_Check(obj2)) {
3496 >            temp3 = std::string(PyString_AsString(obj2));
3497 >            arg3 = &temp3;
3498 >        }else {
3499 >            SWIG_exception(SWIG_TypeError, "string expected");
3500 >        }
3501 >    }
3502 >    if (obj3) {
3503 >        {
3504 >            if (PyString_Check(obj3)) {
3505 >                temp4 = std::string(PyString_AsString(obj3));
3506 >                arg4 = &temp4;
3507 >            }else {
3508 >                SWIG_exception(SWIG_TypeError, "string expected");
3509 >            }
3510 >        }
3511 >    }
3512 >    if (obj4) {
3513 >        {
3514 >            if (PyString_Check(obj4)) {
3515 >                temp5 = std::string(PyString_AsString(obj4));
3516 >                arg5 = &temp5;
3517 >            }else {
3518 >                SWIG_exception(SWIG_TypeError, "string expected");
3519 >            }
3520 >        }
3521 >    }
3522 >    if (obj5) {
3523 >        arg6 = (unsigned int) PyInt_AsLong(obj5);
3524 >        if (PyErr_Occurred()) SWIG_fail;
3525 >    }
3526 >    if (obj6) {
3527 >        arg7 = PyInt_AsLong(obj6) ? true : false;
3528 >        if (PyErr_Occurred()) SWIG_fail;
3529      }
3530      {
3531          try {
3532 <            result = (PyObject *)BossTask_appendToPyDict((BossTask const *)arg1,arg2,(BossAttributeContainer const &)*arg3);
3532 >            result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7);
3533              
3534 +        }catch (const BossSchedFailure & e) {
3535 +            PyErr_SetString ( SchedulerError, e.what() );
3536 +            return NULL;
3537          }catch (const std::exception& e) {
3538 <            SWIG_exception(SWIG_RuntimeError, e.what());
3538 >            PyErr_SetString ( BossError, e.what() );
3539 >            return NULL;
3540          }
3541      }
3542      resultobj = result;
# Line 3432 | Line 3546 | static PyObject *_wrap_BossTask_appendTo
3546   }
3547  
3548  
3549 < static PyObject *_wrap_BossTask_jobDict(PyObject *self, PyObject *args) {
3549 > static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) {
3550      PyObject *resultobj;
3551 <    BossTask *arg1 = (BossTask *) 0 ;
3552 <    std::vector<BossJob * >::const_iterator *arg2 = 0 ;
3551 >    BossSession *arg1 = (BossSession *) 0 ;
3552 >    int arg2 = (int) SCHEDULED ;
3553 >    std::string const &arg3_defvalue = "all" ;
3554 >    std::string *arg3 = (std::string *) &arg3_defvalue ;
3555 >    std::string const &arg4_defvalue = "all" ;
3556 >    std::string *arg4 = (std::string *) &arg4_defvalue ;
3557 >    std::string const &arg5_defvalue = "" ;
3558 >    std::string *arg5 = (std::string *) &arg5_defvalue ;
3559 >    std::string arg6 = (std::string) "" ;
3560 >    std::string arg7 = (std::string) "" ;
3561 >    std::string arg8 = (std::string) "" ;
3562 >    std::string arg9 = (std::string) "" ;
3563 >    unsigned int arg10 = (unsigned int) 0 ;
3564 >    bool arg11 = (bool) false ;
3565      PyObject *result;
3566 +    std::string temp3 ;
3567 +    std::string temp4 ;
3568 +    std::string temp5 ;
3569      PyObject * obj0 = 0 ;
3570 <    PyObject * obj1 = 0 ;
3570 >    PyObject * obj2 = 0 ;
3571 >    PyObject * obj3 = 0 ;
3572 >    PyObject * obj4 = 0 ;
3573 >    PyObject * obj5 = 0 ;
3574 >    PyObject * obj6 = 0 ;
3575 >    PyObject * obj7 = 0 ;
3576 >    PyObject * obj8 = 0 ;
3577 >    PyObject * obj9 = 0 ;
3578 >    PyObject * obj10 = 0 ;
3579      
3580 <    if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobDict",&obj0,&obj1)) goto fail;
3581 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3582 <    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3583 <    if (arg2 == NULL) {
3584 <        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3580 >    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_queryTasks",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
3581 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3582 >    if (obj2) {
3583 >        {
3584 >            if (PyString_Check(obj2)) {
3585 >                temp3 = std::string(PyString_AsString(obj2));
3586 >                arg3 = &temp3;
3587 >            }else {
3588 >                SWIG_exception(SWIG_TypeError, "string expected");
3589 >            }
3590 >        }
3591 >    }
3592 >    if (obj3) {
3593 >        {
3594 >            if (PyString_Check(obj3)) {
3595 >                temp4 = std::string(PyString_AsString(obj3));
3596 >                arg4 = &temp4;
3597 >            }else {
3598 >                SWIG_exception(SWIG_TypeError, "string expected");
3599 >            }
3600 >        }
3601 >    }
3602 >    if (obj4) {
3603 >        {
3604 >            if (PyString_Check(obj4)) {
3605 >                temp5 = std::string(PyString_AsString(obj4));
3606 >                arg5 = &temp5;
3607 >            }else {
3608 >                SWIG_exception(SWIG_TypeError, "string expected");
3609 >            }
3610 >        }
3611 >    }
3612 >    if (obj5) {
3613 >        {
3614 >            if (PyString_Check(obj5))
3615 >            arg6 = std::string(PyString_AsString(obj5));
3616 >            else
3617 >            SWIG_exception(SWIG_TypeError, "string expected");
3618 >        }
3619 >    }
3620 >    if (obj6) {
3621 >        {
3622 >            if (PyString_Check(obj6))
3623 >            arg7 = std::string(PyString_AsString(obj6));
3624 >            else
3625 >            SWIG_exception(SWIG_TypeError, "string expected");
3626 >        }
3627 >    }
3628 >    if (obj7) {
3629 >        {
3630 >            if (PyString_Check(obj7))
3631 >            arg8 = std::string(PyString_AsString(obj7));
3632 >            else
3633 >            SWIG_exception(SWIG_TypeError, "string expected");
3634 >        }
3635 >    }
3636 >    if (obj8) {
3637 >        {
3638 >            if (PyString_Check(obj8))
3639 >            arg9 = std::string(PyString_AsString(obj8));
3640 >            else
3641 >            SWIG_exception(SWIG_TypeError, "string expected");
3642 >        }
3643 >    }
3644 >    if (obj9) {
3645 >        arg10 = (unsigned int) PyInt_AsLong(obj9);
3646 >        if (PyErr_Occurred()) SWIG_fail;
3647 >    }
3648 >    if (obj10) {
3649 >        arg11 = PyInt_AsLong(obj10) ? true : false;
3650 >        if (PyErr_Occurred()) SWIG_fail;
3651      }
3652      {
3653          try {
3654 <            result = (PyObject *)BossTask_jobDict((BossTask const *)arg1,*arg2);
3654 >            result = (PyObject *)BossSession_queryTasks(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11);
3655              
3656 +        }catch (const BossSchedFailure & e) {
3657 +            PyErr_SetString ( SchedulerError, e.what() );
3658 +            return NULL;
3659          }catch (const std::exception& e) {
3660 <            SWIG_exception(SWIG_RuntimeError, e.what());
3660 >            PyErr_SetString ( BossError, e.what() );
3661 >            return NULL;
3662          }
3663      }
3664      resultobj = result;
# Line 3461 | Line 3668 | static PyObject *_wrap_BossTask_jobDict(
3668   }
3669  
3670  
3671 < static PyObject *_wrap_BossTask_jobsDict(PyObject *self, PyObject *args) {
3671 > static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) {
3672 >    PyObject *obj;
3673 >    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3674 >    SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj);
3675 >    Py_INCREF(obj);
3676 >    return Py_BuildValue((char *)"");
3677 > }
3678 > static PyObject *_wrap_BossTaskException_key_set(PyObject *self, PyObject *args) {
3679      PyObject *resultobj;
3680 <    BossTask *arg1 = (BossTask *) 0 ;
3681 <    PyObject *result;
3680 >    BossTaskException *arg1 = (BossTaskException *) 0 ;
3681 >    char *arg2 ;
3682      PyObject * obj0 = 0 ;
3683      
3684 <    if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsDict",&obj0)) goto fail;
3685 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3684 >    if(!PyArg_ParseTuple(args,(char *)"Os:BossTaskException_key_set",&obj0,&arg2)) goto fail;
3685 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3686      {
3687 <        try {
3688 <            result = (PyObject *)BossTask_jobsDict(arg1);
3689 <            
3690 <        }catch (const std::exception& e) {
3691 <            SWIG_exception(SWIG_RuntimeError, e.what());
3687 >        if (arg2) {
3688 >            arg1->key = (char const *) (new char[strlen(arg2)+1]);
3689 >            strcpy((char *) arg1->key,arg2);
3690 >        }else {
3691 >            arg1->key = 0;
3692          }
3693      }
3694 <    resultobj = result;
3694 >    Py_INCREF(Py_None); resultobj = Py_None;
3695      return resultobj;
3696      fail:
3697      return NULL;
3698   }
3699  
3700  
3701 < static PyObject *_wrap_BossTask_progDict(PyObject *self, PyObject *args) {
3701 > static PyObject *_wrap_BossTaskException_key_get(PyObject *self, PyObject *args) {
3702      PyObject *resultobj;
3703 <    BossTask *arg1 = (BossTask *) 0 ;
3704 <    std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *arg2 = 0 ;
3491 <    PyObject *result;
3703 >    BossTaskException *arg1 = (BossTaskException *) 0 ;
3704 >    char *result;
3705      PyObject * obj0 = 0 ;
3493    PyObject * obj1 = 0 ;
3706      
3707 <    if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_progDict",&obj0,&obj1)) goto fail;
3708 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3709 <    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3710 <    if (arg2 == NULL) {
3711 <        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3712 <    }
3707 >    if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_key_get",&obj0)) goto fail;
3708 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3709 >    result = (char *) ((arg1)->key);
3710 >    
3711 >    resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3712 >    return resultobj;
3713 >    fail:
3714 >    return NULL;
3715 > }
3716 >
3717 >
3718 > static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) {
3719 >    PyObject *resultobj;
3720 >    char *arg1 ;
3721 >    BossTaskException *result;
3722 >    
3723 >    if(!PyArg_ParseTuple(args,(char *)"s:new_BossTaskException",&arg1)) goto fail;
3724      {
3725          try {
3726 <            result = (PyObject *)BossTask_progDict((BossTask const *)arg1,*arg2);
3726 >            result = (BossTaskException *)new BossTaskException((char const *)arg1);
3727              
3728 +        }catch (const BossSchedFailure & e) {
3729 +            PyErr_SetString ( SchedulerError, e.what() );
3730 +            return NULL;
3731          }catch (const std::exception& e) {
3732 <            SWIG_exception(SWIG_RuntimeError, e.what());
3732 >            PyErr_SetString ( BossError, e.what() );
3733 >            return NULL;
3734          }
3735      }
3736 <    resultobj = result;
3736 >    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTaskException, 1);
3737      return resultobj;
3738      fail:
3739      return NULL;
3740   }
3741  
3742  
3743 < static PyObject *_wrap_BossTask_jobPrograms(PyObject *self, PyObject *args) {
3743 > static PyObject *_wrap_BossTaskException_what(PyObject *self, PyObject *args) {
3744      PyObject *resultobj;
3745 <    BossTask *arg1 = (BossTask *) 0 ;
3746 <    std::string *arg2 = 0 ;
3520 <    PyObject *result;
3521 <    std::string temp2 ;
3745 >    BossTaskException *arg1 = (BossTaskException *) 0 ;
3746 >    char *result;
3747      PyObject * obj0 = 0 ;
3523    PyObject * obj1 = 0 ;
3748      
3749 <    if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobPrograms",&obj0,&obj1)) goto fail;
3750 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3749 >    if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_what",&obj0)) goto fail;
3750 >    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3751      {
3752 <        if (PyString_Check(obj1)) {
3753 <            temp2 = std::string(PyString_AsString(obj1));
3754 <            arg2 = &temp2;
3755 <        }else {
3756 <            SWIG_exception(SWIG_TypeError, "string expected");
3752 >        try {
3753 >            result = (char *)((BossTaskException const *)arg1)->what();
3754 >            
3755 >        }catch (const BossSchedFailure & e) {
3756 >            PyErr_SetString ( SchedulerError, e.what() );
3757 >            return NULL;
3758 >        }catch (const std::exception& e) {
3759 >            PyErr_SetString ( BossError, e.what() );
3760 >            return NULL;
3761          }
3762      }
3763 +    resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3764 +    return resultobj;
3765 +    fail:
3766 +    return NULL;
3767 + }
3768 +
3769 +
3770 + static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) {
3771 +    PyObject *resultobj;
3772 +    BossTaskException *arg1 = (BossTaskException *) 0 ;
3773 +    PyObject * obj0 = 0 ;
3774 +    
3775 +    if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTaskException",&obj0)) goto fail;
3776 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3777      {
3778          try {
3779 <            result = (PyObject *)BossTask_jobPrograms((BossTask const *)arg1,(std::string const &)*arg2);
3779 >            delete arg1;
3780              
3781 +        }catch (const BossSchedFailure & e) {
3782 +            PyErr_SetString ( SchedulerError, e.what() );
3783 +            return NULL;
3784          }catch (const std::exception& e) {
3785 <            SWIG_exception(SWIG_RuntimeError, e.what());
3785 >            PyErr_SetString ( BossError, e.what() );
3786 >            return NULL;
3787          }
3788      }
3789 <    resultobj = result;
3789 >    Py_INCREF(Py_None); resultobj = Py_None;
3790      return resultobj;
3791      fail:
3792      return NULL;
3793   }
3794  
3795  
3796 + static PyObject * BossTaskException_swigregister(PyObject *self, PyObject *args) {
3797 +    PyObject *obj;
3798 +    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3799 +    SWIG_TypeClientData(SWIGTYPE_p_BossTaskException, obj);
3800 +    Py_INCREF(obj);
3801 +    return Py_BuildValue((char *)"");
3802 + }
3803   static PyObject *_wrap_new_BossTask__SWIG_0(PyObject *self, PyObject *args) {
3804      PyObject *resultobj;
3805      BossDatabase *arg1 = (BossDatabase *) 0 ;
# Line 3559 | Line 3812 | static PyObject *_wrap_new_BossTask__SWI
3812          try {
3813              result = (BossTask *)new BossTask(arg1);
3814              
3815 +        }catch (const BossSchedFailure & e) {
3816 +            PyErr_SetString ( SchedulerError, e.what() );
3817 +            return NULL;
3818          }catch (const std::exception& e) {
3819 <            SWIG_exception(SWIG_RuntimeError, e.what());
3819 >            PyErr_SetString ( BossError, e.what() );
3820 >            return NULL;
3821          }
3822      }
3823      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
# Line 3593 | Line 3850 | static PyObject *_wrap_new_BossTask__SWI
3850          try {
3851              result = (BossTask *)new BossTask(arg1,(std::string const &)*arg2);
3852              
3853 +        }catch (const BossSchedFailure & e) {
3854 +            PyErr_SetString ( SchedulerError, e.what() );
3855 +            return NULL;
3856          }catch (const std::exception& e) {
3857 <            SWIG_exception(SWIG_RuntimeError, e.what());
3857 >            PyErr_SetString ( BossError, e.what() );
3858 >            return NULL;
3859          }
3860      }
3861      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
# Line 3615 | Line 3876 | static PyObject *_wrap_delete_BossTask(P
3876          try {
3877              delete arg1;
3878              
3879 +        }catch (const BossSchedFailure & e) {
3880 +            PyErr_SetString ( SchedulerError, e.what() );
3881 +            return NULL;
3882          }catch (const std::exception& e) {
3883 <            SWIG_exception(SWIG_RuntimeError, e.what());
3883 >            PyErr_SetString ( BossError, e.what() );
3884 >            return NULL;
3885          }
3886      }
3887      Py_INCREF(Py_None); resultobj = Py_None;
# Line 3641 | Line 3906 | static PyObject *_wrap_new_BossTask__SWI
3906          try {
3907              result = (BossTask *)new BossTask((BossTask const &)*arg1);
3908              
3909 +        }catch (const BossSchedFailure & e) {
3910 +            PyErr_SetString ( SchedulerError, e.what() );
3911 +            return NULL;
3912          }catch (const std::exception& e) {
3913 <            SWIG_exception(SWIG_RuntimeError, e.what());
3913 >            PyErr_SetString ( BossError, e.what() );
3914 >            return NULL;
3915          }
3916      }
3917      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
# Line 3732 | Line 4001 | static PyObject *_wrap_BossTask_id(PyObj
4001                  result = (std::string *) &_result_ref;
4002              }
4003              
4004 +        }catch (const BossSchedFailure & e) {
4005 +            PyErr_SetString ( SchedulerError, e.what() );
4006 +            return NULL;
4007          }catch (const std::exception& e) {
4008 <            SWIG_exception(SWIG_RuntimeError, e.what());
4008 >            PyErr_SetString ( BossError, e.what() );
4009 >            return NULL;
4010          }
4011      }
4012      {
# Line 3760 | Line 4033 | static PyObject *_wrap_BossTask_name(PyO
4033                  result = (std::string *) &_result_ref;
4034              }
4035              
4036 +        }catch (const BossSchedFailure & e) {
4037 +            PyErr_SetString ( SchedulerError, e.what() );
4038 +            return NULL;
4039          }catch (const std::exception& e) {
4040 <            SWIG_exception(SWIG_RuntimeError, e.what());
4040 >            PyErr_SetString ( BossError, e.what() );
4041 >            return NULL;
4042          }
4043      }
4044      {
# Line 3785 | Line 4062 | static PyObject *_wrap_BossTask_taskMap(
4062          try {
4063              result = ((BossTask const *)arg1)->taskMap();
4064              
4065 +        }catch (const BossSchedFailure & e) {
4066 +            PyErr_SetString ( SchedulerError, e.what() );
4067 +            return NULL;
4068          }catch (const std::exception& e) {
4069 <            SWIG_exception(SWIG_RuntimeError, e.what());
4069 >            PyErr_SetString ( BossError, e.what() );
4070 >            return NULL;
4071          }
4072      }
4073      {
# Line 3815 | Line 4096 | static PyObject *_wrap_BossTask_job_begi
4096          try {
4097              result = ((BossTask const *)arg1)->job_begin();
4098              
4099 +        }catch (const BossSchedFailure & e) {
4100 +            PyErr_SetString ( SchedulerError, e.what() );
4101 +            return NULL;
4102          }catch (const std::exception& e) {
4103 <            SWIG_exception(SWIG_RuntimeError, e.what());
4103 >            PyErr_SetString ( BossError, e.what() );
4104 >            return NULL;
4105          }
4106      }
4107      {
# Line 3842 | Line 4127 | static PyObject *_wrap_BossTask_job_end(
4127          try {
4128              result = ((BossTask const *)arg1)->job_end();
4129              
4130 +        }catch (const BossSchedFailure & e) {
4131 +            PyErr_SetString ( SchedulerError, e.what() );
4132 +            return NULL;
4133          }catch (const std::exception& e) {
4134 <            SWIG_exception(SWIG_RuntimeError, e.what());
4134 >            PyErr_SetString ( BossError, e.what() );
4135 >            return NULL;
4136          }
4137      }
4138      {
# Line 3869 | Line 4158 | static PyObject *_wrap_BossTask_jobsMap(
4158          try {
4159              result = ((BossTask const *)arg1)->jobsMap();
4160              
4161 +        }catch (const BossSchedFailure & e) {
4162 +            PyErr_SetString ( SchedulerError, e.what() );
4163 +            return NULL;
4164          }catch (const std::exception& e) {
4165 <            SWIG_exception(SWIG_RuntimeError, e.what());
4165 >            PyErr_SetString ( BossError, e.what() );
4166 >            return NULL;
4167          }
4168      }
4169      {
# Line 3907 | Line 4200 | static PyObject *_wrap_BossTask_jobMap__
4200          try {
4201              result = ((BossTask const *)arg1)->jobMap(arg2,*arg3);
4202              
4203 +        }catch (const BossSchedFailure & e) {
4204 +            PyErr_SetString ( SchedulerError, e.what() );
4205 +            return NULL;
4206          }catch (const std::exception& e) {
4207 <            SWIG_exception(SWIG_RuntimeError, e.what());
4207 >            PyErr_SetString ( BossError, e.what() );
4208 >            return NULL;
4209          }
4210      }
4211      {
# Line 3936 | Line 4233 | static PyObject *_wrap_BossTask_jobMap__
4233          try {
4234              result = ((BossTask const *)arg1)->jobMap(arg2);
4235              
4236 +        }catch (const BossSchedFailure & e) {
4237 +            PyErr_SetString ( SchedulerError, e.what() );
4238 +            return NULL;
4239          }catch (const std::exception& e) {
4240 <            SWIG_exception(SWIG_RuntimeError, e.what());
4240 >            PyErr_SetString ( BossError, e.what() );
4241 >            return NULL;
4242          }
4243      }
4244      {
# Line 4041 | Line 4342 | static PyObject *_wrap_BossTask_programs
4342          try {
4343              result = ((BossTask const *)arg1)->programsMap((BossJob const *)arg2);
4344              
4345 +        }catch (const BossSchedFailure & e) {
4346 +            PyErr_SetString ( SchedulerError, e.what() );
4347 +            return NULL;
4348          }catch (const std::exception& e) {
4349 <            SWIG_exception(SWIG_RuntimeError, e.what());
4349 >            PyErr_SetString ( BossError, e.what() );
4350 >            return NULL;
4351          }
4352      }
4353      {
# Line 4071 | Line 4376 | static PyObject *_wrap_BossTask_queryJob
4376          try {
4377              result = ((BossTask const *)arg1)->queryJobPrograms((BossJob const *)arg2);
4378              
4379 +        }catch (const BossSchedFailure & e) {
4380 +            PyErr_SetString ( SchedulerError, e.what() );
4381 +            return NULL;
4382          }catch (const std::exception& e) {
4383 <            SWIG_exception(SWIG_RuntimeError, e.what());
4383 >            PyErr_SetString ( BossError, e.what() );
4384 >            return NULL;
4385          }
4386      }
4387      {
# Line 4122 | Line 4431 | static PyObject *_wrap_BossTask_declare_
4431          try {
4432              (arg1)->declare((std::string const &)*arg2,(std::string const &)*arg3);
4433              
4434 +        }catch (const BossSchedFailure & e) {
4435 +            PyErr_SetString ( SchedulerError, e.what() );
4436 +            return NULL;
4437          }catch (const std::exception& e) {
4438 <            SWIG_exception(SWIG_RuntimeError, e.what());
4438 >            PyErr_SetString ( BossError, e.what() );
4439 >            return NULL;
4440          }
4441      }
4442      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4161 | Line 4474 | static PyObject *_wrap_BossTask_declare_
4474          try {
4475              (arg1)->declare(arg2,(std::string const &)*arg3);
4476              
4477 +        }catch (const BossSchedFailure & e) {
4478 +            PyErr_SetString ( SchedulerError, e.what() );
4479 +            return NULL;
4480          }catch (const std::exception& e) {
4481 <            SWIG_exception(SWIG_RuntimeError, e.what());
4481 >            PyErr_SetString ( BossError, e.what() );
4482 >            return NULL;
4483          }
4484      }
4485      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4260 | Line 4577 | static PyObject *_wrap_BossTask_remove(P
4577          try {
4578              (arg1)->remove();
4579              
4580 +        }catch (const BossSchedFailure & e) {
4581 +            PyErr_SetString ( SchedulerError, e.what() );
4582 +            return NULL;
4583          }catch (const std::exception& e) {
4584 <            SWIG_exception(SWIG_RuntimeError, e.what());
4584 >            PyErr_SetString ( BossError, e.what() );
4585 >            return NULL;
4586          }
4587      }
4588      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4296 | Line 4617 | static PyObject *_wrap_BossTask_archive(
4617          try {
4618              (arg1)->archive((std::string const &)*arg2);
4619              
4620 +        }catch (const BossSchedFailure & e) {
4621 +            PyErr_SetString ( SchedulerError, e.what() );
4622 +            return NULL;
4623          }catch (const std::exception& e) {
4624 <            SWIG_exception(SWIG_RuntimeError, e.what());
4624 >            PyErr_SetString ( BossError, e.what() );
4625 >            return NULL;
4626          }
4627      }
4628      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4320 | Line 4645 | static PyObject *_wrap_BossTask_submit(P
4645      std::string *arg5 = (std::string *) &arg5_defvalue ;
4646      std::string const &arg6_defvalue = "" ;
4647      std::string *arg6 = (std::string *) &arg6_defvalue ;
4648 <    bool arg7 = (bool) false ;
4648 >    unsigned int arg7 = (unsigned int) 0 ;
4649 >    bool arg8 = (bool) false ;
4650      int result;
4651      std::string temp2 ;
4652      std::string temp3 ;
# Line 4334 | Line 4660 | static PyObject *_wrap_BossTask_submit(P
4660      PyObject * obj4 = 0 ;
4661      PyObject * obj5 = 0 ;
4662      PyObject * obj6 = 0 ;
4663 +    PyObject * obj7 = 0 ;
4664      
4665 <    if(!PyArg_ParseTuple(args,(char *)"O|OOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4665 >    if(!PyArg_ParseTuple(args,(char *)"O|OOOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4666      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4667      if (obj1) {
4668          {
# Line 4388 | Line 4715 | static PyObject *_wrap_BossTask_submit(P
4715          }
4716      }
4717      if (obj6) {
4718 <        arg7 = PyInt_AsLong(obj6) ? true : false;
4718 >        arg7 = (unsigned int) PyInt_AsLong(obj6);
4719 >        if (PyErr_Occurred()) SWIG_fail;
4720 >    }
4721 >    if (obj7) {
4722 >        arg8 = PyInt_AsLong(obj7) ? true : false;
4723          if (PyErr_Occurred()) SWIG_fail;
4724      }
4725      {
4726          try {
4727 <            result = (int)(arg1)->submit((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7);
4727 >            result = (int)(arg1)->submit((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7,arg8);
4728              
4729 +        }catch (const BossSchedFailure & e) {
4730 +            PyErr_SetString ( SchedulerError, e.what() );
4731 +            return NULL;
4732          }catch (const std::exception& e) {
4733 <            SWIG_exception(SWIG_RuntimeError, e.what());
4733 >            PyErr_SetString ( BossError, e.what() );
4734 >            return NULL;
4735          }
4736      }
4737      resultobj = PyInt_FromLong((long)result);
# Line 4435 | Line 4770 | static PyObject *_wrap_BossTask_reSubmit
4770          try {
4771              result = (int)(arg1)->reSubmit((std::string const &)*arg2,arg3);
4772              
4773 +        }catch (const BossSchedFailure & e) {
4774 +            PyErr_SetString ( SchedulerError, e.what() );
4775 +            return NULL;
4776          }catch (const std::exception& e) {
4777 <            SWIG_exception(SWIG_RuntimeError, e.what());
4777 >            PyErr_SetString ( BossError, e.what() );
4778 >            return NULL;
4779          }
4780      }
4781      resultobj = PyInt_FromLong((long)result);
# Line 4450 | Line 4789 | static PyObject *_wrap_BossTask_kill(PyO
4789      PyObject *resultobj;
4790      BossTask *arg1 = (BossTask *) 0 ;
4791      std::string *arg2 = 0 ;
4792 <    bool arg3 = (bool) false ;
4792 >    unsigned int arg3 = (unsigned int) 0 ;
4793 >    bool arg4 = (bool) false ;
4794      int result;
4795      std::string temp2 ;
4796      PyObject * obj0 = 0 ;
4797      PyObject * obj1 = 0 ;
4798      PyObject * obj2 = 0 ;
4799 +    PyObject * obj3 = 0 ;
4800      
4801 <    if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_kill",&obj0,&obj1,&obj2)) goto fail;
4801 >    if(!PyArg_ParseTuple(args,(char *)"OO|OO:BossTask_kill",&obj0,&obj1,&obj2,&obj3)) goto fail;
4802      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4803      {
4804          if (PyString_Check(obj1)) {
# Line 4468 | Line 4809 | static PyObject *_wrap_BossTask_kill(PyO
4809          }
4810      }
4811      if (obj2) {
4812 <        arg3 = PyInt_AsLong(obj2) ? true : false;
4812 >        arg3 = (unsigned int) PyInt_AsLong(obj2);
4813 >        if (PyErr_Occurred()) SWIG_fail;
4814 >    }
4815 >    if (obj3) {
4816 >        arg4 = PyInt_AsLong(obj3) ? true : false;
4817          if (PyErr_Occurred()) SWIG_fail;
4818      }
4819      {
4820          try {
4821 <            result = (int)(arg1)->kill((std::string const &)*arg2,arg3);
4821 >            result = (int)(arg1)->kill((std::string const &)*arg2,arg3,arg4);
4822              
4823 +        }catch (const BossSchedFailure & e) {
4824 +            PyErr_SetString ( SchedulerError, e.what() );
4825 +            return NULL;
4826          }catch (const std::exception& e) {
4827 <            SWIG_exception(SWIG_RuntimeError, e.what());
4827 >            PyErr_SetString ( BossError, e.what() );
4828 >            return NULL;
4829          }
4830      }
4831      resultobj = PyInt_FromLong((long)result);
# Line 4493 | Line 4842 | static PyObject *_wrap_BossTask_getOutpu
4842      std::string *arg2 = (std::string *) &arg2_defvalue ;
4843      std::string const &arg3_defvalue = "" ;
4844      std::string *arg3 = (std::string *) &arg3_defvalue ;
4845 <    bool arg4 = (bool) false ;
4845 >    unsigned int arg4 = (unsigned int) 0 ;
4846      bool arg5 = (bool) false ;
4847 +    bool arg6 = (bool) false ;
4848      int result;
4849      std::string temp2 ;
4850      std::string temp3 ;
# Line 4503 | Line 4853 | static PyObject *_wrap_BossTask_getOutpu
4853      PyObject * obj2 = 0 ;
4854      PyObject * obj3 = 0 ;
4855      PyObject * obj4 = 0 ;
4856 +    PyObject * obj5 = 0 ;
4857      
4858 <    if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4858 >    if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4859      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4860      if (obj1) {
4861          {
# Line 4527 | Line 4878 | static PyObject *_wrap_BossTask_getOutpu
4878          }
4879      }
4880      if (obj3) {
4881 <        arg4 = PyInt_AsLong(obj3) ? true : false;
4881 >        arg4 = (unsigned int) PyInt_AsLong(obj3);
4882          if (PyErr_Occurred()) SWIG_fail;
4883      }
4884      if (obj4) {
4885          arg5 = PyInt_AsLong(obj4) ? true : false;
4886          if (PyErr_Occurred()) SWIG_fail;
4887      }
4888 <    {
4889 <        try {
4539 <            result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5);
4540 <            
4541 <        }catch (const std::exception& e) {
4542 <            SWIG_exception(SWIG_RuntimeError, e.what());
4543 <        }
4544 <    }
4545 <    resultobj = PyInt_FromLong((long)result);
4546 <    return resultobj;
4547 <    fail:
4548 <    return NULL;
4549 < }
4550 <
4551 <
4552 < static PyObject *_wrap_BossTask_getAllOutput(PyObject *self, PyObject *args) {
4553 <    PyObject *resultobj;
4554 <    BossTask *arg1 = (BossTask *) 0 ;
4555 <    std::string const &arg2_defvalue = "" ;
4556 <    std::string *arg2 = (std::string *) &arg2_defvalue ;
4557 <    bool arg3 = (bool) false ;
4558 <    bool arg4 = (bool) false ;
4559 <    int result;
4560 <    std::string temp2 ;
4561 <    PyObject * obj0 = 0 ;
4562 <    PyObject * obj1 = 0 ;
4563 <    PyObject * obj2 = 0 ;
4564 <    PyObject * obj3 = 0 ;
4565 <    
4566 <    if(!PyArg_ParseTuple(args,(char *)"O|OOO:BossTask_getAllOutput",&obj0,&obj1,&obj2,&obj3)) goto fail;
4567 <    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4568 <    if (obj1) {
4569 <        {
4570 <            if (PyString_Check(obj1)) {
4571 <                temp2 = std::string(PyString_AsString(obj1));
4572 <                arg2 = &temp2;
4573 <            }else {
4574 <                SWIG_exception(SWIG_TypeError, "string expected");
4575 <            }
4576 <        }
4577 <    }
4578 <    if (obj2) {
4579 <        arg3 = PyInt_AsLong(obj2) ? true : false;
4580 <        if (PyErr_Occurred()) SWIG_fail;
4581 <    }
4582 <    if (obj3) {
4583 <        arg4 = PyInt_AsLong(obj3) ? true : false;
4888 >    if (obj5) {
4889 >        arg6 = PyInt_AsLong(obj5) ? true : false;
4890          if (PyErr_Occurred()) SWIG_fail;
4891      }
4892      {
4893          try {
4894 <            result = (int)(arg1)->getAllOutput((std::string const &)*arg2,arg3,arg4);
4894 >            result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6);
4895              
4896 +        }catch (const BossSchedFailure & e) {
4897 +            PyErr_SetString ( SchedulerError, e.what() );
4898 +            return NULL;
4899          }catch (const std::exception& e) {
4900 <            SWIG_exception(SWIG_RuntimeError, e.what());
4900 >            PyErr_SetString ( BossError, e.what() );
4901 >            return NULL;
4902          }
4903      }
4904      resultobj = PyInt_FromLong((long)result);
# Line 4679 | Line 4989 | static PyObject *_wrap_BossTask_load(PyO
4989          try {
4990              result = (int)(arg1)->load(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8);
4991              
4992 +        }catch (const BossSchedFailure & e) {
4993 +            PyErr_SetString ( SchedulerError, e.what() );
4994 +            return NULL;
4995          }catch (const std::exception& e) {
4996 <            SWIG_exception(SWIG_RuntimeError, e.what());
4996 >            PyErr_SetString ( BossError, e.what() );
4997 >            return NULL;
4998          }
4999      }
5000      resultobj = PyInt_FromLong((long)result);
# Line 4702 | Line 5016 | static PyObject *_wrap_BossTask_query(Py
5016      std::string arg6 = (std::string) "" ;
5017      std::string arg7 = (std::string) "" ;
5018      std::string arg8 = (std::string) "" ;
5019 <    bool arg9 = (bool) false ;
5019 >    unsigned int arg9 = (unsigned int) 0 ;
5020 >    bool arg10 = (bool) false ;
5021      int result;
5022      std::string temp3 ;
5023      std::string temp4 ;
# Line 4714 | Line 5029 | static PyObject *_wrap_BossTask_query(Py
5029      PyObject * obj6 = 0 ;
5030      PyObject * obj7 = 0 ;
5031      PyObject * obj8 = 0 ;
5032 +    PyObject * obj9 = 0 ;
5033      
5034 <    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5034 >    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
5035      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5036      if (obj2) {
5037          {
# Line 4770 | Line 5086 | static PyObject *_wrap_BossTask_query(Py
5086          }
5087      }
5088      if (obj8) {
5089 <        arg9 = PyInt_AsLong(obj8) ? true : false;
5089 >        arg9 = (unsigned int) PyInt_AsLong(obj8);
5090 >        if (PyErr_Occurred()) SWIG_fail;
5091 >    }
5092 >    if (obj9) {
5093 >        arg10 = PyInt_AsLong(obj9) ? true : false;
5094          if (PyErr_Occurred()) SWIG_fail;
5095      }
5096      {
5097          try {
5098 <            result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9);
5098 >            result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5099              
5100 +        }catch (const BossSchedFailure & e) {
5101 +            PyErr_SetString ( SchedulerError, e.what() );
5102 +            return NULL;
5103          }catch (const std::exception& e) {
5104 <            SWIG_exception(SWIG_RuntimeError, e.what());
5104 >            PyErr_SetString ( BossError, e.what() );
5105 >            return NULL;
5106          }
5107      }
5108      resultobj = PyInt_FromLong((long)result);
# Line 4836 | Line 5160 | static PyObject *_wrap_BossTask_query_ou
5160          try {
5161              ((BossTask const *)arg1)->query_out(*arg2,(jobStates const &)*arg3,(printOption const &)*arg4,arg5);
5162              
5163 +        }catch (const BossSchedFailure & e) {
5164 +            PyErr_SetString ( SchedulerError, e.what() );
5165 +            return NULL;
5166          }catch (const std::exception& e) {
5167 <            SWIG_exception(SWIG_RuntimeError, e.what());
5167 >            PyErr_SetString ( BossError, e.what() );
5168 >            return NULL;
5169          }
5170      }
5171      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4858 | Line 5186 | static PyObject *_wrap_BossTask_clear(Py
5186          try {
5187              (arg1)->clear();
5188              
5189 +        }catch (const BossSchedFailure & e) {
5190 +            PyErr_SetString ( SchedulerError, e.what() );
5191 +            return NULL;
5192 +        }catch (const std::exception& e) {
5193 +            PyErr_SetString ( BossError, e.what() );
5194 +            return NULL;
5195 +        }
5196 +    }
5197 +    Py_INCREF(Py_None); resultobj = Py_None;
5198 +    return resultobj;
5199 +    fail:
5200 +    return NULL;
5201 + }
5202 +
5203 +
5204 + static PyObject *_wrap_BossTask_appendToPyDict(PyObject *self, PyObject *args) {
5205 +    PyObject *resultobj;
5206 +    BossTask *arg1 = (BossTask *) 0 ;
5207 +    PyObject *arg2 = (PyObject *) 0 ;
5208 +    BossAttributeContainer *arg3 = 0 ;
5209 +    PyObject * obj0 = 0 ;
5210 +    PyObject * obj1 = 0 ;
5211 +    PyObject * obj2 = 0 ;
5212 +    
5213 +    if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_appendToPyDict",&obj0,&obj1,&obj2)) goto fail;
5214 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5215 +    arg2 = obj1;
5216 +    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_BossAttributeContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5217 +    if (arg3 == NULL) {
5218 +        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5219 +    }
5220 +    {
5221 +        try {
5222 +            BossTask_appendToPyDict((BossTask const *)arg1,arg2,(BossAttributeContainer const &)*arg3);
5223 +            
5224 +        }catch (const BossSchedFailure & e) {
5225 +            PyErr_SetString ( SchedulerError, e.what() );
5226 +            return NULL;
5227 +        }catch (const std::exception& e) {
5228 +            PyErr_SetString ( BossError, e.what() );
5229 +            return NULL;
5230 +        }
5231 +    }
5232 +    Py_INCREF(Py_None); resultobj = Py_None;
5233 +    return resultobj;
5234 +    fail:
5235 +    return NULL;
5236 + }
5237 +
5238 +
5239 + static PyObject *_wrap_BossTask_jobDict(PyObject *self, PyObject *args) {
5240 +    PyObject *resultobj;
5241 +    BossTask *arg1 = (BossTask *) 0 ;
5242 +    std::vector<BossJob * >::const_iterator *arg2 = 0 ;
5243 +    PyObject *arg3 = (PyObject *) 0 ;
5244 +    PyObject * obj0 = 0 ;
5245 +    PyObject * obj1 = 0 ;
5246 +    PyObject * obj2 = 0 ;
5247 +    
5248 +    if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobDict",&obj0,&obj1,&obj2)) goto fail;
5249 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5250 +    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5251 +    if (arg2 == NULL) {
5252 +        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5253 +    }
5254 +    arg3 = obj2;
5255 +    {
5256 +        try {
5257 +            BossTask_jobDict((BossTask const *)arg1,*arg2,arg3);
5258 +            
5259 +        }catch (const BossSchedFailure & e) {
5260 +            PyErr_SetString ( SchedulerError, e.what() );
5261 +            return NULL;
5262          }catch (const std::exception& e) {
5263 <            SWIG_exception(SWIG_RuntimeError, e.what());
5263 >            PyErr_SetString ( BossError, e.what() );
5264 >            return NULL;
5265          }
5266      }
5267      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4869 | Line 5271 | static PyObject *_wrap_BossTask_clear(Py
5271   }
5272  
5273  
5274 + static PyObject *_wrap_BossTask_jobsDict(PyObject *self, PyObject *args) {
5275 +    PyObject *resultobj;
5276 +    BossTask *arg1 = (BossTask *) 0 ;
5277 +    PyObject *result;
5278 +    PyObject * obj0 = 0 ;
5279 +    
5280 +    if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsDict",&obj0)) goto fail;
5281 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5282 +    {
5283 +        try {
5284 +            result = (PyObject *)BossTask_jobsDict(arg1);
5285 +            
5286 +        }catch (const BossSchedFailure & e) {
5287 +            PyErr_SetString ( SchedulerError, e.what() );
5288 +            return NULL;
5289 +        }catch (const std::exception& e) {
5290 +            PyErr_SetString ( BossError, e.what() );
5291 +            return NULL;
5292 +        }
5293 +    }
5294 +    resultobj = result;
5295 +    return resultobj;
5296 +    fail:
5297 +    return NULL;
5298 + }
5299 +
5300 +
5301 + static PyObject *_wrap_BossTask_progDict(PyObject *self, PyObject *args) {
5302 +    PyObject *resultobj;
5303 +    BossTask *arg1 = (BossTask *) 0 ;
5304 +    std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *arg2 = 0 ;
5305 +    PyObject *result;
5306 +    PyObject * obj0 = 0 ;
5307 +    PyObject * obj1 = 0 ;
5308 +    
5309 +    if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_progDict",&obj0,&obj1)) goto fail;
5310 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5311 +    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5312 +    if (arg2 == NULL) {
5313 +        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5314 +    }
5315 +    {
5316 +        try {
5317 +            result = (PyObject *)BossTask_progDict((BossTask const *)arg1,*arg2);
5318 +            
5319 +        }catch (const BossSchedFailure & e) {
5320 +            PyErr_SetString ( SchedulerError, e.what() );
5321 +            return NULL;
5322 +        }catch (const std::exception& e) {
5323 +            PyErr_SetString ( BossError, e.what() );
5324 +            return NULL;
5325 +        }
5326 +    }
5327 +    resultobj = result;
5328 +    return resultobj;
5329 +    fail:
5330 +    return NULL;
5331 + }
5332 +
5333 +
5334 + static PyObject *_wrap_BossTask_jobPrograms(PyObject *self, PyObject *args) {
5335 +    PyObject *resultobj;
5336 +    BossTask *arg1 = (BossTask *) 0 ;
5337 +    std::string *arg2 = 0 ;
5338 +    PyObject *result;
5339 +    std::string temp2 ;
5340 +    PyObject * obj0 = 0 ;
5341 +    PyObject * obj1 = 0 ;
5342 +    
5343 +    if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobPrograms",&obj0,&obj1)) goto fail;
5344 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5345 +    {
5346 +        if (PyString_Check(obj1)) {
5347 +            temp2 = std::string(PyString_AsString(obj1));
5348 +            arg2 = &temp2;
5349 +        }else {
5350 +            SWIG_exception(SWIG_TypeError, "string expected");
5351 +        }
5352 +    }
5353 +    {
5354 +        try {
5355 +            result = (PyObject *)BossTask_jobPrograms((BossTask const *)arg1,(std::string const &)*arg2);
5356 +            
5357 +        }catch (const BossSchedFailure & e) {
5358 +            PyErr_SetString ( SchedulerError, e.what() );
5359 +            return NULL;
5360 +        }catch (const std::exception& e) {
5361 +            PyErr_SetString ( BossError, e.what() );
5362 +            return NULL;
5363 +        }
5364 +    }
5365 +    resultobj = result;
5366 +    return resultobj;
5367 +    fail:
5368 +    return NULL;
5369 + }
5370 +
5371 +
5372   static PyObject * BossTask_swigregister(PyObject *self, PyObject *args) {
5373      PyObject *obj;
5374      if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
# Line 4879 | Line 5379 | static PyObject * BossTask_swigregister(
5379   static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) {
5380      PyObject *resultobj;
5381      std::string arg1 = (std::string) "" ;
5382 <    bool arg2 = (bool) false ;
5382 >    std::string arg2 = (std::string) "2" ;
5383 >    std::string arg3 = (std::string) "" ;
5384 >    std::string arg4 = (std::string) "" ;
5385 >    bool arg5 = (bool) false ;
5386      BossAdministratorSession *result;
5387      PyObject * obj0 = 0 ;
5388      PyObject * obj1 = 0 ;
5389 +    PyObject * obj2 = 0 ;
5390 +    PyObject * obj3 = 0 ;
5391 +    PyObject * obj4 = 0 ;
5392      
5393 <    if(!PyArg_ParseTuple(args,(char *)"|OO:new_BossAdministratorSession",&obj0,&obj1)) goto fail;
5393 >    if(!PyArg_ParseTuple(args,(char *)"|OOOOO:new_BossAdministratorSession",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5394      if (obj0) {
5395          {
5396              if (PyString_Check(obj0))
# Line 4894 | Line 5400 | static PyObject *_wrap_new_BossAdministr
5400          }
5401      }
5402      if (obj1) {
5403 <        arg2 = PyInt_AsLong(obj1) ? true : false;
5403 >        {
5404 >            if (PyString_Check(obj1))
5405 >            arg2 = std::string(PyString_AsString(obj1));
5406 >            else
5407 >            SWIG_exception(SWIG_TypeError, "string expected");
5408 >        }
5409 >    }
5410 >    if (obj2) {
5411 >        {
5412 >            if (PyString_Check(obj2))
5413 >            arg3 = std::string(PyString_AsString(obj2));
5414 >            else
5415 >            SWIG_exception(SWIG_TypeError, "string expected");
5416 >        }
5417 >    }
5418 >    if (obj3) {
5419 >        {
5420 >            if (PyString_Check(obj3))
5421 >            arg4 = std::string(PyString_AsString(obj3));
5422 >            else
5423 >            SWIG_exception(SWIG_TypeError, "string expected");
5424 >        }
5425 >    }
5426 >    if (obj4) {
5427 >        arg5 = PyInt_AsLong(obj4) ? true : false;
5428          if (PyErr_Occurred()) SWIG_fail;
5429      }
5430      {
5431          try {
5432 <            result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2);
5432 >            result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2,arg3,arg4,arg5);
5433              
5434 +        }catch (const BossSchedFailure & e) {
5435 +            PyErr_SetString ( SchedulerError, e.what() );
5436 +            return NULL;
5437          }catch (const std::exception& e) {
5438 <            SWIG_exception(SWIG_RuntimeError, e.what());
5438 >            PyErr_SetString ( BossError, e.what() );
5439 >            return NULL;
5440          }
5441      }
5442      resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossAdministratorSession, 1);
# Line 4923 | Line 5457 | static PyObject *_wrap_delete_BossAdmini
5457          try {
5458              delete arg1;
5459              
5460 +        }catch (const BossSchedFailure & e) {
5461 +            PyErr_SetString ( SchedulerError, e.what() );
5462 +            return NULL;
5463          }catch (const std::exception& e) {
5464 <            SWIG_exception(SWIG_RuntimeError, e.what());
5464 >            PyErr_SetString ( BossError, e.what() );
5465 >            return NULL;
5466          }
5467      }
5468      Py_INCREF(Py_None); resultobj = Py_None;
# Line 4946 | Line 5484 | static PyObject *_wrap_BossAdministrator
5484          try {
5485              result = (int)(arg1)->configureDB();
5486              
5487 +        }catch (const BossSchedFailure & e) {
5488 +            PyErr_SetString ( SchedulerError, e.what() );
5489 +            return NULL;
5490          }catch (const std::exception& e) {
5491 <            SWIG_exception(SWIG_RuntimeError, e.what());
5491 >            PyErr_SetString ( BossError, e.what() );
5492 >            return NULL;
5493          }
5494      }
5495      resultobj = PyInt_FromLong((long)result);
# Line 4980 | Line 5522 | static PyObject *_wrap_BossAdministrator
5522          try {
5523              result = (int)(arg1)->configureRTMonDB((std::string const &)*arg2);
5524              
5525 +        }catch (const BossSchedFailure & e) {
5526 +            PyErr_SetString ( SchedulerError, e.what() );
5527 +            return NULL;
5528          }catch (const std::exception& e) {
5529 <            SWIG_exception(SWIG_RuntimeError, e.what());
5529 >            PyErr_SetString ( BossError, e.what() );
5530 >            return NULL;
5531          }
5532      }
5533      resultobj = PyInt_FromLong((long)result);
# Line 5014 | Line 5560 | static PyObject *_wrap_BossAdministrator
5560          try {
5561              result = (int)(arg1)->deleteCHTool((std::string const &)*arg2);
5562              
5563 +        }catch (const BossSchedFailure & e) {
5564 +            PyErr_SetString ( SchedulerError, e.what() );
5565 +            return NULL;
5566          }catch (const std::exception& e) {
5567 <            SWIG_exception(SWIG_RuntimeError, e.what());
5567 >            PyErr_SetString ( BossError, e.what() );
5568 >            return NULL;
5569          }
5570      }
5571      resultobj = PyInt_FromLong((long)result);
# Line 5048 | Line 5598 | static PyObject *_wrap_BossAdministrator
5598          try {
5599              result = (int)(arg1)->deleteProgramType((std::string const &)*arg2);
5600              
5601 +        }catch (const BossSchedFailure & e) {
5602 +            PyErr_SetString ( SchedulerError, e.what() );
5603 +            return NULL;
5604          }catch (const std::exception& e) {
5605 <            SWIG_exception(SWIG_RuntimeError, e.what());
5605 >            PyErr_SetString ( BossError, e.what() );
5606 >            return NULL;
5607          }
5608      }
5609      resultobj = PyInt_FromLong((long)result);
# Line 5082 | Line 5636 | static PyObject *_wrap_BossAdministrator
5636          try {
5637              result = (int)(arg1)->deleteRTMon((std::string const &)*arg2);
5638              
5639 +        }catch (const BossSchedFailure & e) {
5640 +            PyErr_SetString ( SchedulerError, e.what() );
5641 +            return NULL;
5642          }catch (const std::exception& e) {
5643 <            SWIG_exception(SWIG_RuntimeError, e.what());
5643 >            PyErr_SetString ( BossError, e.what() );
5644 >            return NULL;
5645          }
5646      }
5647      resultobj = PyInt_FromLong((long)result);
# Line 5116 | Line 5674 | static PyObject *_wrap_BossAdministrator
5674          try {
5675              result = (int)(arg1)->deleteScheduler((std::string const &)*arg2);
5676              
5677 +        }catch (const BossSchedFailure & e) {
5678 +            PyErr_SetString ( SchedulerError, e.what() );
5679 +            return NULL;
5680          }catch (const std::exception& e) {
5681 <            SWIG_exception(SWIG_RuntimeError, e.what());
5681 >            PyErr_SetString ( BossError, e.what() );
5682 >            return NULL;
5683          }
5684      }
5685      resultobj = PyInt_FromLong((long)result);
# Line 5182 | Line 5744 | static PyObject *_wrap_BossAdministrator
5744          try {
5745              result = (int)(arg1)->registerCHTool((std::string const &)*arg2,arg3,arg4,arg5,arg6);
5746              
5747 +        }catch (const BossSchedFailure & e) {
5748 +            PyErr_SetString ( SchedulerError, e.what() );
5749 +            return NULL;
5750          }catch (const std::exception& e) {
5751 <            SWIG_exception(SWIG_RuntimeError, e.what());
5751 >            PyErr_SetString ( BossError, e.what() );
5752 >            return NULL;
5753          }
5754      }
5755      resultobj = PyInt_FromLong((long)result);
# Line 5272 | Line 5838 | static PyObject *_wrap_BossAdministrator
5838          try {
5839              result = (int)(arg1)->registerProgram((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5840              
5841 +        }catch (const BossSchedFailure & e) {
5842 +            PyErr_SetString ( SchedulerError, e.what() );
5843 +            return NULL;
5844          }catch (const std::exception& e) {
5845 <            SWIG_exception(SWIG_RuntimeError, e.what());
5845 >            PyErr_SetString ( BossError, e.what() );
5846 >            return NULL;
5847          }
5848      }
5849      resultobj = PyInt_FromLong((long)result);
# Line 5348 | Line 5918 | static PyObject *_wrap_BossAdministrator
5918          try {
5919              result = (int)(arg1)->registerRTMon((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7);
5920              
5921 +        }catch (const BossSchedFailure & e) {
5922 +            PyErr_SetString ( SchedulerError, e.what() );
5923 +            return NULL;
5924          }catch (const std::exception& e) {
5925 <            SWIG_exception(SWIG_RuntimeError, e.what());
5925 >            PyErr_SetString ( BossError, e.what() );
5926 >            return NULL;
5927          }
5928      }
5929      resultobj = PyInt_FromLong((long)result);
# Line 5377 | Line 5951 | static PyObject *_wrap_BossAdministrator
5951      std::string arg13 = (std::string) "" ;
5952      bool arg14 = (bool) false ;
5953      bool arg15 = (bool) false ;
5954 +    bool arg16 = (bool) false ;
5955 +    bool arg17 = (bool) false ;
5956      int result;
5957      std::string temp2 ;
5958      std::string temp11 ;
# Line 5395 | Line 5971 | static PyObject *_wrap_BossAdministrator
5971      PyObject * obj12 = 0 ;
5972      PyObject * obj13 = 0 ;
5973      PyObject * obj14 = 0 ;
5974 +    PyObject * obj15 = 0 ;
5975 +    PyObject * obj16 = 0 ;
5976      
5977 <    if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOOOOOOOOO:BossAdministratorSession_registerScheduler",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14)) goto fail;
5977 >    if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOOOOOOOOOOO:BossAdministratorSession_registerScheduler",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) goto fail;
5978      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5979      {
5980          if (PyString_Check(obj1)) {
# Line 5504 | Line 6082 | static PyObject *_wrap_BossAdministrator
6082          arg15 = PyInt_AsLong(obj14) ? true : false;
6083          if (PyErr_Occurred()) SWIG_fail;
6084      }
6085 +    if (obj15) {
6086 +        arg16 = PyInt_AsLong(obj15) ? true : false;
6087 +        if (PyErr_Occurred()) SWIG_fail;
6088 +    }
6089 +    if (obj16) {
6090 +        arg17 = PyInt_AsLong(obj16) ? true : false;
6091 +        if (PyErr_Occurred()) SWIG_fail;
6092 +    }
6093      {
6094          try {
6095 <            result = (int)(arg1)->registerScheduler((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(std::string const &)*arg11,arg12,arg13,arg14,arg15);
6095 >            result = (int)(arg1)->registerScheduler((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(std::string const &)*arg11,arg12,arg13,arg14,arg15,arg16,arg17);
6096              
6097 +        }catch (const BossSchedFailure & e) {
6098 +            PyErr_SetString ( SchedulerError, e.what() );
6099 +            return NULL;
6100          }catch (const std::exception& e) {
6101 <            SWIG_exception(SWIG_RuntimeError, e.what());
6101 >            PyErr_SetString ( BossError, e.what() );
6102 >            return NULL;
6103          }
6104      }
6105      resultobj = PyInt_FromLong((long)result);
# Line 5531 | Line 6121 | static PyObject *_wrap_BossAdministrator
6121          try {
6122              result = (arg1)->help();
6123              
6124 +        }catch (const BossSchedFailure & e) {
6125 +            PyErr_SetString ( SchedulerError, e.what() );
6126 +            return NULL;
6127          }catch (const std::exception& e) {
6128 <            SWIG_exception(SWIG_RuntimeError, e.what());
6128 >            PyErr_SetString ( BossError, e.what() );
6129 >            return NULL;
6130          }
6131      }
6132      {
# Line 5570 | Line 6164 | static PyObject *_wrap_BossAdministrator
6164          try {
6165              result = (arg1)->SQL(arg2,arg3);
6166              
6167 +        }catch (const BossSchedFailure & e) {
6168 +            PyErr_SetString ( SchedulerError, e.what() );
6169 +            return NULL;
6170          }catch (const std::exception& e) {
6171 <            SWIG_exception(SWIG_RuntimeError, e.what());
6171 >            PyErr_SetString ( BossError, e.what() );
6172 >            return NULL;
6173          }
6174      }
6175      {
# Line 5642 | Line 6240 | static PyObject *_wrap_BossAdministrator
6240          try {
6241              result = (int)(arg1)->purge((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
6242              
6243 +        }catch (const BossSchedFailure & e) {
6244 +            PyErr_SetString ( SchedulerError, e.what() );
6245 +            return NULL;
6246          }catch (const std::exception& e) {
6247 <            SWIG_exception(SWIG_RuntimeError, e.what());
6247 >            PyErr_SetString ( BossError, e.what() );
6248 >            return NULL;
6249          }
6250      }
6251      resultobj = PyInt_FromLong((long)result);
# Line 5673 | Line 6275 | static PyObject *_wrap_BossAdministrator
6275          try {
6276              result = (int)(arg1)->registerPlugins(arg2);
6277              
6278 +        }catch (const BossSchedFailure & e) {
6279 +            PyErr_SetString ( SchedulerError, e.what() );
6280 +            return NULL;
6281          }catch (const std::exception& e) {
6282 <            SWIG_exception(SWIG_RuntimeError, e.what());
6282 >            PyErr_SetString ( BossError, e.what() );
6283 >            return NULL;
6284          }
6285      }
6286      resultobj = PyInt_FromLong((long)result);
# Line 5721 | Line 6327 | static PyMethodDef SwigMethods[] = {
6327           { (char *)"vector_string___delslice__", _wrap_vector_string___delslice__, METH_VARARGS },
6328           { (char *)"delete_vector_string", _wrap_delete_vector_string, METH_VARARGS },
6329           { (char *)"vector_string_swigregister", vector_string_swigregister, METH_VARARGS },
5724         { (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS },
5725         { (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS },
5726         { (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS },
5727         { (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS },
5728         { (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS },
5729         { (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS },
5730         { (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS },
6330           { (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS },
6331           { (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS },
6332           { (char *)"BossSession_resetDB", _wrap_BossSession_resetDB, METH_VARARGS },
6333           { (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS },
6334           { (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS },
6335           { (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS },
6336 +         { (char *)"BossSession_showCHTools", _wrap_BossSession_showCHTools, METH_VARARGS },
6337 +         { (char *)"BossSession_showProgramTypes", _wrap_BossSession_showProgramTypes, METH_VARARGS },
6338 +         { (char *)"BossSession_showRTMon", _wrap_BossSession_showRTMon, METH_VARARGS },
6339 +         { (char *)"BossSession_showSchedulers", _wrap_BossSession_showSchedulers, METH_VARARGS },
6340           { (char *)"BossSession_defaultCHTool", _wrap_BossSession_defaultCHTool, METH_VARARGS },
6341           { (char *)"BossSession_defaultProgramType", _wrap_BossSession_defaultProgramType, METH_VARARGS },
6342           { (char *)"BossSession_defaultRTMon", _wrap_BossSession_defaultRTMon, METH_VARARGS },
# Line 5746 | Line 6349 | static PyMethodDef SwigMethods[] = {
6349           { (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS },
6350           { (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS },
6351           { (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS },
6352 +         { (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS },
6353 +         { (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS },
6354 +         { (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS },
6355 +         { (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS },
6356 +         { (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS },
6357 +         { (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS },
6358 +         { (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS },
6359           { (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS },
6360           { (char *)"BossTaskException_key_set", _wrap_BossTaskException_key_set, METH_VARARGS },
6361           { (char *)"BossTaskException_key_get", _wrap_BossTaskException_key_get, METH_VARARGS },
# Line 5753 | Line 6363 | static PyMethodDef SwigMethods[] = {
6363           { (char *)"BossTaskException_what", _wrap_BossTaskException_what, METH_VARARGS },
6364           { (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS },
6365           { (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS },
5756         { (char *)"BossTask_appendToPyDict", _wrap_BossTask_appendToPyDict, METH_VARARGS },
5757         { (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS },
5758         { (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS },
5759         { (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS },
5760         { (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS },
6366           { (char *)"delete_BossTask", _wrap_delete_BossTask, METH_VARARGS },
6367           { (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS },
6368           { (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS },
# Line 5776 | Line 6381 | static PyMethodDef SwigMethods[] = {
6381           { (char *)"BossTask_reSubmit", _wrap_BossTask_reSubmit, METH_VARARGS },
6382           { (char *)"BossTask_kill", _wrap_BossTask_kill, METH_VARARGS },
6383           { (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS },
5779         { (char *)"BossTask_getAllOutput", _wrap_BossTask_getAllOutput, METH_VARARGS },
6384           { (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS },
6385           { (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS },
6386           { (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS },
6387           { (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS },
6388 +         { (char *)"BossTask_appendToPyDict", _wrap_BossTask_appendToPyDict, METH_VARARGS },
6389 +         { (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS },
6390 +         { (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS },
6391 +         { (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS },
6392 +         { (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS },
6393           { (char *)"BossTask_swigregister", BossTask_swigregister, METH_VARARGS },
6394           { (char *)"new_BossAdministratorSession", _wrap_new_BossAdministratorSession, METH_VARARGS },
6395           { (char *)"delete_BossAdministratorSession", _wrap_delete_BossAdministratorSession, METH_VARARGS },
# Line 5805 | Line 6414 | static PyMethodDef SwigMethods[] = {
6414  
6415   /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6416  
6417 + static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}};
6418   static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t", 0, "std::vector<std::pair<BossProgram,BossProgramExec > > *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t"},{0}};
6419   static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator", 0, "std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator"},{0}};
5810 static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}};
6420   static swig_type_info _swigt__p_std__vectorTBossTask_p_t[] = {{"_p_std__vectorTBossTask_p_t", 0, "std::vector<BossTask * > *", 0},{"_p_std__vectorTBossTask_p_t"},{0}};
6421   static swig_type_info _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t[] = {{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t", 0, "std::map<std::string,std::map<std::string,std::string > > *", 0},{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t"},{0}};
6422 + static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}};
6423   static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}};
6424   static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}};
5815 static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}};
5816 static swig_type_info _swigt__p_BossAttributeContainer[] = {{"_p_BossAttributeContainer", 0, "BossAttributeContainer *", 0},{"_p_BossAttributeContainer"},{0}};
6425   static swig_type_info _swigt__p_printOption[] = {{"_p_printOption", 0, "printOption const &", 0},{"_p_printOption"},{0}};
6426 + static swig_type_info _swigt__p_BossAttributeContainer[] = {{"_p_BossAttributeContainer", 0, "BossAttributeContainer *", 0},{"_p_BossAttributeContainer"},{0}};
6427   static swig_type_info _swigt__p_BossJob[] = {{"_p_BossJob", 0, "BossJob *", 0},{"_p_BossJob"},{0}};
6428   static swig_type_info _swigt__p_BossDatabase[] = {{"_p_BossDatabase", 0, "BossDatabase *", 0},{"_p_BossDatabase"},{0}};
6429   static swig_type_info _swigt__p_BossSession[] = {{"_p_BossSession", 0, "BossSession *", 0},{"_p_BossSession"},{0}};
6430   static swig_type_info _swigt__p_std__vectorTstd__string_t[] = {{"_p_std__vectorTstd__string_t", 0, "std::vector<std::string > *", 0},{"_p_std__vectorTstd__string_t"},{0}};
6431   static swig_type_info _swigt__p_std__mapTstd__string_std__string_t[] = {{"_p_std__mapTstd__string_std__string_t", 0, "std::map<std::string,std::string > *", 0},{"_p_std__mapTstd__string_std__string_t"},{0}};
6432   static swig_type_info _swigt__p_BossAdministratorSession[] = {{"_p_BossAdministratorSession", 0, "BossAdministratorSession *", 0},{"_p_BossAdministratorSession"},{0}};
5824 static swig_type_info _swigt__p_BossTask__job_iterator[] = {{"_p_BossTask__job_iterator", 0, "BossTask::job_iterator const *", 0},{"_p_BossTask__job_iterator"},{"_p_std__vectorTBossJob_p_t__const_iterator"},{0}};
6433   static swig_type_info _swigt__p_std__vectorTBossJob_p_t__const_iterator[] = {{"_p_std__vectorTBossJob_p_t__const_iterator", 0, "std::vector<BossJob * >::const_iterator *", 0},{"_p_std__vectorTBossJob_p_t__const_iterator"},{"_p_BossTask__job_iterator"},{0}};
6434 + static swig_type_info _swigt__p_BossTask__job_iterator[] = {{"_p_BossTask__job_iterator", 0, "BossTask::job_iterator const *", 0},{"_p_BossTask__job_iterator"},{"_p_std__vectorTBossJob_p_t__const_iterator"},{0}};
6435   static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}};
6436  
6437   static swig_type_info *swig_types_initial[] = {
6438 + _swigt__p_XMLDoc,
6439   _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t,
6440   _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,
5831 _swigt__p_XMLDoc,
6441   _swigt__p_std__vectorTBossTask_p_t,
6442   _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t,
6443 + _swigt__p_std__ostream,
6444   _swigt__p_BossTask,
6445   _swigt__p_BossTaskException,
5836 _swigt__p_std__ostream,
5837 _swigt__p_BossAttributeContainer,
6446   _swigt__p_printOption,
6447 + _swigt__p_BossAttributeContainer,
6448   _swigt__p_BossJob,
6449   _swigt__p_BossDatabase,
6450   _swigt__p_BossSession,
6451   _swigt__p_std__vectorTstd__string_t,
6452   _swigt__p_std__mapTstd__string_std__string_t,
6453   _swigt__p_BossAdministratorSession,
5845 _swigt__p_BossTask__job_iterator,
6454   _swigt__p_std__vectorTBossJob_p_t__const_iterator,
6455 + _swigt__p_BossTask__job_iterator,
6456   _swigt__p_jobStates,
6457   0
6458   };
# Line 5887 | Line 6496 | SWIGEXPORT(void) SWIG_init(void) {
6496      }
6497      SWIG_InstallConstants(d,swig_const_table);
6498      
6499 +    
6500 +    // define custom exceptions
6501 +    PyObject *e;
6502 +    PyMethodDef tp_methods = {
6503 +        NULL, NULL, 0, NULL
6504 +    };
6505 +    e = Py_InitModule("BossSession", &tp_methods);
6506 +    // generic BOSS exception
6507 +    BossError = PyErr_NewException("BossSession.BossError", NULL, NULL);
6508 +    Py_INCREF(BossError);
6509 +    PyModule_AddObject(e, "BossError", BossError);
6510 +    // scheduler interaction BOSS exception
6511 +    SchedulerError = PyErr_NewException("BossSession.BossError.SchedulerError", BossError, NULL);
6512 +    Py_INCREF(SchedulerError);
6513 +    PyModule_AddObject(e, "SchedulerError", SchedulerError);
6514 +    
6515   }
6516  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines