Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 17, 2013
  1. Sergei Lebedev

    Merge pull request #1 from JKDingwall/master

    superbobry authored
    Fix for Client.set_permissions() issue
  2. JKDingwall

    This resolves an issue where:

    JKDingwall authored
    >>> import pyxs
    >>> xsc = pyxs.Client(xen_bus_path="/proc/xen/xenbus")
    >>> xsc.mkdir("/some/path")
    >>> xsc.set_permissions("/some/path", 'r0')
    
    would raise:
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/root/.local/lib/python2.7/site-packages/pyxs-0.3-py2.7.egg/pyxs/client.py", line 227, in set_permissions
        self.ack(Op.SET_PERMS, path, *perms)
      File "/root/.local/lib/python2.7/site-packages/pyxs-0.3-py2.7.egg/pyxs/client.py", line 154, in ack
        if self.execute_command(*args) != "OK":
      File "/root/.local/lib/python2.7/site-packages/pyxs-0.3-py2.7.egg/pyxs/client.py", line 116, in execute_command
        if not self.COMMAND_VALIDATORS.get(op, lambda *args: True)(*args):
      File "/root/.local/lib/python2.7/site-packages/pyxs-0.3-py2.7.egg/pyxs/client.py", line 68, in <lambda>
        lambda p, *perms: validate_path(p) and validate_perms(perms)),
      File "/root/.local/lib/python2.7/site-packages/pyxs-0.3-py2.7.egg/pyxs/helpers.py", line 154, in validate_perms
        raise InvalidPermission(perm)
    pyxs.exceptions.InvalidPermission: r
    
    With this change:
    >>> xsc.set_permissions("/some/path", 'r0', 'w0')
    
    works correctly and verifying the results with xenstore-ls -p shows:
    some  = "" . . . . . . . . . . . . . . . . . . . . . . . .  (n0)
     path = "" . . . . . . . . . . . . . . . . . . . . . . . .  (r0,w0)
Commits on Nov 29, 2012
  1. Sergei Lebedev
  2. Sergei Lebedev

    Updated 'CHANGES'

    superbobry authored
  3. Sergei Lebedev

    Bumped version

    superbobry authored
  4. Sergei Lebedev
  5. Sergei Lebedev
  6. Sergei Lebedev
  7. Sergei Lebedev
  8. Sergei Lebedev
  9. Sergei Lebedev
Commits on Dec 15, 2011
  1. Sergei Lebedev
Commits on Sep 15, 2011
  1. Sergei Lebedev
  2. Sergei Lebedev

    Updated CHANGES

    superbobry authored
  3. Sergei Lebedev
Commits on Sep 12, 2011
  1. Sergei Lebedev
  2. Sergei Lebedev

    Merge branch 'release/0.3'

    superbobry authored
  3. Sergei Lebedev

    Fixed a typo in MANIFEST.in

    superbobry authored
  4. Sergei Lebedev
  5. Sergei Lebedev
Commits on Sep 9, 2011
  1. Sergei Lebedev

    Updated CHANGES

    superbobry authored
  2. Sergei Lebedev
  3. Sergei Lebedev

    Fixed a typo in tests

    superbobry authored
  4. Sergei Lebedev
  5. Sergei Lebedev
  6. Sergei Lebedev

    Fixed moar *obvious* typos

    superbobry authored
  7. Sergei Lebedev

    Updated CHANGES

    superbobry authored
  8. Sergei Lebedev
  9. Sergei Lebedev
  10. Sergei Lebedev

    Moved PUBSUB functionality into a separata `Monitor` class

    superbobry authored
      That way we'll never have to worry about mixing `.execute_command()`
      replies with events, inside `.wait()` loop
Commits on Sep 1, 2011
  1. Sergei Lebedev

    Added MANIFEST.in

    superbobry authored
  2. Sergei Lebedev
Commits on Aug 26, 2011
  1. Sergei Lebedev

    Bumped version

    superbobry authored
Commits on Aug 18, 2011
  1. Sergei Lebedev
  2. Sergei Lebedev

    Merge branch 'release/0.2'

    superbobry authored
Something went wrong with that request. Please try again.