mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Update xenstore python bindings for "Implement watching of nodes which don't exist."
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
ba5fb52dda
commit
cfd6b38dc8
1 file changed
+5
-5
@@ -254,11 +254,11 @@ static PyObject *xspy_get_permissions(PyObject *self, PyObject *args,
|
||||
val = PyList_New(perms_n);
|
||||
for (i = 0; i < perms_n; i++, perms++) {
|
||||
PyObject *p = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i}",
|
||||
"dom", perms->id,
|
||||
"read", (perms->perms & XS_PERM_READ),
|
||||
"write", (perms->perms & XS_PERM_WRITE),
|
||||
"create", (perms->perms & XS_PERM_CREATE),
|
||||
"owner", (perms->perms & XS_PERM_OWNER));
|
||||
"dom", perms->id,
|
||||
"read", (perms->perms & XS_PERM_READ),
|
||||
"write", (perms->perms & XS_PERM_WRITE),
|
||||
"exist", (perms->perms & XS_PERM_ENOENT_OK),
|
||||
"owner", (perms->perms & XS_PERM_OWNER));
|
||||
PyList_SetItem(val, i, p);
|
||||
}
|
||||
exit:
|
||||
|
||||