Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore TupleLoad Str Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Call NameLoad NameLoad Str Str Assign NameStore Call NameLoad keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad Dict Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad TryExcept body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Dict If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body Raise Call NameLoad NameLoad decorator_list ClassDef bases body Assign NameStore Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list ClassDef bases body Assign NameStore Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list ClassDef bases body Assign NameStore Str decorator_list decorator_list Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad
N/A N/A 
:class:`Page`\ s are the most frequently used :class:`.View` subclass. They define a basic HTML page and its associated content. Each :class:`Page` renders itself according to a :class:`Template`. The :class:`Template` may contain :ttag:`container` tags, which define related :class:`Contentlet`\ s and :class:`ContentReference`\ s for any page using that :class:`Template`.

 django.conf settings django.contrib.contenttypes.models ContentType django.contrib.contenttypes generic django.core.exceptions ValidationError django.db models django.http HttpResponse django.template Context RequestContext Template DjangoTemplate philo.models.base SlugTreeEntity register_value_model philo.models.fields TemplateField philo.models.nodes View philo.signals page_about_to_render_to_string page_finished_rendering_to_string philo.utils templates N/A __all__ N/A Template Page Contentlet ContentReference Template N/A SlugTreeEntity N/A N/A Represents a database-driven django template. N/A name N/A N/A models CharField max_length 255 N/A documentation N/A N/A models TextField null True blank True N/A mimetype N/A N/A models CharField max_length 255 default N/A getattr settings DEFAULT_CONTENT_TYPE text/html N/A code N/A TemplateField secure False verbose_name django template code get_containers N/A N/A self N/A N/A N/A 
		Returns a tuple where the first item is a list of names of contentlets referenced by containers, and the second item is a list of tuples of names and contenttypes of contentreferences referenced by containers. This will break if there is a recursive extends or includes in the template code. Due to the use of an empty Context, any extends or include tags with dynamic arguments probably won't work.
		
		 N/A template N/A DjangoTemplate N/A self code N/A N/A N/A templates get_containers template N/A N/A containers N/A property get_containers __unicode__ N/A N/A self N/A N/A N/A Returns the value of the :attr:`name` field. N/A N/A self name N/A Meta N/A N/A SlugTreeEntity Meta N/A N/A app_label philo N/A N/A Page N/A View N/A N/A 
	Represents a page - something which is rendered according to a :class:`Template`. The page will have a number of related :class:`Contentlet`\ s and :class:`ContentReference`\ s depending on the template selected - but these will appear only after the page has been saved with that template.
	
	 N/A template N/A N/A models ForeignKey Template related_name pages N/A title N/A N/A models CharField max_length 255 get_containers N/A N/A self N/A N/A N/A 
		Returns the results :attr:`~Template.containers` for the related template. This is a tuple containing the specs of all :ttag:`container`\ s in the :class:`Template`'s code. The value will be cached on the instance so that multiple accesses will be less expensive.
		
		 N/A N/A N/A hasattr self _containers N/A N/A N/A self _containers N/A N/A self template containers N/A N/A self _containers N/A N/A containers N/A property get_containers render_to_string N/A N/A self request extra_context N/A None None N/A N/A 
		In addition to rendering as an :class:`HttpResponse`, a :class:`Page` can also render as a string. This means, for example, that :class:`Page`\ s can be used to render emails or other non-HTML content with the same :ttag:`container`-based functionality as is used for HTML.
		
		The :class:`Page` will add itself to the context as ``page`` and its :attr:`~.Entity.attributes` as ``attributes``. If a request is provided, then :class:`request.node <.Node>` will also be added to the context as ``node`` and ``attributes`` will be set to the result of calling :meth:`~.View.attributes_with_node` with that :class:`.Node`.
		
		 N/A context N/A N/A N/A N/A context update N/A extra_context N/A N/A N/A N/A context update N/A page attributes self N/A self attributes N/A template N/A DjangoTemplate N/A N/A self template code N/A request N/A N/A N/A N/A context update N/A node attributes N/A request node N/A N/A self attributes_with_node N/A request node N/A N/A N/A page_about_to_render_to_string send sender self request request extra_context context N/A string N/A N/A template render N/A RequestContext request context N/A N/A N/A N/A page_about_to_render_to_string send sender self request request extra_context context N/A string N/A N/A template render N/A Context context N/A N/A N/A page_finished_rendering_to_string send sender self string string N/A string N/A actually_render_to_response N/A N/A self request extra_context N/A None N/A N/A Returns an :class:`HttpResponse` with the content of the :meth:`render_to_string` method and the mimetype set to the :attr:`~Template.mimetype` of the related :class:`Template`. N/A N/A HttpResponse N/A N/A self render_to_string request extra_context mimetype N/A N/A self template mimetype N/A __unicode__ N/A N/A self N/A N/A N/A Returns the value of :attr:`title` N/A N/A self title N/A clean_fields N/A N/A self exclude N/A None N/A N/A 
		This is an override of the default model clean_fields method. Essentially, in addition to validating the fields, this method validates the :class:`Template` instance that is used to render this :class:`Page`. This is useful for catching template errors before they show up as 500 errors on a live site.
		
		 N/A N/A exclude None N/A N/A exclude N/A N/A N/A N/A N/A N/A N/A super Page self clean_fields exclude N/A N/A N/A ValidationError N/A e N/A N/A errors N/A e message_dict N/A N/A errors N/A N/A N/A N/A template errors N/A template exclude N/A N/A N/A N/A N/A N/A N/A self template clean_fields N/A N/A N/A N/A self template clean N/A N/A N/A ValidationError N/A e N/A N/A N/A errors N/A template N/A e messages N/A errors N/A N/A N/A ValidationError errors N/A Meta N/A N/A N/A app_label philo N/A N/A Contentlet N/A N/A models Model N/A N/A Represents a piece of content on a page. This content is treated as a secure :class:`~philo.models.fields.TemplateField`. N/A page N/A N/A models ForeignKey Page related_name contentlets N/A name N/A N/A models CharField max_length 255 db_index True N/A content N/A TemplateField __unicode__ N/A N/A self N/A N/A N/A Returns the value of the :attr:`name` field. N/A N/A self name N/A Meta N/A N/A N/A app_label philo N/A N/A ContentReference N/A N/A models Model N/A N/A Represents a model instance related to a page. N/A page N/A N/A models ForeignKey Page related_name contentreferences N/A name N/A N/A models CharField max_length 255 db_index True N/A content_type N/A N/A models ForeignKey ContentType verbose_name Content type N/A content_id N/A N/A models PositiveIntegerField verbose_name Content ID blank True null True N/A content N/A N/A generic GenericForeignKey content_type content_id __unicode__ N/A N/A self N/A N/A N/A Returns the value of the :attr:`name` field. N/A N/A self name N/A Meta N/A N/A N/A app_label philo N/A N/A N/A N/A register_value_model Template N/A N/A register_value_model Page