def webs(self): """Get child webs""" from office365.sharepoint.webs.web_collection import WebCollection return self.properties.get( "Webs", WebCollection(self.context, ResourcePath("webs", self.resource_path), self))
def get_all_webs(self): """Returns a collection containing a flat list of all Web objects in the Web.""" from office365.sharepoint.webs.web_collection import WebCollection return_type = WebCollection(self.context, self.webs.resource_path) def _webs_loaded(): self._load_sub_webs_inner(self.webs, return_type) self.ensure_property("Webs", _webs_loaded) return return_type
def webs(self): """Get child webs""" if self.is_property_available('Webs'): return self.properties['Webs'] else: from office365.sharepoint.webs.web_collection import WebCollection parent_web_url = None if self.is_property_available('Url'): parent_web_url = self.properties['Url'] return WebCollection(self.context, ResourcePath("webs", self.resource_path), parent_web_url)