Arena  1.0
A content management system
 All Classes Files Functions Variables Pages
Viewpoints.py File Reference

This file defines and implements a viewpoint, which is a custom instance of AnEngine that is responsible for displaying a view or template to a remote user. More...

Classes

class  Plugins.Application.Arena.Viewpoints.AViewpointError
 Represents an error that might occur within the viewpoint module itself. More...
 
class  Plugins.Application.Arena.Viewpoints.AViewpoint
 The main "engine" of arena, which drives all of its functionality. More...
 

Variables

string Plugins.Application.Arena.Viewpoints.vpVersion = "v0.4"
 The application version.
 

Detailed Description

This file defines and implements a viewpoint, which is a custom instance of AnEngine that is responsible for displaying a view or template to a remote user.

This engine will make use of the following query parameters, if they are provided by the client:

  • channel: The name of the channel to be displayed
  • view: The name of the view to apply to the channel
  • title: The name of a post to be displayed

When using Apache's ModRewrite and the .htaccess file included with arena, and when Site.Channels.cleanURLs is set to True in Configuration.py, then these query parameters are parsed from the URL as follows: http://yoursite/path/to/arena/channelname/title?view=viewname