File: list_partnerships

package info (click to toggle)
librapi2 0.15-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,864 kB
  • sloc: ansic: 14,036; sh: 10,572; cpp: 851; python: 338; makefile: 229
file content (15 lines) | stat: -rwxr-xr-x 290 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

from pyrapi2 import *
from partnerships import *

s = RAPISession(SYNCE_LOG_LEVEL_DEFAULT)

i = 1
for partnership in get_partnerships(s):
    if partnership != None:
        print "%d: %s" % (i, partnership)
    else:
        print "%d: [slot empty]" % i
    i += 1