Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/64.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error getting parent object on Windows. @ewohnlich
4 changes: 2 additions & 2 deletions src/plone/exportimport/utils/content/import_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .core import object_from_uid
from Acquisition import aq_base
from Acquisition import aq_parent
from pathlib import Path
from pathlib import PurePosixPath
from Persistence import PersistentMapping
from plone import api
from plone.base.interfaces.constrains import ENABLED
Expand Down Expand Up @@ -36,7 +36,7 @@ def get_deserializer(data: dict, request) -> Callable:


def get_parent_from_item(data: dict) -> Optional[DexterityContent]:
parent_path = str(Path(data["@id"]).parent)
parent_path = str(PurePosixPath(data["@id"]).parent)
if data.get("@type") == "Plone Site":
parent = aq_parent(api.portal.get())
else:
Expand Down