def create_private_root(self): private_root = api.content.create( type='opengever.private.root', title='Private', container=api.portal.get()) if private_root.id != MEMBERSFOLDER_ID: api.content.rename(obj=private_root, new_id=MEMBERSFOLDER_ID) block_context_portlets(api.portal.get(), MEMBERSFOLDER_ID)
def block_portlets_for_meetings(site): block_context_portlets(site, 'sitzungen')