DELTA 2513 156 495
SVN áiãUn€l ái linvirt-remote (0.4.4) unstable; urgency=low

  [Paul Weaver]
  * Add methods "listuser", "list" to list the VMs belonging to a
    specified user or the requesting user.

 -- Greg Price <price@mit.edu>  Thu, 29 Oct 2009 00:51:58 -0400

ENDREP
DELTA 2511 0 460
SVN „„
‚T	€‚ :‚¹‚R#!/usr/bin/python
"""
Lists the VMs belonging to the remote user.
"""

from subprocess import PIPE, Popen, call
import sys
import os


def main(argv):
    if len(argv) < 1:
        print >>sys.stderr, "usage: invirt-remote-list"
        return 2

    username = os.environ['REMOTE_
if __name__ == '__main__':
    sys.exit(main(sys.argv))
ENDREP
DELTA 2510 0 254
SVN †„Vƒ(
€w 0G€‚/ƒ&#!/usr/bin/python
"""
Lists the VMs belonging to a given user.
"""

import sys
import yaml

from invirt import databaseoutput = {}
    for m in database.Machine.query().join('acl').filter_by(user=username):
        output[m.name] = dict(owner=m.owner, contact=m.contact)

    print yaml.dump(output, Dumper=yaml.CSafeDumper, default_flow_style=False)
    return 0


if __name__ == '__main__':
    sys.exit(main(sys.argv))
ENDREP
id: 6gm.sr.r2516/1141
type: file
pred: 6gm.sr.r2513/2030
count: 77
text: 2516 0 258 12757 69a6e7e2c69dca6c7018a6f5844d6a47
cpath: /trunk/packages/invirt-remote/debian/changelog
copyroot: 1822 /trunk/packages/invirt-remote/debian/changelog

PLAIN
K 9
changelog
V 22
file 6gm.sr.r2516/1141
K 6
compat
V 22
file 6gj.ss.r1822/4692
K 7
control
V 22
file 6gg.st.r2436/2746
K 9
copyright
V 21
file 18.su.r1822/5354
K 23
invirt-remote-host.dirs
V 21
file 785.0.r2436/2568
K 23
invirt-remote-host.init
V 22
file 6l7.sv.r2436/2983
K 26
invirt-remote-host.install
V 21
file 74e.0.r1822/4927
K 25
invirt-remote-server.dirs
V 21
file 74h.vh.r2060/573
K 25
invirt-remote-server.init
V 22
file 6hc.sw.r1822/5595
K 28
invirt-remote-server.install
V 21
file 74f.0.r1822/6462
K 8
pycompat
V 22
file 704.sx.r1822/6221
K 5
rules
V 22
file 6gq.sy.r1822/5928
END
ENDREP
id: 73x.0.r2516/1989
type: dir
pred: 73x.0.r2513/2880
count: 32
text: 2516 1381 595 595 722ee01153d54d9271dd068a6d5f0e6e
cpath: /trunk/packages/invirt-remote/debian
copyroot: 0 /

id: 78f.0.r2516/2169
type: file
pred: 78f.0.r2510/278
count: 3
text: 2516 670 447 598 6c6111fbca7bdff8da51846a95edc6bc
props: 2508 760 30 0 4160c74de5f4e580dc15660c798ff9fc
cpath: /trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-listuser
copyroot: 0 /

id: 78g.0.r2516/2433
type: file
pred: 78g.0.r2511/615
count: 1
text: 2516 284 362 524 33f42df551bd0a82ddbd43afb61a8ae5
props: 2511 572 30 0 4160c74de5f4e580dc15660c798ff9fc
cpath: /trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-list
copyroot: 0 /

PLAIN
K 16
invirt-remconffs
V 22
file 6h7.ta.r2234/1745
K 18
invirt-remctl-help
V 22
file 6hl.tb.r1822/8738
K 26
invirt-remote-availability
V 21
file 769.0.r2188/2506
K 21
invirt-remote-control
V 22
file 6hn.tc.r1822/7713
K 20
invirt-remote-create
V 22
file 6il.td.r2161/9750
K 18
invirt-remote-list
V 21
file 78g.0.r2516/2433
K 22
invirt-remote-listhost
V 23
file 6im.te.r1822/10439
K 22
invirt-remote-listuser
V 21
file 78f.0.r2516/2169
K 21
invirt-remote-listvms
V 22
file 6he.tf.r1822/8056
K 22
invirt-remote-listvmsd
V 22
file 6ij.tg.r1822/9759
K 17
invirt-remote-lvm
V 21
file 78c.0.r2513/3394
K 19
invirt-remote-proxy
V 22
file 6gh.th.r2513/3060
K 27
invirt-remote-proxy-control
V 22
file 6gf.ti.r1822/7360
K 23
invirt-remote-proxy-web
V 23
file 6gc.tj.r1822/10849
K 23
invirt-remote-vminvalid
V 20
file 787.0.r2473/109
K 21
invirt-remote-vnccert
V 22
file 6x9.tk.r1822/9416
END
ENDREP
id: 74d.0.r2516/3586
type: dir
pred: 74d.0.r2513/4545
count: 26
text: 2516 2693 880 880 63a17f793cddb94c1d9eab8c1acbdc51
cpath: /trunk/packages/invirt-remote/server/usr/sbin
copyroot: 0 /

PLAIN
K 4
sbin
V 20
dir 74d.0.r2516/3586
END
ENDREP
id: 74c.0.r2516/3827
type: dir
pred: 74c.0.r2513/4786
count: 26
text: 2516 3775 39 39 e350da7ef3c806668b96cab592872e96
cpath: /trunk/packages/invirt-remote/server/usr
copyroot: 0 /

PLAIN
K 3
etc
V 20
dir 748.0.r2511/2956
K 3
usr
V 20
dir 74c.0.r2516/3827
END
ENDREP
id: 747.0.r2516/4094
type: dir
pred: 747.0.r2513/5053
count: 30
text: 2516 4009 72 72 c18ff4cf25ba4e000e6b5193cf6bddee
cpath: /trunk/packages/invirt-remote/server
copyroot: 0 /

PLAIN
K 6
debian
V 20
dir 73x.0.r2516/1989
K 4
host
V 20
dir 73y.0.r2446/1112
K 6
python
V 20
dir 745.0.r2513/1853
K 6
server
V 20
dir 747.0.r2516/4094
K 8
setup.py
V 23
file 706.tl.r1822/14315
END
ENDREP
id: 73w.0.r2516/4477
type: dir
pred: 73w.0.r2513/5436
count: 51
text: 2516 4272 192 192 92766a0ac2d79b518e0dc37c31c6df88
cpath: /trunk/packages/invirt-remote
copyroot: 0 /

PLAIN
K 20
invirt-autoinstaller
V 20
dir 6ym.0.r2441/3468
K 11
invirt-base
V 20
dir 6w1.0.r2304/3312
K 21
invirt-cluster-config
V 20
dir 6z7.0.r2269/1619
K 14
invirt-console
V 20
dir 734.0.r2444/2382
K 15
invirt-database
V 20
dir 6uw.0.r2225/1245
K 10
invirt-dev
V 20
dir 6vx.0.r2371/1148
K 11
invirt-dhcp
V 20
dir 6xc.0.r2491/2160
K 10
invirt-dns
V 21
dir 6a9.bf.r2210/1337
K 18
invirt-host-master
V 19
dir 6v9.0.r2244/430
K 13
invirt-images
V 20
dir 6wm.0.r1854/1142
K 20
invirt-manual-config
V 19
dir 74y.0.r1954/701
K 13
invirt-remote
V 20
dir 73w.0.r2516/4477
K 17
invirt-svn-server
V 20
dir 6xt.0.r2110/1406
K 17
invirt-vnc-client
V 20
dir 6wf.0.r2262/2554
K 17
invirt-vnc-server
V 20
dir 6x2.0.r2179/2117
K 10
invirt-web
V 20
dir 6vi.0.r2492/4947
K 19
invirt-web-iptables
V 20
dir 6u9.0.r1427/1661
K 17
invirt-xen-config
V 20
dir 6ug.0.r2487/7079
K 27
libapache2-mod-auth-sslcert
V 19
dir 6re.0.r1801/680
K 16
python-pydhcplib
V 20
dir 6t6.0.r2109/1617
K 14
python-routefs
V 20
dir 6rt.0.r981/21184
K 13
xvm-db-backup
V 20
dir 70e.0.r2259/1268
K 13
xvm-devconfig
V 20
dir 6jh.0.r2506/2108
K 16
xvm-iscsi-config
V 20
dir 6y8.0.r1989/7542
K 15
xvm-mail-config
V 20
dir 6zm.0.r2283/1475
K 8
xvm-meta
V 20
dir 72w.0.r1915/5711
K 16
xvm-munin-config
V 20
dir 70q.0.r2287/3885
K 14
xvm-prodconfig
V 20
dir 6jh.7m.r2514/734
END
ENDREP
id: 3.0.r2516/5985
type: dir
pred: 3.0.r2514/2273
count: 1440
text: 2516 4650 1322 1322 ca86a6ac6e1a3c00f602459034ea0e72
props: 680 0 65 0 3a93e218a1b111ddfe788020af4992f4
cpath: /trunk/packages
copyroot: 0 /

PLAIN
K 7
COPYING
V 20
file 6hf.0.r1664/559
K 8
packages
V 18
dir 3.0.r2516/5985
K 7
scripts
V 20
dir 6xa.0.r2503/1554
K 5
third
V 20
dir 76p.0.r2374/2986
K 20
xvm-host-setup-notes
V 20
file 6kr.0.r1566/356
END
ENDREP
id: 2.0.r2516/6413
type: dir
pred: 2.0.r2514/2700
count: 1708
text: 2516 6195 205 205 a0fd7d6cb22bc96324242d21894eddb7
props: 33 963 82 0 bbe309453007312fa7af9b6148875472
cpath: /trunk
copyroot: 0 /

PLAIN
K 8
branches
V 18
dir 6hg.0.r571/256
K 16
package_branches
V 20
dir 77i.0.r2515/2387
K 12
package_tags
V 18
dir 1.0.r2507/4008
K 10
third_tags
V 19
dir 76v.0.r2375/530
K 5
trunk
V 18
dir 2.0.r2516/6413
END
ENDREP
id: 0.0.r2516/6832
type: dir
pred: 0.0.r2515/2765
count: 2516
text: 2516 6613 206 206 474591fb88c84a262b15cdb4387269e6
cpath: /
copyroot: 0 /

78f.0.t2515-1 modify true false /trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-listuser

78g.0.t2515-1 modify true false /trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-list

6gm.sr.t2515-1 modify true false /trunk/packages/invirt-remote/debian/changelog


6832 6975
