Changeset 2011 in products


Ignore:
Timestamp:
Mar 25, 2010 3:43:16 PM (14 years ago)
Author:
liebster
Message:

Changed registration profile and skins to use general setup

Location:
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/__init__.py

    r1 r2011  
    11from Products.CMFCore import utils 
    2 from Products.CMFCore.interfaces import ISiteRoot 
    3 from Products.CMFCore.DirectoryView import registerDirectory 
    42from Products.Archetypes.atapi import process_types, listTypes 
    5 from Products.GenericSetup import EXTENSION, profile_registry 
    63 
    74from permissions import ADD_PERMISSION 
    8 from config import * 
     5from config import PROJECTNAME 
    96import validators 
    107import content 
    11  
    12 registerDirectory(SKINS_DIR, GLOBALS) 
    138 
    149def initialize(context): 
     
    2318        fti                = ftis, 
    2419        ).initialize(context) 
    25  
    26     profile_desc = "Installs CaptchaField content type." 
    27     profile_registry.registerProfile('default', 
    28                                       PROJECTNAME, 
    29                                       profile_desc, 
    30                                      'profiles/default', 
    31                                       PROJECTNAME, 
    32                                       EXTENSION, 
    33                                       for_=ISiteRoot, 
    34                                     ) 
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/config.py

    r1973 r2011  
    11PROJECTNAME = "quintagroup.pfg.captcha" 
    2 SKINS_DIR = "skins" 
    3 GLOBALS = globals() 
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/configure.zcml

    r1974 r2011  
    22    xmlns="http://namespaces.zope.org/zope" 
    33    xmlns:five="http://namespaces.zope.org/five" 
     4    xmlns:genericsetup="http://namespaces.zope.org/genericsetup" 
     5    xmlns:cmf="http://namespaces.zope.org/cmf" 
    46    i18n_domain="quintagroup.pfg.captcha"> 
    57 
    68    <five:registerPackage package="." initialize=".initialize" /> 
     9    <cmf:registerDirectory name="qplonecaptchafield"  directory="skins" recursive="True" /> 
     10 
     11    <genericsetup:registerProfile 
     12       name="default" 
     13       title="quintagroup.pfg.captcha" 
     14       directory="profiles/default" 
     15       description="Installs CaptchaField content type." 
     16       for ="Products.CMFCore.interfaces.ISiteRoot" 
     17       provides="Products.GenericSetup.interfaces.EXTENSION" 
     18       /> 
    719 
    820</configure> 
Note: See TracChangeset for help on using the changeset viewer.