You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% for entry in view(entry_type='sticky',date=None).entries + view(entry_type_not='sticky') %}
would provide an iterator that allows you to consume the entries serially from the two stated viewspecs.
Current Behavior
The entry list needs to be coerced into a list using the |list operator, e.g.
An error because of the CallableProxy raises, and you have to explicitly call the entries function:
{%- for entry in view(entry_type='sticky',date=None).entries()+ view(entry_type_not='sticky').entries() -%}
Possible Solution
CallableProxy could get an __add__ function that simply calls self() + rhs(), although then extra care needs to be taken to allow further chaining, so maybe something like:
Expected Behavior
would provide an iterator that allows you to consume the entries serially from the two stated viewspecs.
Current Behavior
The entry list needs to be coerced into a list using the
|list
operator, e.g.An error because of the
CallableProxy
raises, and you have to explicitly call theentries
function:Possible Solution
CallableProxy
could get an__add__
function that simply callsself() + rhs()
, although then extra care needs to be taken to allow further chaining, so maybe something like:would work.
The text was updated successfully, but these errors were encountered: