Ticket #14032 (new Bug)

Opened 2 years ago

Content type portlet remove problem

Reported by: marcin.nowak@… Owned by:
Priority: minor Milestone: 4.x
Component: Unknown Version: 4.3
Keywords: portlet Cc:

Description

Plone 4.3.2 Unified Installer installed standalone on Linux Kubuntu 12.4.

Step to reproduce:

  • start instance in foreground mode
  • login as admin user
  • go to "Site setup"
  • chose "Types" configuration
  • select "Folder" content type
  • click "Manage portlets assigned to this content type"
  • on the left add portlet "Calendar portlet"
  • click "x" to remove just added portlet

Portlet is not removed and below tracback is visible in console and Site setup --> Error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.app.portlets.browser.editmanager, line 418, in delete_portlet
  Module plone.app.portlets.browser.editmanager, line 369, in finish_portlet_change
  Module plone.app.portlets.browser.editmanager, line 365, in _render_column
  Module plone.app.portlets.browser.editmanager, line 71, in render
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module zope.pagetemplate.pagetemplate, line 240, in __call__
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: /home/techmetria/workspace/Plone-4.3.2-content-type-portlet-remove-problem/buildout-cache/eggs/plone.app.portlets-2.4.5-py2.7.egg/plone/app/portlets/browser/templates/edit-manager-macros.pt
   - Line 3, Column 4
   - Expression: <PathExpr standard:u'view/addable_portlets'>
   - Names:
      {'args': (),
       'container': <PloneSite at /Plone>,
       'context': <PloneSite at /Plone>,
       'default': <object object at 0xacb5e10>,
       'here': <PloneSite at /Plone>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xb4c6670c>,
       'request': <HTTPRequest, URL=http://localhost:8080/Plone/++contenttypeportlets++plone.leftcolumn+Folder/@@delete-portlet>,
       'root': <Application at >,
       'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0xd24332c>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>,
       'view': <plone.app.portlets.browser.editmanager.EditPortletManagerRenderer object at 0xb4c4f98c>,
       'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xb4c4fc6c>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 117, in render
  Module plone.app.portlets.browser.editmanager, line 151, in addable_portlets
  Module plone.app.portlets.browser.editmanager, line 96, in baseUrl
  Module plone.app.portlets.browser.manage, line 259, in getAssignmentMappingUrl
  Module ZPublisher.HTTPRequest, line 1372, in __getitem__
KeyError: 'key'
Note: See TracTickets for help on using tickets.