Campbell
Campbell

Reputation: 725

Accessing Plone site from python keyword library

I am using plone.app.robotframework. I have created a keyword library class in Python, and it works fine for simple jobs.

How can I access the objects in the Plone site, from these keywords?

Upvotes: 0

Views: 80

Answers (1)

widerin
widerin

Reputation: 86

Just call getSite() or plone.api.portal.get() to get your portal object :

from plone import api
portal = api.portal.get()

Upvotes: 2

Related Questions