+1

On Tuesday, December 18, 2012 4:15:54 PM UTC-6, Niphlod wrote:
>
> Not an heavy user of smartgrid, but the "way to go" in my pov is by 
> default show all referenced tables. If someone needs to limit those, use 
> the linked_tables argument (i.e. full flexibility)
>
> On Tuesday, December 18, 2012 8:45:50 PM UTC+1, Massimo Di Pierro wrote:
>>
>> This deserves a discussion. It can go both ways. The bahavior was changed 
>> because of this thread 
>>
>> https://groups.google.com/forum/#!topic/web2py/EKz3FJc6ZPY
>> and this ticket:
>>
>> http://code.google.com/p/web2py/issues/detail?id=1160&can=1&q=readable%20%3D%20True
>>
>> This can go both ways. I do not think there is right or wrong. We just 
>> cannot keep changing it.
>> The grid was labelled as experimental therefore it was ok to fix it.
>>
>> You can always change the behavior by specifying the 
>> grid(...linked_tables=[...]).
>>
>> I am open to discussion. I would like to hear more opinions before this 
>> closed. Anybody?....
>>
>> Massimo
>>
>>
>> On Tuesday, 18 December 2012 13:29:20 UTC-6, dev.ld...@gmail.com wrote:
>>>
>>> Since upgrading to release 2.3.2 of web2py my smartgrid code for 
>>> managing users is showing more reference table buttons that I designed.  
>>> After some investigation I see that changes to fix issue #1160 are causing 
>>> the issue.  I have reverted the changes to the sqlhtml.py file to return my 
>>> code to working order.  I want to show the reference button for 
>>> auth_membership but don't care to see buttons for the links to 
>>> auth_membership.created_by and auth_membership.modified_by.  Is there a way 
>>> to hide these buttons with the new version.
>>>
>>> I believe the code as it originally was is the correct implementation 
>>> and the manual code should be updated to add the following cod
>>>
>>> @auth.requires_membership('manager')
>>> def manage():
>>>     db.comment.image_id.readable = True
>>>     grid = SQLFORM.smartgrid(db.image)
>>>     return dict(grid=grid)
>>>
>>> What do others think?
>>>
>>> Dan
>>>
>>>

-- 



Reply via email to