Example #1
0
 def __init__(self, sUrl, sName = None, fBracketed = True):
     assert sUrl;
     if sName is None:
         sName = 'Build log';
     if not webutils.hasSchema(sUrl):
         WuiLinkBase.__init__(self, sName, config.g_ksBuildLogUrlPrefix + sUrl, fBracketed = fBracketed);
     else:
         WuiLinkBase.__init__(self, sName, sUrl, fBracketed = fBracketed);
 def _anchorAndAppendBinaries(self, sBinaries, aoRows):
     """ Formats each binary (if any) into a row with a download link. """
     if sBinaries is not None:
         for sBinary in sBinaries.split(','):
             if not webutils.hasSchema(sBinary):
                 sBinary = config.g_ksBuildBinUrlPrefix + sBinary;
             aoRows.append([WuiLinkBase(webutils.getFilename(sBinary), sBinary, fBracketed = False),]);
     return aoRows;
Example #3
0
 def _anchorAndAppendBinaries(self, sBinaries, aoRows):
     """ Formats each binary (if any) into a row with a download link. """
     if sBinaries is not None:
         for sBinary in sBinaries.split(','):
             if not webutils.hasSchema(sBinary):
                 sBinary = config.g_ksBuildBinUrlPrefix + sBinary;
             aoRows.append([WuiLinkBase(webutils.getFilename(sBinary), sBinary, fBracketed = False),]);
     return aoRows;
Example #4
0
 def __init__(self, sUrl, sName = None, fBracketed = True):
     assert sUrl is not None; assert len(sUrl) > 0;
     if sName is None:
         sName = 'Build log';
     if not webutils.hasSchema(sUrl):
         WuiLinkBase.__init__(self, sName, config.g_ksBuildLogUrlPrefix + sUrl, fBracketed = fBracketed);
     else:
         WuiLinkBase.__init__(self, sName, sUrl, fBracketed = fBracketed);