| Home | Trees | Indices | Help |
|---|
|
|
1 ##
2 # Copyright (c) 2006-2016 Apple Inc. All rights reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 ##
16
17 from caldavclientlibrary.client.account import CalDAVAccount
18
19 if __name__ == '__main__':
20 account = CalDAVAccount("", ssl=True, user="", pswd="", root="", principal="")
21
22 print account.getPrincipal()
23
24 # memberships = [CalDAVPrincipal(account.session, path) for path in account.getPrincipal().memberships]
25 # for member in memberships:
26 # member.loadDetails()
27 # memberships = [member.displayname for member in memberships]
28 # print "Memberships: %s" % (memberships,)
29
30 # calendars = account.getPrincipal().listCalendars()
31 # for calendar in calendars:
32 # print "%s:" % (calendar,)
33 # txt = calendar.getDisplayName()
34 # if txt:
35 # print " Display Name: %s" % (txt,)
36 # txt = calendar.getDescription()
37 # if txt:
38 # print " Description: %s" % (txt,)
39
40 # fbset = account.getPrincipal().listFreeBusySet()
41 # print fbset
42 # account.getPrincipal().cleanFreeBusySet()
43
44 proxies = account.getPrincipal().getReadProxies()
45 for proxy in proxies:
46 print proxy
47
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jul 7 15:01:49 2011 | http://epydoc.sourceforge.net |