parser.add_argument('--username')
parser.add_argument('--password')

args = parser.parse_args()

print config.CONFERENCE_ID

client = openreview.Client(baseurl=args.baseurl,
                           username=args.username,
                           password=args.password)
print 'connecting to {0}'.format(client.baseurl)
'''
set up the conference groups
'''
conference_group = openreview.Group(**config.conference_params)
groups = tools.build_groups(conference_group.id)
for g in groups:
    # check group exists first
    try:
        group_exist = client.get_group(g.id)
    except openreview.OpenReviewException as e:
        client.post_group(g)
        print "post group " + g.id
'''
Add homepage  add to the conference group.
'''
this_conference = client.get_group(config.CONFERENCE_ID)
this_conference.add_webfield(config.WEBPATH)
this_conference = client.post_group(this_conference)

print "adding webfield to", this_conference.id
예제 #2
0
    'LOCATION': "Maui, Hawaii, USA",
    'DATE': "November 4-7, 2018",
    'WEBSITE': "https://sites.google.com/view/itsc18-rl",
    'DEADLINE': "Submission Deadline: May 1, 2018, 11:59 pm (AoE)",
    'CONFERENCE': 'IEEE.org/2018/ITSC',
    'PROGRAM_CHAIRS': 'IEEE.org/2018/ITSC/Program_Chairs',
    'REVIEWERS': 'IEEE.org/2018/ITSC/Reviewers',
    'SUBMISSION_INVITATION': 'IEEE.org/2018/ITSC/-/Submission',
    'BLIND_INVITATION': 'IEEE.org/2018/ITSC/-/Blind_Submission',
    'COMMENT_INVITATION': 'IEEE.org/2018/ITSC/-/Comments'
}

# May 1, 2018, 11:59 pm (AoE) = 5/2/18 noon GMT
DUE_DATE =  tools.timestamp_GMT(2018,5,2,12)

groups = tools.build_groups(js_constants['CONFERENCE'])
for g in groups:
    print "posting group {0}".format(g.id)
    client.post_group(g)



pc_params = {
    'readers': [js_constants['CONFERENCE'], js_constants['PROGRAM_CHAIRS']],
    'writers': [js_constants['CONFERENCE']],
    'signatures': [u'~Super_User1'],
    'signatories': [js_constants['CONFERENCE'], js_constants['PROGRAM_CHAIRS']],
    'members': []
}
client.post_group(openreview.Group(js_constants['PROGRAM_CHAIRS'], **pc_params))