Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def walk_to_root(page):
	while page.path != '':
		yield page
		page = page.parent()
	yield page
        


src/d/w/dwiki-HEAD/model.py   dwiki(Download)
	def pref_view_and_dir(self, dpage, views):
		if dpage.type != "dir":
			return (None, None)
		for cp in utils.walk_to_root(dpage.me()):
			for posview in views:

src/d/w/dwiki-HEAD/interjections.py   dwiki(Download)
		return ''
 
	for pdir in utils.walk_to_root(page):
		rpage = pdir.child("__readme")
		if rpage.exists():

src/d/w/dwiki-HEAD/access.py   dwiki(Download)
def permcheck(startpage, context, what1, what2, default):
	for page in utils.walk_to_root(startpage):
		if page.type == "dir":
			spage = page.child(access_file)
		else: