def get_next(self):
		if self.meta.get_field("parent_website_route") and self.parent_website_route:
			route = self.get_route()
			parent = frappe.get_doc(self.doctype, self.get_parent())
			siblings = parent.get_children()
			for i, r in enumerate(siblings):
				if i < len(siblings) - 1:
					if route==r.name:
						return siblings[i+1]

			out = parent.get_next()
			out.next_parent = True
			return out
		else:
			return frappe._dict()
dataset/ETHPy150Open frappe/frappe/frappe/website/website_generator.py/WebsiteGenerator.get_next/original