示例#1
0
 def contentTypes(self):
     """The collection of content types under this site."""
     if self.is_property_available('contentTypes'):
         return self.properties['contentTypes']
     else:
         return ContentTypeCollection(
             self.context, ResourcePath("contentTypes", self.resourcePath))
示例#2
0
 def content_types(self):
     """The collection of content types under this site."""
     return self.properties.get(
         'contentTypes',
         ContentTypeCollection(
             self.context, ResourcePath("contentTypes",
                                        self.resource_path)))