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))
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)))