コード例 #1
0
 def content_types(self):
     """Gets the content types that are associated with the list."""
     return self.properties.get(
         'ContentTypes',
         ContentTypeCollection(
             self.context, ResourcePath("ContentTypes", self.resource_path),
             self))
コード例 #2
0
 def contentTypes(self):
     """Gets the content types that are associated with the list."""
     if self.is_property_available('ContentTypes'):
         return self.properties['ContentTypes']
     else:
         return ContentTypeCollection(
             self.context, ResourcePath("contenttypes", self.resource_path))
コード例 #3
0
 def content_types(self):
     """Gets the collection of content types for the Web site."""
     if self.is_property_available('ContentTypes'):
         return self.properties['ContentTypes']
     else:
         return ContentTypeCollection(
             self.context, ResourcePath("ContentTypes", self.resource_path))
コード例 #4
0
 def content_types(self):
     """Gets the collection of content types for the Web site."""
     return self.properties.get(
         'ContentTypes',
         ContentTypeCollection(
             self.context, ResourcePath("ContentTypes",
                                        self.resource_path)))