[CMF-checkins] CVS: CMF/CMFUid - __init__.py:1.5.2.1
Yvo Schubbe
y.2005- at wcm-solutions.de
Tue Apr 5 11:17:49 EDT 2005
Update of /cvs-repository/CMF/CMFUid
In directory cvs.zope.org:/tmp/cvs-serv8223/CMFUid
Modified Files:
Tag: CMF-1_5-branch
__init__.py
Log Message:
backported recent CMFSetup changes from HEAD to CMF-1_5-branch
=== CMF/CMFUid/__init__.py 1.5 => 1.5.2.1 ===
--- CMF/CMFUid/__init__.py:1.5 Thu Aug 12 11:07:43 2004
+++ CMF/CMFUid/__init__.py Tue Apr 5 11:17:17 2005
@@ -18,6 +18,12 @@
from sys import modules
from Products.CMFCore import utils
+try:
+ from Products.CMFSetup import EXTENSION
+ from Products.CMFSetup import profile_registry
+ has_profile_registry = True
+except ImportError:
+ has_profile_registry = False
import UniqueIdAnnotationTool
import UniqueIdGeneratorTool
@@ -44,3 +50,11 @@
, product_name='CMFUid'
, icon='tool.gif'
).initialize(context)
+
+ if has_profile_registry:
+ profile_registry.registerProfile('default',
+ 'CMFUid',
+ 'Adds UID support.',
+ 'profiles/default',
+ 'CMFUid',
+ EXTENSION)
More information about the CMF-checkins
mailing list