Update to use ResourceList methods
This commit is contained in:
parent
9b11dd0d87
commit
22472d7947
@ -5,5 +5,4 @@ from resync.sitemap import Sitemap
|
||||
rl = ResourceList()
|
||||
rl.add( Resource('http://example.com/res1', lastmod='2013-01-01') )
|
||||
rl.add( Resource('http://example.com/res2', lastmod='2013-01-02') )
|
||||
sm = Sitemap(pretty_xml=True)
|
||||
print sm.resources_as_xml(rl)
|
||||
print rl.as_xml(pretty_xml=True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user