Pages

A gs.content.base.SitePage is a concrete class that can be used for creating pages in GroupServer.

class gs.content.base.SitePage(context, request)

A page on a GroupServer site

Parameters:
  • context – The context of the page
  • request – The current HTTP request
siteInfo

A Products.GSContent.view.SiteInfo instance representing the current site. Like all info classes it has a name, url, and id.

loggedInUserInfo

A Products.CustomUserFolder.userinfo.GSUserInfo instance, representing the currently logged in user. Like all info classes it has a name, url, and id. In addition it has an anonymous property, which is set to True if the user is not logged in.

Example

It can be used with just ZCML. For example, the help-index is defined in gs.help:

<browser:page
  name="index.html"
  template="browser/templates/help.pt"
  for=".interfaces.IGSHelp"
  class="gs.content.base.SitePage"
  permission="zope.Public"/>