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:
cl349@firebug.cl.cam.ac.uk committed 2005-08-02 19:19:16 +00:00
1 parent ba5fb52dda
commit cfd6b38dc8
1 file changed
+5 -5
+5 -5
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.