>From the book: By default, the extension corresponding to the current request (which can be found in request.extension) is appended to the function, unless request.extension is html, the default. This can be overridden by explicitly including an extension as part of the function name URL(f='name.ext')or with the extension argument:
URL(..., extension='css') The current extension can be explicitly suppressed: URL(..., extension=False) On Friday, March 15, 2013 9:12:01 AM UTC-4, Jim S wrote: > > That did the trick. I didn't know about that argument. Thanks for the > heads up. > > -Jim > > > On Thu, Mar 14, 2013 at 3:34 PM, LightDot <ligh...@gmail.com <javascript:> > > wrote: > >> I don't think it's a bug, .load is inherited in this case, isn't it? In >> other words, it's a feature :) >> >> You can set extension=False in the URL(), that prevents .load from >> getting added. >> >> Regards, >> Ales >> >> On Thursday, March 14, 2013 9:11:42 PM UTC+1, Jim S wrote: >>> >>> I have a LOADed component and in the controller I'm doing the following >>> to turn my id into a link. >>> >>> db.productSite.siteId.**represent = lambda x,r:A('%s-%s' % >>> (db.site(x).site,db.site(x).**name),_href=URL('applications'** >>> ,'productSites',args=('edit',**r.productSiteId))) >>> >>> The problem is when I try to click on the link, it inserts a .load into >>> the URL. >>> >>> Here is what it is generating: >>> >>> 127.0.0.1:8000/infocenter/**applications/productSites.**load/edit/1553<http://127.0.0.1:8000/infocenter/applications/productSites.load/edit/1553> >>> >>> Is there something obvious I'm overlooking or is this possibly a bug? >>> >>> -Jim >>> >>> -- >> >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/aWpQ0F3g8aY/unsubscribe?hl=en. >> To unsubscribe from this group and all its topics, send an email to >> web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.