コード例 #1
0
 def _sites(self):
     """Gets a collection of sites."""
     if self.is_property_available('sites'):
         return self.properties['sites']
     else:
         return SitePropertiesCollection(
             self.context, ResourcePath("sites", self.resource_path))
コード例 #2
0
 def sites(self):
     """Gets a collection of sites."""
     return self.properties.get(
         'sites',
         SitePropertiesCollection(self.context,
                                  ResourcePath("sites",
                                               self.resource_path)))
コード例 #3
0
    def get_site_properties_from_sharepoint_by_filters(self, _filter, start_index=0, include_detail=False):
        """

        :param bool include_detail:
        :param int start_index:
        :param str _filter:
        """
        site_props_col = SitePropertiesCollection(self.context)
        qry = ServiceOperationQuery(self, "getSitePropertiesFromSharePointByFilters",
                                    None,
                                    SitePropertiesEnumerableFilter(_filter, start_index, include_detail),
                                    "speFilter",
                                    site_props_col)
        self.context.add_query(qry)
        return site_props_col