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){ |
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); |
972 |
> |
type, user, after, before, timeout ); |
973 |
|
} |
974 |
|
PyObject * job_dict = PyList_New(0); |
975 |
|
std::vector <std::string> |
985 |
|
BossAttributeContainer::const_iterator it_end = obj.end (); |
986 |
|
for (BossAttributeContainer::const_iterator it = obj.begin (); |
987 |
|
it != it_end; ++it) { |
988 |
< |
tmp = (*it).first.name (); |
989 |
< |
char * key = new char[ tmp.size() ]; |
990 |
< |
key = strdup(tmp.c_str()); |
990 |
< |
tmp = (*it).second.value (); |
991 |
< |
PyObject * val = PyString_FromString( tmp.c_str() ); |
992 |
< |
PyDict_SetItemString( dict, key, val ); |
993 |
< |
delete [] key; |
988 |
> |
// New code semantically isomorphic to the old one //Fabio |
989 |
> |
|
990 |
> |
PyDict_SetItemString( dict, it->first.name().c_str(), PyString_FromString(it->second.value().c_str()) ); |
991 |
|
} |
992 |
|
return dict; |
993 |
|
} |
1003 |
|
std::set<std::string>::const_iterator sch_end = sch.end(); |
1004 |
|
for (std::set<std::string>::const_iterator it =sch.begin(); |
1005 |
|
it != sch_end; ++ it ) { |
1006 |
< |
tmp = (*it); |
1007 |
< |
char * key = new char[ tmp.size() ]; |
1008 |
< |
key = strdup(tmp.c_str()); |
1006 |
> |
unsigned int size = it->size() +1; |
1007 |
> |
char * key = new char[ size ]; |
1008 |
> |
strncpy( key, tmp.c_str(), size ); |
1009 |
|
tmp = (**jit)["JOB_SCHED_INFO."+(*it)]; |
1010 |
< |
PyObject * val = PyString_FromString( tmp.c_str() ); |
1011 |
< |
PyDict_SetItemString( job_dict, key, val ); |
1010 |
> |
PyDict_SetItemString( job_dict, key, |
1011 |
> |
PyString_FromString( tmp.c_str() ) ); |
1012 |
|
delete [] key; |
1013 |
|
} |
1014 |
|
return job_dict; |
2896 |
|
std::string *arg5 = (std::string *) &arg5_defvalue ; |
2897 |
|
std::string const &arg6_defvalue = "" ; |
2898 |
|
std::string *arg6 = (std::string *) &arg6_defvalue ; |
2899 |
+ |
unsigned int arg7 = (unsigned int) 0 ; |
2900 |
|
std::vector<std::string > result; |
2901 |
|
std::string temp2 ; |
2902 |
|
std::string temp3 ; |
2908 |
|
PyObject * obj3 = 0 ; |
2909 |
|
PyObject * obj4 = 0 ; |
2910 |
|
PyObject * obj5 = 0 ; |
2911 |
+ |
PyObject * obj6 = 0 ; |
2912 |
|
|
2913 |
< |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2913 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2914 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2915 |
|
{ |
2916 |
|
if (PyString_Check(obj1)) { |
2952 |
|
} |
2953 |
|
} |
2954 |
|
} |
2955 |
+ |
if (obj6) { |
2956 |
+ |
arg7 = (unsigned int) PyInt_AsLong(obj6); |
2957 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
2958 |
+ |
} |
2959 |
|
{ |
2960 |
|
try { |
2961 |
< |
result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6); |
2961 |
> |
result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7); |
2962 |
|
|
2963 |
|
}catch (const BossSchedFailure & e) { |
2964 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
2994 |
|
std::string arg7 = (std::string) "" ; |
2995 |
|
std::string arg8 = (std::string) "" ; |
2996 |
|
std::string arg9 = (std::string) "" ; |
2997 |
+ |
unsigned int arg10 = (unsigned int) 0 ; |
2998 |
|
std::string temp3 ; |
2999 |
|
std::string temp4 ; |
3000 |
|
std::string temp5 ; |
3006 |
|
PyObject * obj6 = 0 ; |
3007 |
|
PyObject * obj7 = 0 ; |
3008 |
|
PyObject * obj8 = 0 ; |
3009 |
+ |
PyObject * obj9 = 0 ; |
3010 |
|
|
3011 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
3011 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
3012 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3013 |
|
if (obj2) { |
3014 |
|
{ |
3072 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3073 |
|
} |
3074 |
|
} |
3075 |
+ |
if (obj9) { |
3076 |
+ |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3077 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
3078 |
+ |
} |
3079 |
|
{ |
3080 |
|
try { |
3081 |
< |
(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9); |
3081 |
> |
(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10); |
3082 |
|
|
3083 |
|
}catch (const BossSchedFailure & e) { |
3084 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3197 |
|
std::string arg7 = (std::string) "" ; |
3198 |
|
std::string arg8 = (std::string) "" ; |
3199 |
|
std::string arg9 = (std::string) "" ; |
3200 |
< |
bool arg10 = (bool) false ; |
3200 |
> |
unsigned int arg10 = (unsigned int) 0 ; |
3201 |
> |
bool arg11 = (bool) false ; |
3202 |
|
SwigValueWrapper< std::vector<BossTask * > > result; |
3203 |
|
std::string temp3 ; |
3204 |
|
std::string temp4 ; |
3212 |
|
PyObject * obj7 = 0 ; |
3213 |
|
PyObject * obj8 = 0 ; |
3214 |
|
PyObject * obj9 = 0 ; |
3215 |
+ |
PyObject * obj10 = 0 ; |
3216 |
|
|
3217 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
3217 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
3218 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3219 |
|
if (obj2) { |
3220 |
|
{ |
3279 |
|
} |
3280 |
|
} |
3281 |
|
if (obj9) { |
3282 |
< |
arg10 = PyInt_AsLong(obj9) ? true : false; |
3282 |
> |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3283 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3284 |
> |
} |
3285 |
> |
if (obj10) { |
3286 |
> |
arg11 = PyInt_AsLong(obj10) ? true : false; |
3287 |
|
if (PyErr_Occurred()) SWIG_fail; |
3288 |
|
} |
3289 |
|
{ |
3290 |
|
try { |
3291 |
< |
result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10); |
3291 |
> |
result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11); |
3292 |
|
|
3293 |
|
}catch (const BossSchedFailure & e) { |
3294 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3459 |
|
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3460 |
|
std::string const &arg5_defvalue = "" ; |
3461 |
|
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3462 |
< |
bool arg6 = (bool) false ; |
3462 |
> |
unsigned int arg6 = (unsigned int) 0 ; |
3463 |
> |
bool arg7 = (bool) false ; |
3464 |
|
PyObject *result; |
3465 |
|
std::string temp2 ; |
3466 |
|
std::string temp3 ; |
3472 |
|
PyObject * obj3 = 0 ; |
3473 |
|
PyObject * obj4 = 0 ; |
3474 |
|
PyObject * obj5 = 0 ; |
3475 |
+ |
PyObject * obj6 = 0 ; |
3476 |
|
|
3477 |
< |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
3477 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
3478 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3479 |
|
{ |
3480 |
|
if (PyString_Check(obj1)) { |
3513 |
|
} |
3514 |
|
} |
3515 |
|
if (obj5) { |
3516 |
< |
arg6 = PyInt_AsLong(obj5) ? true : false; |
3516 |
> |
arg6 = (unsigned int) PyInt_AsLong(obj5); |
3517 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3518 |
> |
} |
3519 |
> |
if (obj6) { |
3520 |
> |
arg7 = PyInt_AsLong(obj6) ? true : false; |
3521 |
|
if (PyErr_Occurred()) SWIG_fail; |
3522 |
|
} |
3523 |
|
{ |
3524 |
|
try { |
3525 |
< |
result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6); |
3525 |
> |
result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7); |
3526 |
|
|
3527 |
|
}catch (const BossSchedFailure & e) { |
3528 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3553 |
|
std::string arg7 = (std::string) "" ; |
3554 |
|
std::string arg8 = (std::string) "" ; |
3555 |
|
std::string arg9 = (std::string) "" ; |
3556 |
< |
bool arg10 = (bool) false ; |
3556 |
> |
unsigned int arg10 = (unsigned int) 0 ; |
3557 |
> |
bool arg11 = (bool) false ; |
3558 |
|
PyObject *result; |
3559 |
|
std::string temp3 ; |
3560 |
|
std::string temp4 ; |
3568 |
|
PyObject * obj7 = 0 ; |
3569 |
|
PyObject * obj8 = 0 ; |
3570 |
|
PyObject * obj9 = 0 ; |
3571 |
+ |
PyObject * obj10 = 0 ; |
3572 |
|
|
3573 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_queryTasks",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
3573 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_queryTasks",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
3574 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3575 |
|
if (obj2) { |
3576 |
|
{ |
3635 |
|
} |
3636 |
|
} |
3637 |
|
if (obj9) { |
3638 |
< |
arg10 = PyInt_AsLong(obj9) ? true : false; |
3638 |
> |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3639 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3640 |
> |
} |
3641 |
> |
if (obj10) { |
3642 |
> |
arg11 = PyInt_AsLong(obj10) ? true : false; |
3643 |
|
if (PyErr_Occurred()) SWIG_fail; |
3644 |
|
} |
3645 |
|
{ |
3646 |
|
try { |
3647 |
< |
result = (PyObject *)BossSession_queryTasks(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10); |
3647 |
> |
result = (PyObject *)BossSession_queryTasks(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11); |
3648 |
|
|
3649 |
|
}catch (const BossSchedFailure & e) { |
3650 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
4638 |
|
std::string *arg5 = (std::string *) &arg5_defvalue ; |
4639 |
|
std::string const &arg6_defvalue = "" ; |
4640 |
|
std::string *arg6 = (std::string *) &arg6_defvalue ; |
4641 |
< |
bool arg7 = (bool) false ; |
4641 |
> |
unsigned int arg7 = (unsigned int) 0 ; |
4642 |
> |
bool arg8 = (bool) false ; |
4643 |
|
int result; |
4644 |
|
std::string temp2 ; |
4645 |
|
std::string temp3 ; |
4653 |
|
PyObject * obj4 = 0 ; |
4654 |
|
PyObject * obj5 = 0 ; |
4655 |
|
PyObject * obj6 = 0 ; |
4656 |
+ |
PyObject * obj7 = 0 ; |
4657 |
|
|
4658 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
4658 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
4659 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4660 |
|
if (obj1) { |
4661 |
|
{ |
4708 |
|
} |
4709 |
|
} |
4710 |
|
if (obj6) { |
4711 |
< |
arg7 = PyInt_AsLong(obj6) ? true : false; |
4711 |
> |
arg7 = (unsigned int) PyInt_AsLong(obj6); |
4712 |
> |
if (PyErr_Occurred()) SWIG_fail; |
4713 |
> |
} |
4714 |
> |
if (obj7) { |
4715 |
> |
arg8 = PyInt_AsLong(obj7) ? true : false; |
4716 |
|
if (PyErr_Occurred()) SWIG_fail; |
4717 |
|
} |
4718 |
|
{ |
4719 |
|
try { |
4720 |
< |
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); |
4720 |
> |
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); |
4721 |
|
|
4722 |
|
}catch (const BossSchedFailure & e) { |
4723 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
4782 |
|
PyObject *resultobj; |
4783 |
|
BossTask *arg1 = (BossTask *) 0 ; |
4784 |
|
std::string *arg2 = 0 ; |
4785 |
< |
bool arg3 = (bool) false ; |
4785 |
> |
unsigned int arg3 = (unsigned int) 0 ; |
4786 |
> |
bool arg4 = (bool) false ; |
4787 |
|
int result; |
4788 |
|
std::string temp2 ; |
4789 |
|
PyObject * obj0 = 0 ; |
4790 |
|
PyObject * obj1 = 0 ; |
4791 |
|
PyObject * obj2 = 0 ; |
4792 |
+ |
PyObject * obj3 = 0 ; |
4793 |
|
|
4794 |
< |
if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_kill",&obj0,&obj1,&obj2)) goto fail; |
4794 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|OO:BossTask_kill",&obj0,&obj1,&obj2,&obj3)) goto fail; |
4795 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4796 |
|
{ |
4797 |
|
if (PyString_Check(obj1)) { |
4802 |
|
} |
4803 |
|
} |
4804 |
|
if (obj2) { |
4805 |
< |
arg3 = PyInt_AsLong(obj2) ? true : false; |
4805 |
> |
arg3 = (unsigned int) PyInt_AsLong(obj2); |
4806 |
> |
if (PyErr_Occurred()) SWIG_fail; |
4807 |
> |
} |
4808 |
> |
if (obj3) { |
4809 |
> |
arg4 = PyInt_AsLong(obj3) ? true : false; |
4810 |
|
if (PyErr_Occurred()) SWIG_fail; |
4811 |
|
} |
4812 |
|
{ |
4813 |
|
try { |
4814 |
< |
result = (int)(arg1)->kill((std::string const &)*arg2,arg3); |
4814 |
> |
result = (int)(arg1)->kill((std::string const &)*arg2,arg3,arg4); |
4815 |
|
|
4816 |
|
}catch (const BossSchedFailure & e) { |
4817 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
4835 |
|
std::string *arg2 = (std::string *) &arg2_defvalue ; |
4836 |
|
std::string const &arg3_defvalue = "" ; |
4837 |
|
std::string *arg3 = (std::string *) &arg3_defvalue ; |
4838 |
< |
bool arg4 = (bool) false ; |
4838 |
> |
unsigned int arg4 = (unsigned int) 0 ; |
4839 |
|
bool arg5 = (bool) false ; |
4840 |
+ |
bool arg6 = (bool) false ; |
4841 |
|
int result; |
4842 |
|
std::string temp2 ; |
4843 |
|
std::string temp3 ; |
4846 |
|
PyObject * obj2 = 0 ; |
4847 |
|
PyObject * obj3 = 0 ; |
4848 |
|
PyObject * obj4 = 0 ; |
4849 |
+ |
PyObject * obj5 = 0 ; |
4850 |
|
|
4851 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
4851 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
4852 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4853 |
|
if (obj1) { |
4854 |
|
{ |
4871 |
|
} |
4872 |
|
} |
4873 |
|
if (obj3) { |
4874 |
< |
arg4 = PyInt_AsLong(obj3) ? true : false; |
4874 |
> |
arg4 = (unsigned int) PyInt_AsLong(obj3); |
4875 |
|
if (PyErr_Occurred()) SWIG_fail; |
4876 |
|
} |
4877 |
|
if (obj4) { |
4878 |
|
arg5 = PyInt_AsLong(obj4) ? true : false; |
4879 |
|
if (PyErr_Occurred()) SWIG_fail; |
4880 |
|
} |
4881 |
+ |
if (obj5) { |
4882 |
+ |
arg6 = PyInt_AsLong(obj5) ? true : false; |
4883 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
4884 |
+ |
} |
4885 |
|
{ |
4886 |
|
try { |
4887 |
< |
result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5); |
4887 |
> |
result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6); |
4888 |
|
|
4889 |
|
}catch (const BossSchedFailure & e) { |
4890 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
5009 |
|
std::string arg6 = (std::string) "" ; |
5010 |
|
std::string arg7 = (std::string) "" ; |
5011 |
|
std::string arg8 = (std::string) "" ; |
5012 |
< |
bool arg9 = (bool) false ; |
5012 |
> |
unsigned int arg9 = (unsigned int) 0 ; |
5013 |
> |
bool arg10 = (bool) false ; |
5014 |
|
int result; |
5015 |
|
std::string temp3 ; |
5016 |
|
std::string temp4 ; |
5022 |
|
PyObject * obj6 = 0 ; |
5023 |
|
PyObject * obj7 = 0 ; |
5024 |
|
PyObject * obj8 = 0 ; |
5025 |
+ |
PyObject * obj9 = 0 ; |
5026 |
|
|
5027 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5027 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
5028 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5029 |
|
if (obj2) { |
5030 |
|
{ |
5079 |
|
} |
5080 |
|
} |
5081 |
|
if (obj8) { |
5082 |
< |
arg9 = PyInt_AsLong(obj8) ? true : false; |
5082 |
> |
arg9 = (unsigned int) PyInt_AsLong(obj8); |
5083 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5084 |
> |
} |
5085 |
> |
if (obj9) { |
5086 |
> |
arg10 = PyInt_AsLong(obj9) ? true : false; |
5087 |
|
if (PyErr_Occurred()) SWIG_fail; |
5088 |
|
} |
5089 |
|
{ |
5090 |
|
try { |
5091 |
< |
result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9); |
5091 |
> |
result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
5092 |
|
|
5093 |
|
}catch (const BossSchedFailure & e) { |
5094 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
6491 |
|
|
6492 |
|
// define custom exceptions |
6493 |
|
PyObject *e; |
6494 |
< |
e = Py_InitModule("BossSession", NULL); |
6494 |
> |
PyMethodDef tp_methods = { |
6495 |
> |
NULL, NULL, 0, NULL |
6496 |
> |
}; |
6497 |
> |
e = Py_InitModule("BossSession", &tp_methods); |
6498 |
|
// generic BOSS exception |
6499 |
|
BossError = PyErr_NewException("BossSession.BossError", NULL, NULL); |
6500 |
|
Py_INCREF(BossError); |