Changeset 932

Show
Ignore:
Timestamp:
08/09/07 07:47:15
Author:
mylan
Message:

Fix minor differences for run product on Plone-3.0. There is only problem with portlet customization due to changing this mechanism completely in Plone-3.0.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneSkinDump/branches/plone_3.0/Extensions/Install.py

    r503 r932  
    11from Products.Archetypes.Extensions.utils import install_subskin 
    2 from Products.CMFCore.CMFCorePermissions import ManagePortal 
    32from Products.CMFCore.utils import getToolByName 
     3try: 
     4    from Products.CMFCore.permissions import ManagePortal 
     5except: 
     6    from Products.CMFCore.CMFCorePermissions import ManagePortal 
    47 
    58from Products.qPloneSkinDump.config import * 
  • qPloneSkinDump/branches/plone_3.0/config.py

    r894 r932  
    11import re, os 
    2 from Products.CMFCore import CMFCorePermissions 
     2try: 
     3    from Products.CMFCore import permissions 
     4except: 
     5    from Products.CMFCore import CMFCorePermissions as permissions 
    36 
    47## Base Product Constants 
    58GLOBALS = globals() 
    69PROJECTNAME = "qPloneSkinDump" 
    7 ADD_CONTENT_PERMISSION = CMFCorePermissions.AddPortalContent 
     10ADD_CONTENT_PERMISSION = permissions.AddPortalContent 
    811CONFIGURATION_CONFIGLET = "qploneskindump_configuration" 
    912 
  • qPloneSkinDump/branches/plone_3.0/exportingObjects.py

    r503 r932  
    66import os, os.path 
    77osp = os.path 
     8from config import PRODUCTS_PATH 
    89 
    910def copyFile(src_dir, dst_dir, f_name): 
     
    6667    cfg = getConfiguration() 
    6768    instance_epath = cfg.clienthome 
    68     product_epath = osp.join(cfg.instancehome, 'Products', product_name, "import") 
     69    product_epath = osp.join(PRODUCTS_PATH, product_name, "import") 
    6970    # Check presence of Product import directory 
    7071    if not osp.isdir(product_epath):         
  • qPloneSkinDump/branches/plone_3.0/skins/qploneskindump/qploneskindump_config.cpt

    r503 r932  
    187187            </fieldset> 
    188188 
    189             <fieldset
     189            <fieldset tal:on-error="string:Slot customization not yet implemented for Plone 3.0+ :("
    190190                <legend class="DoesCustomizeSlots"> 
    191191                    <input class="noborder"