def GETu2(): url = link(Url='u2', Id=Cooked[4]) req = ajax.ajax() req.bind('complete', DONEu2) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETu3(vIDs): url = link(Url='u3', Id=','.join(vIDs)) req = ajax.ajax() req.bind('complete', DONEu3) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETu1(): ''' d888b d88888b d888888b db db db 88' Y8b 88' `~~88~~' 88 88 o88 88 88ooooo 88 88 88 88 88 ooo 88~~~~~ 88 88 88 88 88. ~8~ 88. 88 88b d88 88 Y888P Y88888P YP ~Y8888P' VP ''' url = link(Url='u1', Id=cId) req = ajax.ajax() req.bind('complete', DONEu1) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETc2(Ids): ''' d888b d88888b d888888b .o88b. .d888b. 88' Y8b 88' `~~88~~' d8P Y8 VP `8D 88 88ooooo 88 8P odD' 88 ooo 88~~~~~ 88 8b .88' 88. ~8~ 88. 88 Y8b d8 j88. Y888P Y88888P YP `Y88P' 888888D ''' url = link(Url='c2', Id=Ids) req = ajax.ajax() req.bind('complete', DONEc2) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETc1(): ''' d888b d88888b d888888b .o88b. db 88' Y8b 88' `~~88~~' d8P Y8 o88 88 88ooooo 88 8P 88 88 ooo 88~~~~~ 88 8b 88 88. ~8~ 88. 88 Y8b d8 88 Y888P Y88888P YP `Y88P' VP ''' url = link(Url='c1', Order=order, Q=q, Page=page) req = ajax.ajax() req.bind('complete', DONEc1) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETp2(): ''' d888b d88888b d888888b d8888b. .d888b. 88' Y8b 88' `~~88~~' 88 `8D VP `8D 88 88ooooo 88 88oodD' odD' 88 ooo 88~~~~~ 88 88~~~ .88' 88. ~8~ 88. 88 88 j88. Y888P Y88888P YP 88 888888D ''' url = link(Url='p2', Id=vId) req = ajax.ajax() req.bind('complete', DONEp2) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETp1(): ''' d888b d88888b d888888b d8888b. db 88' Y8b 88' `~~88~~' 88 `8D o88 88 88ooooo 88 88oodD' 88 88 ooo 88~~~~~ 88 88~~~ 88 88. ~8~ 88. 88 88 88 Y888P Y88888P YP 88 VP ''' url = link(Url='p1', Id=vId) req = ajax.ajax() req.bind('complete', DONEp1) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def GETv2(videoIDs): ''' d888b d88888b d888888b db db .d888b. 88' Y8b 88' `~~88~~' 88 88 VP `8D 88 88ooooo 88 Y8 8P odD' 88 ooo 88~~~~~ 88 `8b d8' .88' 88. ~8~ 88. 88 `8bd8' j88. Y888P Y88888P YP YP 888888D ''' url = link(Url='v2', Id=videoIDs) req = ajax.ajax() req.bind('complete', DONEv2) req.open('GET', url, True) req.set_header('content-type', 'application/x-www-form-urlencoded') req.send()
def breadcrumbs(user): bc = _url.root() bc += _url.link(_("Users"), u'/user') if user is not None: bc += bc_entity(user) return bc
def bc_entity(user): return _url.BREAD_SEP + _url.link(user.name, url(user))