Skip to content

Assignment returned by assignment_mapping_from_key() is not acquisition-wrapped. #139

@fulv

Description

@fulv

e.g.

portlet = assignment_from_key( getSite(), u'plone.rightcolumn', CONTEXT_CATEGORY, '/', 'p_name' )
(Pdb) portlet
<Assignment at ++contextportlets++plone.rightcolumn/p_name>
(Pdb) portlet.aq_chain
[<Assignment at ++contextportlets++plone.rightcolumn/p_name>, <PortletAssignmentMapping at ++contextportlets++plone.rightcolumn>]

In other words, the chain ends at the assignment mapping and doesn't go up to the portal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions