[Checkins] SVN: gzo.plonepolicy/trunk/gzo/plonepolicy/ Disable icon visibility as they clash with the site style (maybe re-enable for authors? PHC?). Fix wonky bits of sample content import.

Kevin Teague kevin at bud.ca
Tue Nov 13 02:12:40 EST 2007


Log message for revision 81805:
  Disable icon visibility as they clash with the site style (maybe re-enable for authors? PHC?). Fix wonky bits of sample content import.

Changed:
  A   gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/propertiestool.xml
  U   gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py

-=-
Added: gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/propertiestool.xml
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/propertiestool.xml	                        (rev 0)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/profiles/default/propertiestool.xml	2007-11-13 07:12:39 UTC (rev 81805)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<object name="portal_properties" meta_type="Plone Properties Tool">
+  <object name="site_properties" meta_type="Plone Property Sheet">
+    <property name="icon_visibility">disabled</property>
+  </object>
+</object>
\ No newline at end of file

Modified: gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py
===================================================================
--- gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py	2007-11-13 07:10:05 UTC (rev 81804)
+++ gzo.plonepolicy/trunk/gzo/plonepolicy/setuphandlers.py	2007-11-13 07:12:39 UTC (rev 81805)
@@ -91,11 +91,11 @@
 
     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')
-        
+        if base_hasattr(p, c):
+            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', ):
+    if not base_hasattr(p['news'], 'gzo-relaunch'):
         _createLorumIpsumNews(p)
-    
\ No newline at end of file



More information about the Checkins mailing list