On 5 March 2011 00:07, Benji York <[email protected]> wrote:
> On Tue, Feb 15, 2011 at 4:19 AM, Martin Pool <[email protected]> wrote:
>> I wrote up <http://dev.launchpad.net/FeatureFlags> to try to provide
>> something more user-oriented and accurate than the LEP.
>
> Resurrecting this thread to point out a small inconsistency with the
> API.  The docs say that accessing feature flags from templates is done
> thusly:
>
>    <div tal:condition="features/name">
>
> But some templates don't seem to have the features variable and instead
> you have to use the request:
>
>    <div tal:condition="request/features/name">
>
> Since the request is always available and the above is only slightly
> longer, how about we remove the shortcut version to both simplify the
> default namespace and unify the access method?
>
> If we agree to do so, I'll make the small changes required.

That sounds good.

Martin

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to