Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 plone.app.robotframework。我在 Python 中创建了一个关键字库类,它适用于简单的工作。
如何从这些关键字访问 Plone 站点中的对象?
只需调用getSite()或plone.api.portal.get()获取您的门户对象:
getSite()
plone.api.portal.get()
from plone import api portal = api.portal.get()