def __init__(self, datasetPathList, nodeList, group, level='dataset', priority='normal', move='n', static='n', custodial='n', request_only='y', blocks=None, subscriptionId=(- 1), comments=''):
    '\n        Initialize PhEDEx subscription with default value\n        '
    if isinstance(datasetPathList, basestring):
        datasetPathList = [datasetPathList]
    if isinstance(nodeList, basestring):
        nodeList = [nodeList]
    self.datasetPaths = set(datasetPathList)
    self.nodes = set(nodeList)
    self.level = level.lower()
    self.priority = priority.lower()
    self.move = move.lower()
    self.static = static.lower()
    self.group = group
    self.custodial = custodial.lower()
    self.request_only = request_only.lower()
    self.requesterID = None
    self.status = 'New'
    self.comments = comments
    self.subscriptionIds = set([subscriptionId])
    self.blocks = blocks
    try:
        for option in (self.static, self.custodial, self.request_only, self.move):
            assert (option in ('y', 'n'))
        assert (self.priority in PhEDEx_VALID_SUBSCRIPTION_PRIORITIES)
        assert (self.level in ('dataset', 'block'))
        if (self.level == 'block'):
            assert (self.blocks is not None)
    except AssertionError:
        msg = 'The subscription is not a valid PhEDEx subscription.\n'
        msg += 'Check the options for this subscription: \n'
        msg += ('level: %s\n' % self.level)
        msg += ('priority: %s\n' % self.priority)
        msg += ('static: %s\n' % self.static)
        msg += ('move: %s\n' % self.move)
        msg += ('custodial: %s\n' % self.custodial)
        msg += ('blocks: %s\n' % str(self.blocks))
        raise PhEDExSubscriptionException(msg)
Initialize PhEDEx subscription with default value
def __init__(self, datasetPathList, nodeList, group, level='dataset', priority='normal', move='n', static='n', custodial='n', request_only='y', blocks=None, subscriptionId=(- 1), comments=):
    '\n        \n        '
    if isinstance(datasetPathList, basestring):
        datasetPathList = [datasetPathList]
    if isinstance(nodeList, basestring):
        nodeList = [nodeList]
    self.datasetPaths = set(datasetPathList)
    self.nodes = set(nodeList)
    self.level = level.lower()
    self.priority = priority.lower()
    self.move = move.lower()
    self.static = static.lower()
    self.group = group
    self.custodial = custodial.lower()
    self.request_only = request_only.lower()
    self.requesterID = None
    self.status = 'New'
    self.comments = comments
    self.subscriptionIds = set([subscriptionId])
    self.blocks = blocks
    try:
        for option in (self.static, self.custodial, self.request_only, self.move):
            assert (option in ('y', 'n'))
        assert (self.priority in PhEDEx_VALID_SUBSCRIPTION_PRIORITIES)
        assert (self.level in ('dataset', 'block'))
        if (self.level == 'block'):
            assert (self.blocks is not None)
    except AssertionError:
        msg = 'The subscription is not a valid PhEDEx subscription.\n'
        msg += 'Check the options for this subscription: \n'
        msg += ('level: %s\n' % self.level)
        msg += ('priority: %s\n' % self.priority)
        msg += ('static: %s\n' % self.static)
        msg += ('move: %s\n' % self.move)
        msg += ('custodial: %s\n' % self.custodial)
        msg += ('blocks: %s\n' % str(self.blocks))
        raise PhEDExSubscriptionException(msg)