|
|
|
@ -484,17 +484,17 @@ PYTHON_GLOBAL_METHOD_DEFINITION(PtDumpLogs, args, "Params: folder\nDumps all cur
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PYTHON_GLOBAL_METHOD_DEFINITION(PtCloneKey, args, "Params: key, netForce=false\nCreates clone of key") |
|
|
|
|
PYTHON_GLOBAL_METHOD_DEFINITION(PtCloneKey, args, "Params: key, loading=false\nCreates clone of key") |
|
|
|
|
{ |
|
|
|
|
PyObject* keyObj = NULL; |
|
|
|
|
char netForce = 0; |
|
|
|
|
if (!PyArg_ParseTuple(args, "O|b", &keyObj, &netForce) || !pyKey::Check(keyObj)) |
|
|
|
|
char loading = 0; |
|
|
|
|
if (!PyArg_ParseTuple(args, "O|b", &keyObj, &loading) || !pyKey::Check(keyObj)) |
|
|
|
|
{ |
|
|
|
|
PyErr_SetString(PyExc_TypeError, "PtCloneKey expects a ptKey and bool"); |
|
|
|
|
PYTHON_RETURN_ERROR; |
|
|
|
|
} |
|
|
|
|
pyKey* key = pyKey::ConvertFrom(keyObj); |
|
|
|
|
return cyMisc::CloneKey(key, netForce); |
|
|
|
|
return cyMisc::CloneKey(key, loading); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PYTHON_GLOBAL_METHOD_DEFINITION(PtFindClones, args, "Params: key\nFinds all clones") |
|
|
|
|