Changeset 1239

Show
Ignore:
Timestamp:
09/11/08 10:02:55
Author:
koval
Message:

now product can be installed on plone 3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qSiloGroup/trunk/Extensions/Install.py

    r1238 r1239  
    4848    for ptype in types_tool.objectValues(): 
    4949        if ptype.getId() == 'Folder': 
    50             action = ptype.getActionById( 'edit_silo_navigation', default=None
    51             if action is None: 
     50            action_obj = ptype.getActionObject('object/edit_silo_navigation'
     51            if action_obj is None: 
    5252                out.write( '  Added Silo Navigation tab for %s\n' % ptype.getId() ) 
    53                 ptype.addAction( 'edit_silo_navigation' 
    54                                , 'Silo Navigation' 
    55                                , 'string:${object_url}/silo_navigation_form' 
    56                                , '' 
    57                                , 'Modify portal content' 
    58                                , 'object' 
    59                                , visible=1 
    60                                ) 
     53                ptype.addAction('edit_silo_navigation', 
     54                                'Silo Navigation', 
     55                                'string:${object_url}/silo_navigation_form', 
     56                                '', 
     57                                ('Modify portal content',), 
     58                                'object', 
     59                                visible=True) 
     60            else: 
     61                action_obj.edit(title=title, action=action, 
     62                                condition=condition, 
     63                                permissions=tuple(permissions), 
     64                                visible=visible) 
    6165def removeActions(self): 
    6266    tool = getToolByName(self, 'portal_types') 
    6367    for ptype in tool.objectValues(): 
    6468        if ptype.getId() == 'Folder': 
    65             action = ptype.getActionById( 'edit_silo_navigation', default=None
     69            action = ptype.getActionObject('object/edit_silo_navigation'
    6670            if action != None: 
    6771                acts = list(ptype.listActions()) 
     
    7175    portal_js = getToolByName(self, 'portal_javascripts', None) 
    7276    portal_css = getToolByName(self, 'portal_css', None) 
    73      
     77 
    7478    if portal_js is not None: 
    7579        scripts = portal_js.getResourceIds() 
  • qSiloGroup/trunk/README.txt

    r1238 r1239  
    11Silo Groups product aims to fill the niche off advance SEO techniquies of content assembling. 
     2 
     3It supports Plone 3 (tested with Plone 3.1.5.1). 
  • qSiloGroup/trunk/config.py

    r1238 r1239  
    1 from Products.CMFCore import CMFCorePermissions 
     1from Products.CMFCore import permissions 
    22 
    3 VIEW_PERMISSION = CMFCorePermissions.ManagePortal 
     3VIEW_PERMISSION = permissions.ManagePortal 
    44 
    55PROJECTNAME = 'qSiloGroup' 
  • qSiloGroup/trunk/skins/qSiloGroup/portlet_navtree_macro.pt

    r1238 r1239  
    55                    viewActions here/portal_properties/site_properties/typesUseViewActionInListings|python:(); 
    66                    member context/portal_membership/getAuthenticatedMember|nothing; 
    7                     member_id member/getId|nothing"> 
     7                    member_id member/getId|nothing; 
     8                    plone_view context/@@plone"> 
    89 
    910<metal:main define-macro="nav_main"> 
     
    1314                item       node/item; 
    1415                useView    python:item.portal_type in viewActions; 
     16                item_icon  python:plone_view.getIcon(item); 
    1517                isFolderish item/is_folderish|nothing; 
    1618                default_page python:isFolderish and item.getObject().getProperty('default_page', '') or ''; 
     
    2022    tal:condition="python: bottomLevel &lt;= 0 or level &lt; bottomLevel-1"> 
    2123 
    22     <tal:level define="item_type_class     python: 'visualIcon contenttype-' + normalizeString(item.portal_type); 
    23                        item_wf_state_class python: 'state-' + normalizeString(item.review_state);"> 
     24    <tal:level define="item_wf_state_class python: 'state-' + normalizeString(item.review_state);"> 
    2425 
    25     <div tal:attributes="class item_type_class" 
    26          tal:define="itemClass string:$item_wf_state_class visualIconPadding
     26 
     27    <div tal:define="itemClass string:$item_wf_state_class
    2728                     itemClass python:test(isCurrent, itemClass + ' navTreeCurrentItem', itemClass);"> 
    28          
     29 
    2930        <a tal:attributes="href python:test(linkRemote, item.getRemoteUrl, itemUrl); 
    3031                           title item/Description; 
    31                            class string:$itemClass" 
    32             tal:content="item/Title"> 
    33             Selected Item Title  
     32                           class string:$itemClass"> 
     33            <img width="16" height="16" 
     34                 src="" alt="" 
     35                 tal:condition="item_icon/url" 
     36                 tal:attributes="src item_icon/url; 
     37                 alt item_icon/description; 
     38                 title item_icon/title; 
     39                 width item_icon/width; 
     40                 height item_icon/height;" /> 
     41            <span tal:replace="item/Title">Selected Item Title</span> 
    3442        </a> 
    35          
     43 
    3644    </div> 
    3745 
     
    4654</metal:main> 
    4755</tal:master> 
    48  
  • qSiloGroup/trunk/skins/qSiloGroup/silo_nav.pt

    r1238 r1239  
    77                         charset site_properties/default_charset|string:utf-8"><metal:cache use-macro="here/global_cache_settings/macros/cacheheaders"> 
    88      Get the global cache headers located in global_cache_settings.</metal:cache></tal:cache> 
    9   <head metal:use-macro="here/header/macros/html_header"> 
    10     <metal:fillbase fill-slot="base"> 
    11       <base href="" tal:attributes="href here/renderBase" /> 
    12     </metal:fillbase> 
    13     <metal:headslot fill-slot="head_slot"> 
    14       <tal:comment replace="nothing"> A slot where you can insert elements in the header from a template</tal:comment> 
    15     </metal:headslot> 
    16     <metal:styleslot fill-slot="style_slot"> 
    17       <tal:comment replace="nothing"> A slot where you can insert CSS in the header from a template</tal:comment> 
    18     </metal:styleslot> 
    19     <metal:cssslot fill-slot="css_slot"> 
    20       <tal:comment replace="nothing"> This is deprecated, please use style_slot instead.</tal:comment> 
    21     </metal:cssslot> 
    22     <metal:javascriptslot fill-slot="javascript_head_slot"> 
    23       <tal:comment replace="nothing"> A slot where you can insert javascript in the header from a template</tal:comment> 
    24     </metal:javascriptslot> 
     9  <head> 
     10    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" 
     11          tal:define="charset site_properties/default_charset|string:utf-8" 
     12          tal:attributes="content string:text/html;;charset=${charset}" /> 
     13 
     14    <base tal:attributes="href here/renderBase" /><!--[if lt IE 7]></base><![endif]--> 
     15 
     16    <meta name="generator" content="Plone - http://plone.org" /> 
     17 
     18    <div tal:replace="structure provider:plone.htmlhead" /> 
     19 
     20    <meta tal:define="metatags python:putils.listMetaTags(here).items()" 
     21          tal:condition="metatags" 
     22          tal:repeat="keyval metatags" 
     23          tal:attributes="name python:keyval[0]; 
     24                          content python:keyval[1];" /> 
     25 
     26    <!-- Internet Explorer CSS Fixes --> 
     27    <tal:iefixstart replace="structure string:&lt;!--[if IE]&gt;" /> 
     28    <style type="text/css" media="all" tal:condition="exists: portal/IEFixes.css" 
     29           tal:content="string:@import url($portal_url/IEFixes.css);"> 
     30    </style> 
     31    <tal:iefixend replace="structure string:&lt;![endif]--&gt;" /> 
     32 
     33    <link tal:replace="structure provider:plone.htmlhead.links" /> 
     34 
     35    <!-- Disable IE6 image toolbar --> 
     36    <meta http-equiv="imagetoolbar" content="no" /> 
    2537  </head> 
     38 
    2639  <body onload="if (parent.adjustIFrameSize) parent.adjustIFrameSize(window);" 
    2740        style="min-width: 100px; text-align: left; background-color: #F5F6F6"