973 |
|
it!= taskList.end(); ++it ) { |
974 |
|
PyList_Append( job_dict, PyString_FromString(it->c_str() ) ); |
975 |
|
} |
976 |
– |
|
977 |
– |
// int size = taskList.size(); |
978 |
– |
// PyObject * job_dict = PyList_New(0); |
979 |
– |
// for ( unsigned int i = 0; i < size; ++i ) { |
980 |
– |
// PyList_SetItem(job_dict,i, ); |
981 |
– |
// self->makeBossTask( *it ); |
982 |
– |
// } |
976 |
|
return job_dict; |
977 |
|
} |
978 |
|
PyObject *BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){ |
1012 |
|
} |
1013 |
|
return job_dict; |
1014 |
|
} |
1015 |
< |
PyObject *BossTask_jobsDict(BossTask const *self){ |
1015 |
> |
PyObject *BossTask_jobsDict(BossTask *self){ |
1016 |
|
|
1017 |
|
PyObject * job_dict = PyDict_New(); |
1018 |
+ |
if ( self->job_begin () == self->job_end ()) self->load(ALL); |
1019 |
|
for (BossTask::job_iterator jit = self->job_begin (); |
1020 |
|
jit != self->job_end (); ++jit) { |
1021 |
|
std::string id = (*jit)->chainId(); |
2504 |
|
static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) { |
2505 |
|
PyObject *resultobj; |
2506 |
|
std::string arg1 = (std::string) "" ; |
2507 |
+ |
std::string arg2 = (std::string) "2" ; |
2508 |
+ |
std::string arg3 = (std::string) "" ; |
2509 |
|
BossSession *result; |
2510 |
|
PyObject * obj0 = 0 ; |
2511 |
+ |
PyObject * obj1 = 0 ; |
2512 |
+ |
PyObject * obj2 = 0 ; |
2513 |
|
|
2514 |
< |
if(!PyArg_ParseTuple(args,(char *)"|O:new_BossSession",&obj0)) goto fail; |
2514 |
> |
if(!PyArg_ParseTuple(args,(char *)"|OOO:new_BossSession",&obj0,&obj1,&obj2)) goto fail; |
2515 |
|
if (obj0) { |
2516 |
|
{ |
2517 |
|
if (PyString_Check(obj0)) |
2520 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
2521 |
|
} |
2522 |
|
} |
2523 |
+ |
if (obj1) { |
2524 |
+ |
{ |
2525 |
+ |
if (PyString_Check(obj1)) |
2526 |
+ |
arg2 = std::string(PyString_AsString(obj1)); |
2527 |
+ |
else |
2528 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
2529 |
+ |
} |
2530 |
+ |
} |
2531 |
+ |
if (obj2) { |
2532 |
+ |
{ |
2533 |
+ |
if (PyString_Check(obj2)) |
2534 |
+ |
arg3 = std::string(PyString_AsString(obj2)); |
2535 |
+ |
else |
2536 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
2537 |
+ |
} |
2538 |
+ |
} |
2539 |
|
{ |
2540 |
|
try { |
2541 |
< |
result = (BossSession *)new BossSession(arg1); |
2541 |
> |
result = (BossSession *)new BossSession(arg1,arg2,arg3); |
2542 |
|
|
2543 |
|
}catch (const std::exception& e) { |
2544 |
|
SWIG_exception(SWIG_RuntimeError, e.what()); |
2573 |
|
} |
2574 |
|
|
2575 |
|
|
2576 |
+ |
static PyObject *_wrap_BossSession_resetDB(PyObject *self, PyObject *args) { |
2577 |
+ |
PyObject *resultobj; |
2578 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2579 |
+ |
PyObject * obj0 = 0 ; |
2580 |
+ |
|
2581 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_resetDB",&obj0)) goto fail; |
2582 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2583 |
+ |
{ |
2584 |
+ |
try { |
2585 |
+ |
(arg1)->resetDB(); |
2586 |
+ |
|
2587 |
+ |
}catch (const std::exception& e) { |
2588 |
+ |
SWIG_exception(SWIG_RuntimeError, e.what()); |
2589 |
+ |
} |
2590 |
+ |
} |
2591 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2592 |
+ |
return resultobj; |
2593 |
+ |
fail: |
2594 |
+ |
return NULL; |
2595 |
+ |
} |
2596 |
+ |
|
2597 |
+ |
|
2598 |
|
static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) { |
2599 |
|
PyObject *resultobj; |
2600 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3491 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3492 |
|
{ |
3493 |
|
try { |
3494 |
< |
result = (PyObject *)BossTask_jobsDict((BossTask const *)arg1); |
3494 |
> |
result = (PyObject *)BossTask_jobsDict(arg1); |
3495 |
|
|
3496 |
|
}catch (const std::exception& e) { |
3497 |
|
SWIG_exception(SWIG_RuntimeError, e.what()); |
4618 |
|
} |
4619 |
|
|
4620 |
|
|
4621 |
+ |
static PyObject *_wrap_BossTask_load(PyObject *self, PyObject *args) { |
4622 |
+ |
PyObject *resultobj; |
4623 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
4624 |
+ |
int arg2 = (int) SCHEDULED ; |
4625 |
+ |
std::string const &arg3_defvalue = "all" ; |
4626 |
+ |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
4627 |
+ |
std::string const &arg4_defvalue = "" ; |
4628 |
+ |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
4629 |
+ |
std::string arg5 = (std::string) "" ; |
4630 |
+ |
std::string arg6 = (std::string) "" ; |
4631 |
+ |
std::string arg7 = (std::string) "" ; |
4632 |
+ |
std::string arg8 = (std::string) "" ; |
4633 |
+ |
int result; |
4634 |
+ |
std::string temp3 ; |
4635 |
+ |
std::string temp4 ; |
4636 |
+ |
PyObject * obj0 = 0 ; |
4637 |
+ |
PyObject * obj2 = 0 ; |
4638 |
+ |
PyObject * obj3 = 0 ; |
4639 |
+ |
PyObject * obj4 = 0 ; |
4640 |
+ |
PyObject * obj5 = 0 ; |
4641 |
+ |
PyObject * obj6 = 0 ; |
4642 |
+ |
PyObject * obj7 = 0 ; |
4643 |
+ |
|
4644 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOO:BossTask_load",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
4645 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4646 |
+ |
if (obj2) { |
4647 |
+ |
{ |
4648 |
+ |
if (PyString_Check(obj2)) { |
4649 |
+ |
temp3 = std::string(PyString_AsString(obj2)); |
4650 |
+ |
arg3 = &temp3; |
4651 |
+ |
}else { |
4652 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4653 |
+ |
} |
4654 |
+ |
} |
4655 |
+ |
} |
4656 |
+ |
if (obj3) { |
4657 |
+ |
{ |
4658 |
+ |
if (PyString_Check(obj3)) { |
4659 |
+ |
temp4 = std::string(PyString_AsString(obj3)); |
4660 |
+ |
arg4 = &temp4; |
4661 |
+ |
}else { |
4662 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4663 |
+ |
} |
4664 |
+ |
} |
4665 |
+ |
} |
4666 |
+ |
if (obj4) { |
4667 |
+ |
{ |
4668 |
+ |
if (PyString_Check(obj4)) |
4669 |
+ |
arg5 = std::string(PyString_AsString(obj4)); |
4670 |
+ |
else |
4671 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4672 |
+ |
} |
4673 |
+ |
} |
4674 |
+ |
if (obj5) { |
4675 |
+ |
{ |
4676 |
+ |
if (PyString_Check(obj5)) |
4677 |
+ |
arg6 = std::string(PyString_AsString(obj5)); |
4678 |
+ |
else |
4679 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4680 |
+ |
} |
4681 |
+ |
} |
4682 |
+ |
if (obj6) { |
4683 |
+ |
{ |
4684 |
+ |
if (PyString_Check(obj6)) |
4685 |
+ |
arg7 = std::string(PyString_AsString(obj6)); |
4686 |
+ |
else |
4687 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4688 |
+ |
} |
4689 |
+ |
} |
4690 |
+ |
if (obj7) { |
4691 |
+ |
{ |
4692 |
+ |
if (PyString_Check(obj7)) |
4693 |
+ |
arg8 = std::string(PyString_AsString(obj7)); |
4694 |
+ |
else |
4695 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4696 |
+ |
} |
4697 |
+ |
} |
4698 |
+ |
{ |
4699 |
+ |
try { |
4700 |
+ |
result = (int)(arg1)->load(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8); |
4701 |
+ |
|
4702 |
+ |
}catch (const std::exception& e) { |
4703 |
+ |
SWIG_exception(SWIG_RuntimeError, e.what()); |
4704 |
+ |
} |
4705 |
+ |
} |
4706 |
+ |
resultobj = PyInt_FromLong((long)result); |
4707 |
+ |
return resultobj; |
4708 |
+ |
fail: |
4709 |
+ |
return NULL; |
4710 |
+ |
} |
4711 |
+ |
|
4712 |
+ |
|
4713 |
|
static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) { |
4714 |
|
PyObject *resultobj; |
4715 |
|
BossTask *arg1 = (BossTask *) 0 ; |
4896 |
|
Py_INCREF(obj); |
4897 |
|
return Py_BuildValue((char *)""); |
4898 |
|
} |
4771 |
– |
static PyObject *_wrap_prompt(PyObject *self, PyObject *args) { |
4772 |
– |
PyObject *resultobj; |
4773 |
– |
std::string *arg1 = 0 ; |
4774 |
– |
bool result; |
4775 |
– |
std::string temp1 ; |
4776 |
– |
PyObject * obj0 = 0 ; |
4777 |
– |
|
4778 |
– |
if(!PyArg_ParseTuple(args,(char *)"O:prompt",&obj0)) goto fail; |
4779 |
– |
{ |
4780 |
– |
if (PyString_Check(obj0)) { |
4781 |
– |
temp1 = std::string(PyString_AsString(obj0)); |
4782 |
– |
arg1 = &temp1; |
4783 |
– |
}else { |
4784 |
– |
SWIG_exception(SWIG_TypeError, "string expected"); |
4785 |
– |
} |
4786 |
– |
} |
4787 |
– |
{ |
4788 |
– |
try { |
4789 |
– |
result = (bool)prompt((std::string const &)*arg1); |
4790 |
– |
|
4791 |
– |
}catch (const std::exception& e) { |
4792 |
– |
SWIG_exception(SWIG_RuntimeError, e.what()); |
4793 |
– |
} |
4794 |
– |
} |
4795 |
– |
resultobj = PyInt_FromLong((long)result); |
4796 |
– |
return resultobj; |
4797 |
– |
fail: |
4798 |
– |
return NULL; |
4799 |
– |
} |
4800 |
– |
|
4801 |
– |
|
4899 |
|
static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) { |
4900 |
|
PyObject *resultobj; |
4901 |
|
std::string arg1 = (std::string) "" ; |
4902 |
< |
bool arg2 = (bool) false ; |
4902 |
> |
std::string arg2 = (std::string) "2" ; |
4903 |
> |
std::string arg3 = (std::string) "" ; |
4904 |
> |
bool arg4 = (bool) false ; |
4905 |
|
BossAdministratorSession *result; |
4906 |
|
PyObject * obj0 = 0 ; |
4907 |
|
PyObject * obj1 = 0 ; |
4908 |
+ |
PyObject * obj2 = 0 ; |
4909 |
+ |
PyObject * obj3 = 0 ; |
4910 |
|
|
4911 |
< |
if(!PyArg_ParseTuple(args,(char *)"|OO:new_BossAdministratorSession",&obj0,&obj1)) goto fail; |
4911 |
> |
if(!PyArg_ParseTuple(args,(char *)"|OOOO:new_BossAdministratorSession",&obj0,&obj1,&obj2,&obj3)) goto fail; |
4912 |
|
if (obj0) { |
4913 |
|
{ |
4914 |
|
if (PyString_Check(obj0)) |
4918 |
|
} |
4919 |
|
} |
4920 |
|
if (obj1) { |
4921 |
< |
arg2 = PyInt_AsLong(obj1) ? true : false; |
4921 |
> |
{ |
4922 |
> |
if (PyString_Check(obj1)) |
4923 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
4924 |
> |
else |
4925 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4926 |
> |
} |
4927 |
> |
} |
4928 |
> |
if (obj2) { |
4929 |
> |
{ |
4930 |
> |
if (PyString_Check(obj2)) |
4931 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
4932 |
> |
else |
4933 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4934 |
> |
} |
4935 |
> |
} |
4936 |
> |
if (obj3) { |
4937 |
> |
arg4 = PyInt_AsLong(obj3) ? true : false; |
4938 |
|
if (PyErr_Occurred()) SWIG_fail; |
4939 |
|
} |
4940 |
|
{ |
4941 |
|
try { |
4942 |
< |
result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2); |
4942 |
> |
result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2,arg3,arg4); |
4943 |
|
|
4944 |
|
}catch (const std::exception& e) { |
4945 |
|
SWIG_exception(SWIG_RuntimeError, e.what()); |
5417 |
|
std::string arg13 = (std::string) "" ; |
5418 |
|
bool arg14 = (bool) false ; |
5419 |
|
bool arg15 = (bool) false ; |
5420 |
+ |
bool arg16 = (bool) false ; |
5421 |
+ |
bool arg17 = (bool) false ; |
5422 |
|
int result; |
5423 |
|
std::string temp2 ; |
5424 |
|
std::string temp11 ; |
5437 |
|
PyObject * obj12 = 0 ; |
5438 |
|
PyObject * obj13 = 0 ; |
5439 |
|
PyObject * obj14 = 0 ; |
5440 |
+ |
PyObject * obj15 = 0 ; |
5441 |
+ |
PyObject * obj16 = 0 ; |
5442 |
|
|
5443 |
< |
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; |
5443 |
> |
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; |
5444 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5445 |
|
{ |
5446 |
|
if (PyString_Check(obj1)) { |
5548 |
|
arg15 = PyInt_AsLong(obj14) ? true : false; |
5549 |
|
if (PyErr_Occurred()) SWIG_fail; |
5550 |
|
} |
5551 |
+ |
if (obj15) { |
5552 |
+ |
arg16 = PyInt_AsLong(obj15) ? true : false; |
5553 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
5554 |
+ |
} |
5555 |
+ |
if (obj16) { |
5556 |
+ |
arg17 = PyInt_AsLong(obj16) ? true : false; |
5557 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
5558 |
+ |
} |
5559 |
|
{ |
5560 |
|
try { |
5561 |
< |
result = (int)(arg1)->registerScheduler((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(std::string const &)*arg11,arg12,arg13,arg14,arg15); |
5561 |
> |
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); |
5562 |
|
|
5563 |
|
}catch (const std::exception& e) { |
5564 |
|
SWIG_exception(SWIG_RuntimeError, e.what()); |
5705 |
|
} |
5706 |
|
|
5707 |
|
|
5708 |
< |
static PyObject *_wrap_BossAdministratorSession_configure(PyObject *self, PyObject *args) { |
5708 |
> |
static PyObject *_wrap_BossAdministratorSession_registerPlugins(PyObject *self, PyObject *args) { |
5709 |
|
PyObject *resultobj; |
5710 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
5711 |
|
std::string arg2 ; |
5713 |
|
PyObject * obj0 = 0 ; |
5714 |
|
PyObject * obj1 = 0 ; |
5715 |
|
|
5716 |
< |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_configure",&obj0,&obj1)) goto fail; |
5716 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_registerPlugins",&obj0,&obj1)) goto fail; |
5717 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5718 |
|
{ |
5719 |
|
if (PyString_Check(obj1)) |
5723 |
|
} |
5724 |
|
{ |
5725 |
|
try { |
5726 |
< |
result = (int)(arg1)->configure(arg2); |
5726 |
> |
result = (int)(arg1)->registerPlugins(arg2); |
5727 |
|
|
5728 |
|
}catch (const std::exception& e) { |
5729 |
|
SWIG_exception(SWIG_RuntimeError, e.what()); |
5782 |
|
{ (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS }, |
5783 |
|
{ (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS }, |
5784 |
|
{ (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS }, |
5785 |
+ |
{ (char *)"BossSession_resetDB", _wrap_BossSession_resetDB, METH_VARARGS }, |
5786 |
|
{ (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS }, |
5787 |
|
{ (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS }, |
5788 |
|
{ (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS }, |
5829 |
|
{ (char *)"BossTask_kill", _wrap_BossTask_kill, METH_VARARGS }, |
5830 |
|
{ (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS }, |
5831 |
|
{ (char *)"BossTask_getAllOutput", _wrap_BossTask_getAllOutput, METH_VARARGS }, |
5832 |
+ |
{ (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS }, |
5833 |
|
{ (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS }, |
5834 |
|
{ (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS }, |
5835 |
|
{ (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS }, |
5836 |
|
{ (char *)"BossTask_swigregister", BossTask_swigregister, METH_VARARGS }, |
5706 |
– |
{ (char *)"prompt", _wrap_prompt, METH_VARARGS }, |
5837 |
|
{ (char *)"new_BossAdministratorSession", _wrap_new_BossAdministratorSession, METH_VARARGS }, |
5838 |
|
{ (char *)"delete_BossAdministratorSession", _wrap_delete_BossAdministratorSession, METH_VARARGS }, |
5839 |
|
{ (char *)"BossAdministratorSession_configureDB", _wrap_BossAdministratorSession_configureDB, METH_VARARGS }, |
5849 |
|
{ (char *)"BossAdministratorSession_help", _wrap_BossAdministratorSession_help, METH_VARARGS }, |
5850 |
|
{ (char *)"BossAdministratorSession_SQL", _wrap_BossAdministratorSession_SQL, METH_VARARGS }, |
5851 |
|
{ (char *)"BossAdministratorSession_purge", _wrap_BossAdministratorSession_purge, METH_VARARGS }, |
5852 |
< |
{ (char *)"BossAdministratorSession_configure", _wrap_BossAdministratorSession_configure, METH_VARARGS }, |
5852 |
> |
{ (char *)"BossAdministratorSession_registerPlugins", _wrap_BossAdministratorSession_registerPlugins, METH_VARARGS }, |
5853 |
|
{ (char *)"BossAdministratorSession_swigregister", BossAdministratorSession_swigregister, METH_VARARGS }, |
5854 |
|
{ NULL, NULL } |
5855 |
|
}; |