Example #1
0
 def _guessBlogApiUrl(self, blogUrl, apiPath, bUseExistingPath=True):
     rVal = None
     if blogUrl and apiPath:
         (scheme, host, port, path, fname, query, newUrl) = splitUrl(blogUrl) #@UnusedVariable
         if bUseExistingPath and path and apiPath:
             path = path.rstrip(u"/") + u"/" + apiPath.lstrip(u"/") #$NON-NLS-1$ #$NON-NLS-2$ #$NON-NLS-3$
         elif apiPath:
             path = apiPath
         rVal = joinUrl(scheme, host, port, path)
     return rVal
Example #2
0
 def _guessBlogApiUrl(self, blogUrl, apiPath, bUseExistingPath=True):
     rVal = None
     if blogUrl and apiPath:
         (scheme, host, port, path, fname, query,
          newUrl) = splitUrl(blogUrl)  #@UnusedVariable
         if bUseExistingPath and path and apiPath:
             path = path.rstrip(u"/") + u"/" + apiPath.lstrip(
                 u"/")  #$NON-NLS-1$ #$NON-NLS-2$ #$NON-NLS-3$
         elif apiPath:
             path = apiPath
         rVal = joinUrl(scheme, host, port, path)
     return rVal
Example #3
0
 def getUrl(self):
     return joinUrl(None, self.getHost(), self.getPort(), self.getPath())
Example #4
0
 def getUrl(self):
     return joinUrl(None, self.getHost(), self.getPort(), self.getPath())