我使用 xmlrpclib、wsapi4plone 连接到 plone:
client = xmlrpclib.ServerProxy('http://user:password@blah.com/plone')
有没有一种方法可以通过其 url 检查 plone 上的文件夹是否存在?类似:client.exists('/sites/ng/path/to/folder')
我所做的有点作弊:
try:
client.get_types('/sites/ng/path/to/folder')
except:
#if there's an exception, that means there's no folder -> create it here
client.post_object(folder)
我没有管理员权限,所以我无法查看方法列表(有人告诉我它在 plone 站点上的某个地方,但我需要成为管理员)。我不想在这里一直问关于什么方法可用的问题,网络上的任何地方都有克隆的方法列表吗?