Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/b/a/babble.client-2.0/src/babble/client/browser/chat.py   babble.client(Download)
 
        message = cgi.escape(message)
        message = utils.urlize(message, blank=True, auto_escape=False)
        password = getattr(member, 'chatpass')
        username = member.getId()

src/b/a/babble.client-2.0/src/babble/client/tests/test_chat.py   babble.client(Download)
        self.assertEquals(short_url, url[:22]+'...')
 
        urlized = utils.urlize(url)
        test_url = u'<a href="http://www.someadress.com/here_is_a_very_long-addres?par=LKhase976asg">http://www.someadress.com/here_is_a_very_long-addres?par=LKhase976asg</a>'
        self.assertEquals(urlized, test_url)
 
        urlized  = utils.urlize(url, nofollow=True)
        self.assertEquals(urlized, test_url)
 
        urlized = utils.urlize(url, blank=True)
        test_url = u'<a href="http://www.someadress.com/here_is_a_very_long-addres?par=LKhase976asg" target="_blank">http://www.someadress.com/here_is_a_very_long-addres?par=LKhase976asg</a>'
        self.assertEquals(urlized, test_url)
 
        urlized  = utils.urlize(url, auto_escape=True)
        self.assertEquals(urlized, test_url)
 
        urlized = utils.urlize(url, nofollow=True, blank=True)
        test_url = u'<a href="http://www.someadress.com/here_is_a_very_long-addres?par=LKhase976asg" rel="nofollow" target="_blank">http://www.someadress.com/here_is_a_very_long-addres?par=LKhase976asg</a>'
        self.assertEquals(urlized, test_url)