How to use the pyral.RallyUrlBuilder function in pyral

To help you get started, we’ve selected a few pyral examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RallyTools / RallyRestToolkitForPython / test / test_workspaces.py View on Github external
def makeResourceUrl(rally, entity, **kwargs):
    resource = RallyUrlBuilder(entity)
    resource.qualify(True, None, None, 10, 1)
    context, augments = rally.contextHelper.identifyContext(**kwargs)
##
##    print(" context: %s" % repr(context))
##    print("augments: %s" % repr(augments))
##
    workspace_ref = rally.contextHelper.currentWorkspaceRef()
    project_ref   = rally.contextHelper.currentProjectRef()
##
##    print("workspace_ref: %s" % workspace_ref)
##    print("  project_ref: %s" %   project_ref)
##
    if workspace_ref:
        if 'workspace' not in kwargs or ('workspace' in kwargs and kwargs['workspace'] is not None):
            resource.augmentWorkspace(augments, workspace_ref)
            if project_ref:
github RallyTools / RallyRestToolkitForPython / test / test_context.py View on Github external
def makeResourceUrl(rally, entity, **kwargs):
    resource = RallyUrlBuilder(entity)
    resource.qualify(True, None, None, 10, 1)
    context, augments = rally.contextHelper.identifyContext(**kwargs)
##
##    print(" context: %s" % repr(context))
##    print("augments: %s" % repr(augments))
##
    workspace_ref = rally.contextHelper.currentWorkspaceRef()
    project_ref   = rally.contextHelper.currentProjectRef()
##
##    print("workspace_ref: %s" % workspace_ref)
##    print("  project_ref: %s" %   project_ref)
##
    if workspace_ref:
        if 'workspace' not in kwargs or ('workspace' in kwargs and kwargs['workspace'] is not None):
            resource.augmentWorkspace(augments, workspace_ref)
            if project_ref: