Beispiel #1
0
def getRoutineHRefLink(dataEntry, routineName, **kargs):
    rtnName = getRoutineName(routineName)
    crossRef = None
    if 'crossRef' in kargs:
        crossRef = kargs['crossRef']
        if crossRef and not crossRef.getRoutineByName(rtnName):
            return routineName
    pos = routineName.find(rtnName)
    return routineName[:pos] + "<a href=\"%s%s\">%s</a>" % (
        dox_url, getRoutineHtmlFileName(rtnName),
        rtnName) + routineName[pos + len(rtnName):]
Beispiel #2
0
def getRoutineHRefLink(dataEntry, routineName, **kargs):
    rtnName = getRoutineName(routineName)
    crossRef = None
    if "crossRef" in kargs:
        crossRef = kargs["crossRef"]
        if crossRef and not crossRef.getRoutineByName(rtnName):
            return routineName
    pos = routineName.find(rtnName)
    return (
        routineName[:pos]
        + '<a href="%s%s">%s</a>' % (dox_url, getRoutineHtmlFileName(rtnName), rtnName)
        + routineName[pos + len(rtnName) :]
    )
Beispiel #3
0
def getRoutineHRefLink(rtnName, icrEntry, **kargs):
    crossRef = None
    if 'crossRef' in kargs:
        crossRef = kargs['crossRef']
    if crossRef:
        routine = crossRef.getRoutineByName(rtnName)
        if routine:
            logger.debug('Routine Name is %s, package: %s', routine.getName(), routine.getPackage())
            # addToPackageMap(icrEntry, routine.getPackage().getName())
            return '<a href=\"%s%s\">%s</a>' % (dox_url, getRoutineHtmlFileName(routine.getName()), rtnName)
        else:
            logger.debug('Can not find routine [%s]', rtnName)
            logger.debug('After Categorization: routine: [%s], info: [%s]', rtnName, crossRef.categorizeRoutineByNamespace(rtnName))
    return rtnName
Beispiel #4
0
def getRoutineHRefLink(rtnName, icrEntry, **kargs):
    crossRef = None
    if 'crossRef' in kargs:
        crossRef = kargs['crossRef']
    if crossRef:
        routine = crossRef.getRoutineByName(rtnName)
        if routine:
            logger.debug('Routine Name is %s, package: %s', routine.getName(), routine.getPackage())
            # addToPackageMap(icrEntry, routine.getPackage().getName())
            return '<a href=\"%s%s\">%s</a>' % (dox_url, getRoutineHtmlFileName(routine.getName()), rtnName)
        else:
            logger.debug('Can not find routine [%s]', rtnName)
            logger.debug('After Categorization: routine: [%s], info: [%s]', rtnName, crossRef.categorizeRoutineByNamespace(rtnName))
    return rtnName