Skip to content

Commit

Permalink
Meant to pull-request this.
Browse files Browse the repository at this point in the history
This reverts commit 771add2.
  • Loading branch information
esteele committed Aug 20, 2013
1 parent 771add2 commit 28aa264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Products/CMFPlone/FactoryTool.py
Expand Up @@ -9,7 +9,6 @@
from App.class_init import InitializeClass
from App.Common import package_home
from OFS.SimpleItem import SimpleItem
from zExceptions import NotFound
from ZPublisher.Publish import call_object, missing_name, dont_publish_class
from ZPublisher.mapply import mapply
from Products.CMFPlone import cmfplone_globals
Expand Down Expand Up @@ -459,10 +458,7 @@ def __call__(self, *args, **kwargs):
temp_obj = tempFolder.__getitem__(id)
stack = stack[2:]
if stack:
try:
obj = temp_obj.restrictedTraverse('/'.join(stack))
except AttributeError:
raise NotFound
obj = temp_obj.restrictedTraverse('/'.join(stack))

# Mimic URL traversal, sort of
if getattr(aq_base(obj), 'index_html', None):
Expand Down
4 changes: 1 addition & 3 deletions docs/CHANGES.rst
Expand Up @@ -8,9 +8,7 @@ Changelog
4.3.3 (unreleased)
------------------

- Return a 404 instead of "AttributeError: (dynamic view)" if a user attempts to
view a still-temporary PortalFactory item.
[esteele]
- Nothing changed yet.


4.3.2 (2013-08-14)
Expand Down

1 comment on commit 28aa264

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing information:

Please sign in to comment.