Esempio n. 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):]
Esempio n. 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):]
Esempio n. 3
0
def _getRoutineHRefLink(rtnName, icrEntry, **kargs):
    crossRef = None
    if 'crossRef' in kargs:
        crossRef = kargs['crossRef']
    if crossRef:
        routine = crossRef.getRoutineByName(rtnName)
        if routine:
            # _addToPackageMap(icrEntry, routine.getPackage().getName())
            return '<a href=\"%s%s\">%s</a>' % (
                DOX_URL, getRoutineHtmlFileName(routine.getName()), rtnName)
        else:
            logger.debug('Cannot find routine [%s]', rtnName)
    return rtnName
Esempio n. 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('Cannot find routine [%s]', rtnName)
            logger.debug('After Categorization: routine: [%s], info: [%s]', rtnName, crossRef.categorizeRoutineByNamespace(rtnName))
    return rtnName