Last active
August 29, 2015 14:00
-
-
Save gotcha/d95fa5736e3c37fd56d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from plone.app.portlets.portlets import calendar | |
left = getUtility( | |
IPortletManager, name=u'plone.leftcolumn', context=context | |
) | |
manager = getMultiAdapter((context, left,), IPortletAssignmentMapping) | |
chooser = INameChooser(manager) | |
assignment = calendar.Assignment() | |
manager[chooser.chooseName(None, assignment)] = assignment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment