Adding a new user at the root of Plone/Zope 2 programmatically
This was originally posted on blogger here.
Sometimes you just need to do this sort of thing.
>>> app.portal._addRole('MyRole')
Tags: plone zope legacy-blogger
This was originally posted on blogger here.
Sometimes you just need to do this sort of thing.
>>> app.portal._addRole('MyRole')