gs.content.base
¶
Author: | Michael JasonSmith |
---|---|
Contact: | Michael JasonSmith <mpj17@onlinegroups.net> |
Date: | 2016-01-15 |
Organization: | GroupServer.org |
Copyright: | This document is licensed under a Creative Commons Attribution-Share Alike 4.0 International License by OnlineGroups.Net. |
Contents:
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 aname
,url
, andid
.
-
loggedInUserInfo
¶ A
Products.CustomUserFolder.userinfo.GSUserInfo
instance, representing the currently logged in user. Like all info classes it has aname
,url
, andid
. In addition it has ananonymous
property, which is set toTrue
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"/>
Changelog¶
2.0.5 (2016-01-15)¶
- Moving the documentation to Read the Docs
2.0.4 (2014-10-10)¶
- Naming the reStructuredText files as such
- Pointing at GitHub as the canonical repository
2.0.3 (2014-01-30)¶
- Updating the product metadata
2.0.2 (2013-08-09)¶
- Fixing the encoding of the Python code
- Updating the product metadata
2.0.1 (2013-07-25)¶
- Updating the README
2.0.0 (2012-10-29)¶
- Adding the
SitePage
class to the__init__.py
- Updating the product dependencies
1.0.2 (2012-07-03)¶
- Adding some imports
1.0.1 (2012-01-09)¶
- Fixing a typing mistake
1.0.0 (2011-11-17)¶
Initial version. Prior to the creation of this product the code
was provided by Products.GSContent
.
The product defines the core class that is used to create Pages for GroupServer sites.
Indices and tables¶
Resources¶
- Code repository: https://github.com/groupserver/gs.content.base/
- Questions and comments to http://groupserver.org/groups/development
- Report bugs at https://redmine.iopen.net/projects/groupserver