File: create_partnership

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 (14 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

import sys
from pyrapi2 import *
from partnerships import *

if len(sys.argv) != 3:
    print "Invalid argument count"
    sys.exit(1)

s = RAPISession(SYNCE_LOG_LEVEL_DEFAULT)

create_partnership(s, sys.argv[1], sys.argv[2].split(","))