+ return self.view.render_to_response(self, request, path, subpath)
+
+ class Meta:
+ app_label = 'philo'
+
+
+# the following line enables the selection of a node as the root for a given django.contrib.sites Site object
+models.ForeignKey(Node, related_name='sites', null=True, blank=True).contribute_to_class(Site, 'root_node')
+
+
+class View(Entity):
+ nodes = generic.GenericRelation(Node, content_type_field='view_content_type', object_id_field='view_object_id')
+
+ accepts_subpath = False
+
+ def render_to_response(self, node, request, path=None, subpath=None):
+ raise NotImplementedError('View subclasses must implement render_to_response.')
+