[Checkins] SVN: gzo.plonepolicy/trunk/gzo Arrange portlets to match
initial grok theme sprint settings. Create dummy content for
CSS styling.
Kevin Teague
kevin at bud.ca
Mon Nov 12 20:58:19 EST 2007
Log message for revision 81802:
Arrange portlets to match initial grok theme sprint settings. Create dummy content for CSS styling.
Changed:
U gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/import_steps.xml
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/.objects
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/.objects
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/.properties
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/.objects
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/.properties
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/.objects
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/.properties
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/.objects
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/.properties
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/front-page
A gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/sample-page
U gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py
U gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/PKG-INFO
U gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/SOURCES.txt
-=-
Modified: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/import_steps.xml
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/import_steps.xml 2007-11-13 00:59:44 UTC (rev 81801)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/import_steps.xml 2007-11-13 01:58:18 UTC (rev 81802)
@@ -5,4 +5,22 @@
title="Portlet Assignment">
Grok Portlets policy
</import-step>
+ <import-step id="remove-default-content" version="20071112-03"
+ handler="gzo.plonepolicy.setuphandlers.removeDefaultContent"
+ title="Delete default content">
+ <dependency step="gzo-portlets"/>
+ Delete default content.
+ </import-step>
+ <import-step id="sample-content" version="20071112-01"
+ handler="Products.CMFCore.exportimport.content.importSiteStructure"
+ title="Content">
+ <dependency step="remove-default-content"/>
+ Import some sample structure and content for developers.
+ </import-step>
+ <import-step id="setup-sample-content" version="20071112-02"
+ handler="gzo.plonepolicy.setuphandlers.setupSampleContent"
+ title="Sample Content Import">
+ <dependency step="sample-content"/>
+ Sample content setup.
+ </import-step>
</import-steps>
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/.objects
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/.objects (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/.objects 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,6 @@
+about,Folder
+contribute,Folder
+develop,Folder
+download,Folder
+sample-page,Document
+front-page,Document
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/.objects
===================================================================
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/.properties
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/.properties (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/about/.properties 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,3 @@
+[DEFAULT]
+description = Introductory and general information about Grok
+title = About Grok
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/.objects
===================================================================
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/.properties
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/.properties (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/contribute/.properties 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,3 @@
+[DEFAULT]
+description = Contributing to the Grok project
+title = Contribute
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/.objects
===================================================================
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/.properties
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/.properties (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/develop/.properties 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,3 @@
+[DEFAULT]
+description = Develop great applications with Grok. API docs, patterns, forums, mailing lists.
+title = Develop
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/.objects
===================================================================
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/.properties
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/.properties (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/download/.properties 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,3 @@
+[DEFAULT]
+description = Download the stuff you need.
+title = Download
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/front-page
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/front-page (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/front-page 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,75 @@
+id: front-page
+title: Grok Home Page
+description: Test the grok Site Style. This is the description.
+subject:
+relatedItems:
+location:
+language:
+effectiveDate: None
+expirationDate: None
+creation_date: 2007/11/12 04:30:45.410 US/Pacific
+modification_date: 2007/11/12 04:31:49.457 US/Pacific
+creators: grok
+contributors:
+rights:
+allowDiscussion: False
+excludeFromNav: False
+presentation: False
+tableContents: False
+Content-Type: text/html
+
+
+<div>
+
+<div class="feature_top">
+ <img style="float: left;" src="Highlight_TL.jpg" alt="" />
+ <img style="float: right;" src="Highlight_TR.jpg" alt="" /> </div>
+<div class="feature">
+<p>
+ <a title="Go to the benefits of the GROK framework" href="/about">
+ <img class="track_button" src="FP_Evaluate.gif" alt="" />
+ <strong>Evaluate</strong> the benefits of the GROK framework.
+ Everything from code samples to the big picture...
+ </a></p>
+</div>
+
+<div class="feature">
+<p>
+ <a title="Go to the gory details of GROK to learn." href="/learn">
+ <img class="track_button" src="FP_Learn.gif" alt="" />
+ <strong>Learn</strong> the gory details of GROK. Go from newbie to expert as you follow the life of Grok-the-caveman...
+ </a></p>
+</div>
+<div class="feature">
+<p>
+ <a title="Go to the API docs, patterns, forums, mailing lists..." href="/develop">
+ <img class="track_button" src="FP_Develop.gif" alt="" />
+
+ <strong>Develop</strong> great applications with Grok. API docs, patterns, forums, mailing lists...
+ </a></p>
+</div>
+<div class="feature">
+<p>
+ <a title="Go to the GROK community" href="/resources">
+ <img class="track_button" src="FP_Contribute.gif" alt="" />
+ <strong>Contribute</strong> to the GROK community. Discussions, core developer blogs, road map and more...
+ </a></p>
+
+</div>
+<div class="feature">
+<p>
+ <a title="Go to download the stuff" href="/download">
+ <img class="track_button" src="FP_Download.gif" alt="" />
+ <strong>Download</strong> the stuff you need... releases, source code, component directory etc...
+ </a></p>
+</div>
+<div class="feature_bottom">
+ <img style="float: left;" src="Highlight_BL.jpg" alt="" />
+ <img style="float: right;" src="Highlight_BR.jpg" alt="" /></div>
+
+<h1>Summary</h1>
+<p>Grok is a web application framework based on Zope 3. Zope 3 is designed as an enterprise grade
+ component architecture that promotes scalability, reuse and easy maintenance. Grok just simplifies
+ everything in the Zope 3 world. From coding to configuration.</p>
+
+</div>
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/sample-page
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/sample-page (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/structure/sample-page 2007-11-13 01:58:18 UTC (rev 81802)
@@ -0,0 +1,39 @@
+id: sample-page
+title: Grok Sample CSS Page
+description: Test the grok Site Style. This is the description.
+subject:
+relatedItems:
+location:
+language:
+effectiveDate: None
+expirationDate: None
+creation_date: 2007/11/12 04:30:45.410 US/Pacific
+modification_date: 2007/11/12 04:31:49.457 US/Pacific
+creators: grok
+contributors:
+rights:
+allowDiscussion: False
+excludeFromNav: False
+presentation: False
+tableContents: False
+Content-Type: text/html
+
+
+<h2><span></span>Get started</h2>
+<p>
+Before you start working on your newly created Grok sandbox, please do the following:</p>
+<ol>
+ <li>Make sure you have some coffee.
+ <span class="discreet">You should see a cup of coffee link in the top right corner</span></li>
+ <li><a href="unvisited">Test link styles in the main body</a>.
+ <span class="discreet">Grok needs the links to look cavetastic.</span></li>
+ <li><a href="sample-page">Simple visited link</a>.
+ <span class="discreet">Some more boring text.</span></li></ol>
+<h2>Design the Grok site</h2>
+<p>Here is a some more sample content for the purposes of checking the
+Grok CSS. This sample content is a paragraph of text. This text has no
+meaning, but it fills up the page a bit with some type and lets you see
+how the typeface and spacing look.</p>
+<p>
+â
+<a class="link-plain" href="#">link-plain: The Grok Team</a></p>
Modified: gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py 2007-11-13 00:59:44 UTC (rev 81801)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py 2007-11-13 01:58:18 UTC (rev 81802)
@@ -1,6 +1,11 @@
from zope.component import getUtility
from zope.component import getMultiAdapter
+from Products.CMFCore.utils import getToolByName
+from Products.CMFPlone.utils import _createObjectByType
+from Products.CMFPlone.utils import base_hasattr
+from Products.CMFPlone.utils import transaction
+
from plone.portlets.interfaces import IPortletAssignmentMapping
from plone.portlets.interfaces import IPortletManager
from plone.portlets.interfaces import IPortletType
@@ -23,14 +28,74 @@
# delete stock portlets
for key in left.keys():
- # keep navigation
- if key == u'navigation':
- continue
del left[key]
for key in right.keys():
del right[key]
left[u'top'] = portlets.classic.Assignment('portlet_leftcolumntop','portlet')
+ left[u'search'] = portlets.classic.Assignment('portlet_search','portlet')
+ left[u'navigation'] = portlets.navigation.Assignment(
+ includeTop=True, topLevel=0, )
left[u'news'] = portlets.classic.Assignment('portlet_news','portlet')
left[u'download'] = portlets.classic.Assignment('portlet_download','portlet')
+ left.updateOrder(
+ (u'top',u'search',u'navigation',u'news',u'download',)
+ )
+
+def removeDefaultContent(context):
+ # TODO: if we load the sample content front-page we get "potential link breakage"
+ # warnings and things don't work ...
+ plone = context.getSite()
+ try:
+ plone.manage_delObjects('front-page')
+ transaction.commit()
+ except AttributeError:
+ # already deleted
+ pass
+
+def _createLorumIpsumNews(p):
+ "Some dummy news for CSS styling"
+ _createObjectByType(
+ 'News Item', p['news'], id='gzo-relaunch',
+ title='grok.zope.org to relaunch',
+ description="""
+ The Grok Neanderthal Sprint in Cologne is providing the community
+ with a new CMS based web site. There is the new Plone 3 release
+ under the hood."""
+ )
+ _createObjectByType(
+ 'News Item', p['news'], id='sample-one',
+ title='some boring sample news',
+ description="As if all news could be this interesting."
+ )
+ _createObjectByType(
+ 'News Item', p['news'], id='sample-two',
+ title='more sample news',
+ description="Thats the best news I heard all day."
+ )
+ wftool = getToolByName(p, "portal_workflow")
+ for c in ['gzo-relaunch','sample-one','sample-two',]:
+ content = p['news'][c]
+ if wftool.getInfoFor(content, 'review_state') != 'published':
+ wftool.doActionFor(content, 'publish')
+
+def setupSampleContent(context):
+ "Sample content for providing something to add CSS too"
+ # TODO: enable an easy way to skip this step
+
+ # p is for plone site
+ p = context.getSite()
+ existing = p.objectIds()
+ wftool = getToolByName(p, "portal_workflow")
+
+ contents = ['front-page','sample-page', 'about', 'contribute', 'develop', 'download']
+ for c in contents:
+ content = p[c]
+ if wftool.getInfoFor(content, 'review_state') != 'published':
+ wftool.doActionFor(content, 'publish')
+
+ # toss in some sample news items and publish them
+ if not base_hasattr( p['news'], 'gzo-relaunch', ):
+ _createLorumIpsumNews(p)
+
\ No newline at end of file
Modified: gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/PKG-INFO
===================================================================
--- gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/PKG-INFO 2007-11-13 00:59:44 UTC (rev 81801)
+++ gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/PKG-INFO 2007-11-13 01:58:18 UTC (rev 81802)
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: gzo.plonepolicy
-Version: 0.1dev
+Version: 0.1dev-r81763
Summary: Plone policy package for Plone portion of the Grok web site.
Home-page: http://svn.zope.org/repos/main/gzo.plonepolicy
Author: Kevin Teague
Modified: gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/SOURCES.txt
===================================================================
--- gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/SOURCES.txt 2007-11-13 00:59:44 UTC (rev 81801)
+++ gzo.plonepolicy/trunk/gzo.plonepolicy.egg-info/SOURCES.txt 2007-11-13 01:58:18 UTC (rev 81802)
@@ -1,7 +1,10 @@
README.txt
setup.cfg
setup.py
+docs/HISTORY.txt
+docs/INSTALL.txt
gzo/__init__.py
+gzo/__init__.pyc
gzo.plonepolicy.egg-info/PKG-INFO
gzo.plonepolicy.egg-info/SOURCES.txt
gzo.plonepolicy.egg-info/dependency_links.txt
@@ -12,9 +15,19 @@
gzo.plonepolicy.egg-info/requires.txt
gzo.plonepolicy.egg-info/top_level.txt
gzo/plonepolicy/__init__.py
+gzo/plonepolicy/__init__.pyc
+gzo/plonepolicy/configure.zcml
gzo/plonepolicy/setuphandlers.py
+gzo/plonepolicy/setuphandlers.pyc
gzo/plonepolicy/Extensions/Install.py
gzo/plonepolicy/Extensions/__init__.py
+gzo/plonepolicy/profiles/default/grok-sample-content.txt
+gzo/plonepolicy/profiles/default/gzo.policy_various.txt
+gzo/plonepolicy/profiles/default/gzo.portlet_config.txt
+gzo/plonepolicy/profiles/default/import_steps.xml
+gzo/plonepolicy/profiles/default/properties.xml
+gzo/plonepolicy/profiles/default/structure/.objects
+gzo/plonepolicy/profiles/default/structure/sample-page
gzo/plonepolicy/tests/__init__.py
gzo/plonepolicy/tests/base.py
gzo/plonepolicy/tests/test_setup.py
More information about the Checkins
mailing list