Skip to content

Commit

Permalink
Make Item a subclass of Navigation
Browse files Browse the repository at this point in the history
This allows rendering the templates on navigation in the context of the current element, instead of finding the attributes through acquisition, which would then render them in the context of the containing folder, thus making it impossible to have the correct ‚title‘ attribute for non Navigation elements.
  • Loading branch information
dwt committed Jun 12, 2018
1 parent a93bfba commit fbd3cbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OFS/SimpleItem.py
Expand Up @@ -52,6 +52,7 @@
from zExceptions.ExceptionFormatter import format_exception
from zope.interface import implementer

from App.Management import Navigation
from OFS import bbb
from OFS.interfaces import IItem
from OFS.interfaces import IItemWithName
Expand All @@ -72,6 +73,7 @@

@implementer(IItem)
class Item(Base,
Navigation,
Resource,
LockableItem,
CopySource,
Expand Down

0 comments on commit fbd3cbf

Please sign in to comment.