Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant eval args in cache_key in <%block> #180

Closed
sqlalchemy-bot opened this issue Jan 13, 2012 · 5 comments
Closed

cant eval args in cache_key in <%block> #180

sqlalchemy-bot opened this issue Jan 13, 2012 · 5 comments

Comments

@sqlalchemy-bot
Copy link

@sqlalchemy-bot sqlalchemy-bot commented Jan 13, 2012

Migrated issue, originally created by Michael Bayer (@zzzeek)

Unfortunately there is another one. That one is related to <%block> tag (both anonymous and named).

FAILS: <%block cached="True" cache_key="${route_args.locale}">
WORKAROUND: <%block cached="True" cache_key="${context.get('route_args').locale}">

The bug happens when context variable (route_args) is first used in cache_key (and not anywhere else in template). I have similar logic using in <%page> directive and it works just fine there.

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Jan 13, 2012

Changes by Michael Bayer (@zzzeek):

  • changed title from "cant eval args in cache_keyin <%block>" to "cant eval args in cache_key in <%block>"
@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Jan 16, 2012

Michael Bayer (@zzzeek) wrote:

it's a new feature: 2879f8b

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Jan 16, 2012

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Mar 30, 2012

Michael Bayer (@zzzeek) wrote:

Milestone 0.6 deleted

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Mar 30, 2012

Changes by Michael Bayer (@zzzeek):

  • removed milestone (was: "0.6")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant