Example #1
0
 def list_templates(self):
     """Gets a value that specifies the collection of list definitions and list templates available for creating
         lists on the site."""
     return self.properties.get(
         'ListTemplates',
         ListTemplateCollection(
             self.context, ResourcePath("ListTemplates",
                                        self.resource_path)))
Example #2
0
    def get_custom_list_templates(self):
        """
        Specifies the collection of custom list templates for a given site.

        """
        return_type = ListTemplateCollection(self.context)
        qry = ServiceOperationQuery(self, "GetCustomListTemplates", None, None, None, return_type)
        self.context.add_query(qry)
        return return_type