Skip to content

Idea: allow traversing with pathlib semantics #1200

@gforcada

Description

@gforcada

In Zope/Plone we use traversal for almost everything:

root = somehow_get_root()
content = root.restrictedTraverse('and/now/get/some/content')

Wouldn't it be cool to be able to do instead:

root = somehow_get_root()
content = root / 'and' / 'now' / 'get' / 'some' / 'content'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions