Ticket #5357 (closed Bug: fixed)

Opened 6 years ago

Last modified 3 years ago

Plone not folderish for displayContentsTab.py

Reported by: method Owned by: method
Priority: critical Milestone: 2.5
Component: Infrastructure Keywords:
Cc:

Description

Gave an AttributeError: is_folderish for any portal view that used displayContentsTab.py.

Change History

comment:1 Changed 6 years ago by method

Index: Portal.py =================================================================== --- Portal.py (revision 9320) +++ Portal.py (working copy) @@ -65,7 +65,9 @@

""" Set default so we can return whatever we want instead of index_html """ return getToolByName(self, 'plone_utils').browserDefault(self)

- + def is_folderish(self): + return True +

def index_html(self):

""" Acquire if not present. """ request = getattr(self, 'REQUEST', None)

Index: skins/plone_scripts/displayContentsTab.py

comment:2 Changed 6 years ago by method

Maybe this is better.

Index: Portal.py =================================================================== --- Portal.py (revision 9320) +++ Portal.py (working copy) @@ -65,7 +65,9 @@

""" Set default so we can return whatever we want instead of index_html """ return getToolByName(self, 'plone_utils').browserDefault(self)

- + def is_folderish(self): + return True +

def index_html(self):

""" Acquire if not present. """ request = getattr(self, 'REQUEST', None)

Index: skins/plone_scripts/displayContentsTab.py

comment:3 Changed 6 years ago by method

Only affects a migrated site?

comment:4 Changed 6 years ago by alecm

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in svn

comment:5 Changed 3 years ago by hannosch

  • Component changed from Content Types to Infrastructure
Note: See TracTickets for help on using tickets.