Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/s/b/sbsOnDemand-HEAD/SbsOnDemand/Feed.py   sbsOnDemand(Download)
            query['count'] = 'true'
        query['range'] = str(startIndex) + '-' + str(startIndex + itemsPerPage)
        url = config.API_BASE + '/f/' + config.MPX_FEEDID + '/' + self.feedId + '?' + urllib.urlencode(query)
 
        # Fetch the feed
 
                # Extract feed id from parsedurl path
                match = re.match('^/api/video_feed/f/'+config.MPX_FEEDID+'/(.+)$', parsedurl[2]) #parsedurl.path
                if match is None:
                    raise Exception("Cannot extract feed identifier from url")

src/s/b/sbsOnDemand-HEAD/SbsOnDemand/Video.py   sbsOnDemand(Download)
    def _updateVideo(self):
        url = config.API_BASE + '/f/' + config.MPX_FEEDID + '/' + config.ALLDATA_FEEDID + '/' + self.id + '?' + urllib.urlencode({"form":"json"})
        page = urllib.urlopen(url)
        data = json.load(page)
        self._parseVideo(data)