Plugin_wiki - the URL() helper has changed in version 1.81.5?

4 views
Skip to first unread message

Bruno Rocha

unread,
Jul 29, 2010, 12:26:05 AM7/29/10
to web...@googlegroups.com

##plugin_wiki
There was some change in the URL() helper, from 1.81.4 to 1.81.5?

To the search widget in <http://web2pybrasil.appspot.com/cursoweb2py/default/index
before, in 1.81.4 I did this: 
return UL(*[LI(*[A(db(db.plugin_wiki_page.slug==row)\

.select(db.plugin_wiki_page.title)[0].title,\
_href=URL(r=request,f='page',args=[row,]))])\
for row in found])

and the result was:
<ul><li><a href="/application/plugin_wiki/page/home">Home</a></li></ul>

but trying localy with the new version 1.81.5 the result is:

<ul><li><a href="/application/plugin_wiki/page.load/home">Home</a></li></ul>

Notice, that I am doing it with ajax() to load the item list

$('#search').keyup(function(){ 
    ajax("{{=URL(r=request, c='plugin_wiki',f='page.load/searchpages')}}",['search'],'target'); 
        return false; 
    }); 

Why .load is being appended to the url generated by URL() ?

Something that can be done to continue as before?

Tks

Bruno Rocha

unread,
Jul 29, 2010, 12:36:13 AM7/29/10
to web...@googlegroups.com
Nevermind,

I Solved using this way:

_href=URL(request.application,'plugin_wiki','page',args=[row,])

.load is not appended to the link.

Tks

2010/7/29 Bruno Rocha <rocha...@gmail.com>
Reply all
Reply to author
Forward
0 new messages