resync/examples/README_client_library_in_destination.py
2013-07-04 23:25:29 -04:00

12 lines
404 B
Python

#!/usr/bin/env python
if (True): #keep indentation of README
from resync import CapabilityList
# Read Capability List and show supported capabilities
cl = CapabilityList()
cl.read("https://raw.github.com/resync/resync/0.6/resync/test/testdata/examples_from_spec/resourcesync_ex_2_6.xml")
for resource in cl:
print "supports %s (at %s)" % (resource.capability,resource.uri)