如何通过Python访问Apple的iCal-Server
我正在尝试通过 Python 访问 Mac OS X Snow Leopard 服务器上的 Apple iCal-Server。服务器已启动并正在运行,并且可以通过 iCal 应用程序使用它。 现在我需要通过Python访问该服务器,将其用作资源规划的后端。我已经看过 CalDav-Module (http://packages.python.org/caldav/ index.html),但那里提供的示例没有找到任何日历,尽管主体 URL 是正确的。
那么如何使用 python 从用户日历中读取某个时间范围内的事件呢?
I'm trying to access Apples iCal-Server on a Mac OS X Snow Leopard Server via Python. The server is up and running and working with it via the iCal-Application is just fine.
Now I need to access this server via Python to use it as backend for resource planning. I have already looked at the CalDav-Module (http://packages.python.org/caldav/index.html) but the sample provided there didn't find any calendar, although the Principal-URL is correct.
So how can I read the events within a time range from a user's calendar using python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[不是解决方案,而是调试]
来自 caldav 模块文档中给出的示例:
问题
调试帮助:
在文件objects.py中,有一个DAVObject的方法,称为children。您可以修改代码以包含一些调试信息。如果您可以粘贴以下内容,并将您的信息粘贴到问题中。
[Not a solution but to debug]
From the example given in the caldav module documentation:
Issues
Debugging help:
in file objects.py, there is a method for DAVObject called children. You can modify the code to include some debugging information. If you can paste the following and also paste your information in the question.