Exemple #1
0
	def __init__(self, x_date="{}", x_items="{}", x_link="{}", x_title="{}", x_location="{}", **params):
		XMLFeed.__init__(
			self, 
			x_items = x_items.format("./atom:entry"),
			x_title = x_title.format("string(./atom:title)"),
			x_link = x_link.format("string(./atom:id)"),
			x_date = x_date.format("string(./atom:updated)"),
			x_location = x_location.format("null"),
			**params)
Exemple #2
0
	def __init__(self, x_date="{}", x_items="{}", x_link="{}", x_title="{}", x_location="{}", **params):
		XMLFeed.__init__(
			self, 
			x_items = x_items.format(".//item"),
			x_title = x_title.format("string(./title)"),
			x_link = x_link.format("string(./link)"),
			x_date = x_date.format("string(./pubDate)"),
			x_location = x_location.format("xfn:null()"),
			**params)