rev |
line source |
ma@0
|
1 # (C) Copyright 2010 CPS-CMS community <http://cps-cms.org/>
|
ma@0
|
2 # Authors:
|
ma@0
|
3 # M.-A. Darche <cps@cynode.org>
|
ma@0
|
4 #
|
ma@0
|
5 # This program is free software: you can redistribute it and/or modify
|
ma@0
|
6 # it under the terms of the GNU General Public License as published by
|
ma@0
|
7 # the Free Software Foundation, either version 2 of the License, or
|
ma@0
|
8 # (at your option) any later version.
|
ma@0
|
9 #
|
ma@0
|
10 # This program is distributed in the hope that it will be useful,
|
ma@0
|
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
ma@0
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
ma@0
|
13 # GNU General Public License for more details.
|
ma@0
|
14 #
|
ma@0
|
15 # You should have received a copy of the GNU General Public License
|
ma@0
|
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
ma@0
|
17 """ Init """
|
ma@0
|
18
|
ma@0
|
19 from Products.CMFCore.DirectoryView import registerDirectory
|
ma@0
|
20
|
ma@0
|
21 from Products.GenericSetup import profile_registry
|
ma@0
|
22 from Products.GenericSetup import EXTENSION
|
ma@0
|
23
|
ma@0
|
24 from Products.CPSDefault.Portal import CPSDefaultSite
|
ma@0
|
25
|
ma@0
|
26 from Products.CPSCore.interfaces import ICPSSite
|
ma@0
|
27
|
ma@0
|
28 registerDirectory('skins', globals())
|
ma@0
|
29
|
ma@0
|
30 import factory
|
ma@0
|
31
|
ma@0
|
32 class CpsDemoPortal(CPSDefaultSite):
|
ma@0
|
33 """ Just a marker.
|
ma@0
|
34
|
ma@0
|
35 I'd rather add constructors to CPSDefault. Don't know if it'd work"""
|
ma@0
|
36 meta_type = 'CPS Demo Portal'
|
ma@0
|
37
|
ma@0
|
38 def initialize(registrar):
|
ma@0
|
39 profile_registry.registerProfile(
|
ma@0
|
40 'default',
|
ma@0
|
41 "cps-cms.org look and feel",
|
ma@0
|
42 "CPS demo portal extension profile",
|
ma@0
|
43 'profiles/default',
|
ma@0
|
44 'CpsDemoPortal',
|
ma@0
|
45 EXTENSION,
|
ma@0
|
46 for_=ICPSSite)
|
ma@0
|
47
|
ma@0
|
48 registrar.registerClass(CpsDemoPortal,
|
ma@0
|
49 constructors=(factory.addConfiguredCpsDemoPortalForm,
|
ma@0
|
50 factory.addConfiguredCpsDemoPortal))
|
ma@0
|
51
|