#10975: Accessing derived block doesn't work within ifequal tag
-------------------------------------------+--------------------------------
Reporter: [email protected] | Owner: nobody
Status: closed | Milestone:
Component: Uncategorized | Version: SVN
Resolution: invalid | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by findepi):
Moreover, if it's design decision (IMO, an arguable one:), then there
should be a template syntax error or something. Instead everything works
almost fine, but the block cannot be redefined. Users may spend lots of
time before searching the tickets database just to read "hey, it's meant
to be so".
Why this design is such and not different? I see no clean solution for my
design. I have a generic template with few {{{if}}}/{{{ifequal}}}
statements, and the other template extending the first one and redefining
some blocks. I know the redefining makes sense, I know that the original
blocks would be displayed (and yes, they are displayed). If am not allowed
to redefine them (e.g. redefine labels, snippets, small widgets) I'm
forced to pass them in the rendering context, thus the context will have
to contain some HTML snippets -- which I personally treat a poor design.
I this ticket is to remain closed, can you, please, tell how I (and other
users:) should construct their templates?
--
Ticket URL: <http://code.djangoproject.com/ticket/10975#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---