On 08/11/2011 05:07 AM, Denis Gervalle wrote:
> On Wed, Aug 10, 2011 at 14:35, Thomas Mortagne 
> <[email protected]>wrote:
> 
>> On Wed, Aug 10, 2011 at 12:22 PM, Caleb James DeLisle
>> <[email protected]> wrote:
>>> Right now we have dropPermissions which makes a specific guarantee, there
>> will not be any programming
>>> right for the duration of the request cycle.
>>>
>>> Sometimes a user might want to drop permissions for the duration of the
>> document rendering.
>>> This would mean {{include}} macros, $doc.getRenderedContent() would allow
>> permissions to be gained back
>>> while the included document was being rendered and after the content of
>> that document is finished
>>> rendering, the permissions would be returned.
>>>
>>> I think it would do more harm than good to break the promise that
>> dropPermissions() makes so I propose
>>> adding $doc.dropPermissions() to do this.
>>
> 
> If you means that you prefer a $doc.dropPermissions() to a
> $context.getBackPermission(), I am +1.

Yes, I would like to avoid changing the guarantee made by 
$xcontext.dropPermissions()
and a getBackPermissions() would invalidate it.

Caleb

> 
> Denis
> 
> 
>>>
>>> I think $doc.dropPermissions() vs. $context.dropPermissions() is
>> intuitive and easily explained but if
>>> anyone has another suggestion for a name, I'd be glad to hear it.
>>
>> Sounds good.
>>
>>>
>>> WDYT?
>>
>> +1
>>
>>>
>>> Caleb
>>>
>>> _______________________________________________
>>> devs mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>
>>
>>
>> --
>> Thomas Mortagne
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
> 
> 
> 

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to