summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/param/pyparam.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index c07892cc54..470c535faf 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -106,11 +106,15 @@ static PyObject *py_lp_ctx_get_helper(struct loadparm_context *lp_ctx, const cha
/* construct and return the right type of python object */
switch (parm->type) {
+ case P_CHAR:
+ return PyString_FromFormat("%c", *(char *)parm_ptr);
case P_STRING:
case P_USTRING:
return PyString_FromString(*(char **)parm_ptr);
case P_BOOL:
return PyBool_FromLong(*(bool *)parm_ptr);
+ case P_BOOLREV:
+ return PyBool_FromLong(!(*(bool *)parm_ptr));
case P_INTEGER:
case P_OCTAL:
case P_BYTES: