|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: Xen Store Release
Rusty Russell wrote:
I've just written a Python module wrapping the xs client interface
and checked it in to CVS on gandalf.
I added a library target to xenstore for the Python module to link,
and made it possible to configure the paths it uses from the env.
The module is called 'xen.xs' and lives in xspy in CVS top-level for now.
BTW, using it I came across this slightly weird behaviour:
>>> import xen.xs
>>> h = xen.xs.open()
>>> h.write("/foo", "hello", create=1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
RuntimeError: (21, 'Is a directory')
>>> h.ls("/")
['./', '../', 'foo/', '.perms', 'foo.perms']
Write to /foo failed beacuse it's a dir - expected.
But listing / showed foo as expected, plus
'./', '../', '.perms', 'foo.perms'.
The daemon should probably filter out '.', '..' and its internal
'.perms' files from the results.
>>> h.get("/.perms")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: get
>>> h.get("/foo.perms")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: get
Feedback welcome! Rusty. Mike _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |