Well, the grid defaults to requiring a user_signature itself, unless the 
requested URL is the same as the base URL for the grid. In this case, you 
are adding your own arg to the base URL but not telling the grid about it. 
Maybe try:

SQLFORM.grid(..., args=[request.args(0)])

In any case, I don't see why this would be different on the two platforms, 
unless maybe you're logged in in one case and not the other.

Anthony

On Friday, May 17, 2013 7:55:27 AM UTC-4, Ramos wrote:
>
> this is my code
>
> *controller*
> def empresa():  
>     query= 0 if not request.args(0) else request.args(0)
>     mytable = SQLFORM.grid( db.e_docs.f_emp_ref==query , 
>                             csv=False,          
>    etc
> etc
> etc
> *
> *
> *view*
>               <button onclick="document.location='{{=URL(f="empresa", 
> args=empresa,*user_signature=True*)}}'"
>     class="{{=e_error}}" type="button" > <i class="icon-pencil 
> icon-white"></i>
>       Editar empreiteiro
>     </button>
>
>
> In ubuntu i have to use user_signature_True in the URL , in windows i do 
> not.
>
> The web page where this button is , is called from another page with URL, 
> user_signature=True
>
>
> Is this sufficient info?
> i can put more code...
>
>
>
> 2013/5/17 Anthony <[email protected] <javascript:>>
>
>> Hard to say without seeing any code.
>>
>>
>> On Friday, May 17, 2013 7:24:29 AM UTC-4, Ramos wrote:
>>>
>>> hello
>>> i have my app running in a windows machine.
>>>
>>> I copied it to a ubuntu server and i have a problem with a URL helper in 
>>> my code
>>>
>>> The user goes to a pages via a URL(..., user_signature=True)
>>> in that page he can edit a record via a button 
>>> This button calls a controller function via a URL helper (no 
>>> user_signature this time)
>>>
>>> In windows the button edits the record , in ubuntu i get the error " not 
>>> authorized"
>>>
>>> To have it working in ubuntu i had to add user_signature=True in the 
>>> edit button URL
>>>
>>>
>>> Is this the way it is?
>>>
>>>
>>> Best regards
>>>
>>> António
>>>
>>  -- 
>>  
>> --- 
>> 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 [email protected] <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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to