Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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:
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: