来自自定义脚本适配器模板:
# Find our target folder from the context. The ID of
# our target folder is "submissions"
target = context.submissions
在网站顶部的提交文件夹中创建对象的语法是什么?
即。 http://mysite/submissions/
答案 0 :(得分:2)
获取门户网站根目录:
portal_root = context.portal_url.getPortalObject()
target = portal_root.submissions