Author: jmorliaguet
Date: Fri May 26 20:35:13 2006
New Revision: 3228

Modified:
   cpsskins/branches/paris-sprint-2006/relations/configure.zcml
   cpsskins/branches/paris-sprint-2006/relations/relations.py

Log:

- use real factories



Modified: cpsskins/branches/paris-sprint-2006/relations/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/relations/configure.zcml        
(original)
+++ cpsskins/branches/paris-sprint-2006/relations/configure.zcml        Fri May 
26 20:35:13 2006
@@ -113,19 +113,19 @@
   <!-- Factories -->
   <utility
       name="cpsskins.relation.monad"
-      component="cpsskins.relations.relations.MonadicRelation"
+      component="cpsskins.relations.relations.MonadicRelationFactory"
       provides="zope.component.interfaces.IFactory"
   />
 
   <utility
       name="cpsskins.relation.dyad"
-      component="cpsskins.relations.relations.DyadicRelation"
+      component="cpsskins.relations.relations.DyadicRelationFactory"
       provides="zope.component.interfaces.IFactory"
   />
 
   <utility
       name="cpsskins.relation.triad"
-      component="cpsskins.relations.relations.TriadicRelation"
+      component="cpsskins.relations.relations.TriadicRelationFactory"
       provides="zope.component.interfaces.IFactory"
   />
 

Modified: cpsskins/branches/paris-sprint-2006/relations/relations.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/relations/relations.py  (original)
+++ cpsskins/branches/paris-sprint-2006/relations/relations.py  Fri May 26 
20:35:13 2006
@@ -19,6 +19,7 @@
 
 from persistent import Persistent
 
+from zope.component.factory import Factory
 from zope.app.container.interfaces import IContained
 from zope.interface import implements
 from zope.security.proxy import removeSecurityProxy as trusted
@@ -251,3 +252,7 @@
     def __repr__(self):
         return self.name
 
+MonadicRelationFactory = Factory(MonadicRelation)
+DyadicRelationFactory = Factory(DyadicRelation)
+TriadicRelationFactory = Factory(TriadicRelation)
+
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to