self->container->config_file_name(self->container));
}
+static PyObject *
+Container_controllable(Container *self, void *closure)
+{
+ if (self->container->may_control(self->container)) {
+ Py_RETURN_TRUE;
+ }
+
+ Py_RETURN_FALSE;
+}
+
static PyObject *
Container_defined(Container *self, void *closure)
{
(getter)Container_config_file_name, NULL,
"Path to the container configuration",
NULL},
+ {"controllable",
+ (getter)Container_controllable, NULL,
+ "Boolean indicating whether the container may be controlled",
+ NULL},
{"defined",
(getter)Container_defined, NULL,
"Boolean indicating whether the container configuration exists",