Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Commit

Permalink
Register GS profile via ZCML
Browse files Browse the repository at this point in the history
svn path=/plone.app.relations/trunk/; revision=51255
  • Loading branch information
hannosch committed Jul 14, 2011
1 parent b2b2e69 commit 6500dd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 0 additions & 11 deletions plone/app/relations/__init__.py
@@ -1,6 +1,3 @@
from Products.GenericSetup import EXTENSION, profile_registry
from Products.CMFCore.interfaces import ISiteRoot

from Products.PluggableAuthService import registerMultiPlugin
from Products.CMFCore.permissions import ManagePortal
import local_role
Expand All @@ -14,11 +11,3 @@ def initialize(context):
constructors = (local_role.manage_addRelationshipLocalRoleManagerForm,
local_role.manage_addRelationshipLocalRoleManager),
visibility = None)

profile_registry.registerProfile('default',
'plone.app.relations',
'Extension profile for plone.app.relatons',
'profiles/default',
'plone.app.relations',
EXTENSION,
for_=ISiteRoot)
11 changes: 10 additions & 1 deletion plone/app/relations/configure.zcml
Expand Up @@ -2,11 +2,20 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:five="http://namespaces.zope.org/five"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:zcml="http://namespaces.zope.org/zcml">

<include package="plone.relations" />
<include package="zope.annotation" />

<genericsetup:registerProfile
name="default"
title="plone.app.relations"
directory="profiles/default"
description="Extension profile for plone.app.relatons"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<adapter factory=".source.RelationshipSource" />
<adapter factory=".target.RelationshipTarget" />
<adapter factory=".target.SymmetricRelation" />
Expand All @@ -15,7 +24,7 @@
<adapter factory=".workflow.DCWorkflowAdapter" />
<adapter factory=".userrelations.getUserRelatableProxy" />
<adapter factory=".userrelations.getUserFromProxy" />

<browser:page
for="Products.CMFCore.interfaces.ISiteRoot"
class=".utils.RelationsInstall"
Expand Down

0 comments on commit 6500dd8

Please sign in to comment.