And make sure you don't do extension=None -- that's what it's set to by 
default, and in that case, it will just use request.extension, which you 
don't want. You have to explicitly set extension=False (or 0).
 
Anthony

On Friday, July 1, 2011 1:53:27 PM UTC-4, Jonathan Lundell wrote:

>  On Jul 1, 2011, at 10:45 AM, Martín Mulone wrote:
>
> you can pass extension=0 to the URL 
>
> URL('default','campaigns',**args=['edit',n.id],extension=0)
>
>
> extension=False would be prettier.
>
>  
>
> 2011/7/1 David J. <[email protected]>
>
>> I am running latest in trunk.
>>
>> I have this code being called from a LOAD function;
>>
>> I see it appends the '.load' to the generated URL
>>
>> When I think it should be
>>
>> /campaigns/edit/5435
>>
>> It returns
>>
>> /campaigns.load/edit/5435
>>
>>
>> <table class="grid">
>> {{ for n in items:}}
>> <tr>
>> <td>{{= n.campaign_name }}</td>
>> <td></td>
>>
>> <td style="text-align:right;">
>> <a href="{{= URL('default','campaigns',**args=['edit',n.id])}}"><img 
>> src="{{= URL('static','images/**editButtonSmall.gif') }}" alt="Edit {{= 
>> n.campaign_name }}" /></a></td>
>>
>> </tr>
>>
>>
>
>
> -- 
>   http://martin.tecnodoc.com.ar
>
>
>
>

Reply via email to