[Zope-CVS] CVS: Products/OSCOM/NOTSite - TODO.txt:1.3 content.py:1.3 setup.py:1.5

Tres Seaver tseaver@zope.com
Mon, 26 May 2003 02:32:50 -0400


Update of /cvs-repository/Products/OSCOM/NOTSite
In directory cvs.zope.org:/tmp/cvs-serv25422

Modified Files:
	TODO.txt content.py setup.py 
Log Message:


  - Add "Tease Story" action to FTI for NewsStory (still need to implement).

  - Clean up typos.

  - Add bogus extra entry for "object/folderContents" actions to AI tool
    (why is that being labeled an "object" action?)


=== Products/OSCOM/NOTSite/TODO.txt 1.2 => 1.3 ===
--- Products/OSCOM/NOTSite/TODO.txt:1.2	Mon May 26 01:51:35 2003
+++ Products/OSCOM/NOTSite/TODO.txt	Mon May 26 02:32:20 2003
@@ -18,6 +18,17 @@
 
     (x) Integrate actionicons tool.
 
-    ( ) Register / configure workflow.
+    (x) Register / configure workflow.
 
-    ( ) Disable syndication actions.
+    (x) Disable syndication actions.
+
+    ( ) Repair 'index_html' for root of site.
+
+    ( ) Make 'folder_contents' do the Right Thing (tm) for actions.
+
+    ( ) Make 'section_view' honor the RFP's requirement for "15 most
+        recent, sorted reverse chronological."
+
+    ( ) Add dynamic ad / weather splashes.
+
+    ( ) Make section list non-static.


=== Products/OSCOM/NOTSite/content.py 1.2 => 1.3 ===
--- Products/OSCOM/NOTSite/content.py:1.2	Mon May 26 01:51:35 2003
+++ Products/OSCOM/NOTSite/content.py	Mon May 26 02:32:20 2003
@@ -63,6 +63,11 @@
       , 'action'        : 'story_edit_form'
       , 'permissions'   : ( ModifyNewsStories, )
       }
+    , { 'id'            : 'tease'
+      , 'name'          : 'Tease Story'
+      , 'action'        : 'story_tease_form'
+      , 'permissions'   : ( ModifyNewsStories, )
+      }
     )
   }
 ,


=== Products/OSCOM/NOTSite/setup.py 1.4 => 1.5 ===
--- Products/OSCOM/NOTSite/setup.py:1.4	Mon May 26 02:10:55 2003
+++ Products/OSCOM/NOTSite/setup.py	Mon May 26 02:32:20 2003
@@ -50,7 +50,7 @@
         PortalGenerator.setupTools( self, new_site )
 
         actions_tool = getToolByName( new_site, 'portal_actions' )
-        actions_tool.deleteActionProvider( 'portal_syndiation' )
+        actions_tool.deleteActionProvider( 'portal_syndication' )
 
     def setupDefaultSkins( self, new_site ):
 
@@ -83,12 +83,13 @@
 
     def setupWorkflow( self, new_site ):
 
-        wf_tool = getToolByName(p, 'portal_workflow', None)
+        wf_tool = getToolByName( new_site, 'portal_workflow', None)
 
         if wf_tool is not None:
 
-            tool.manage_addWorkflow( id='default_workflow'
-                type='default_workflow (Web-configurable workflow [Classic])' )
+            wf_tool.manage_addWorkflow( id='default_workflow',
+                workflow_type='default_workflow '
+                              '(Web-configurable workflow [Classic])' )
                      
             #   These objects don't participate in workflow by default.
             #tool.setChainForPortalTypes( ( 'Folder', 'Topic' ), () )
@@ -100,11 +101,19 @@
         install( new_site )
 
         aitool = getToolByName( new_site, 'portal_actionicons' )
+
         aitool.addActionIcon( category='object'
                             , action_id='tease'
                             , icon_expr='tease_icon.png'
                             , title='Tease Story'
                             , priority=5
+                            )
+
+        aitool.addActionIcon( category='object'
+                            , action_id='folderContents'
+                            , icon_expr='folder_icon.png'
+                            , title='Folder Contents'
+                            , priority=0
                             )
 
 addNOTSiteForm = _loadPageTemplateFile( 'site_add' )