Author: jmorliaguet
Date: Fri May 19 23:16:08 2006
New Revision: 3162

Modified:
   cpsskins/branches/paris-sprint-2006/standard/fields/color.py

Log:

- fixed the schema of colors



Modified: cpsskins/branches/paris-sprint-2006/standard/fields/color.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/standard/fields/color.py        
(original)
+++ cpsskins/branches/paris-sprint-2006/standard/fields/color.py        Fri May 
19 23:16:08 2006
@@ -20,6 +20,7 @@
 from persistent import Persistent
 
 from zope.interface import implements, Interface
+from zope.schema import Tuple, Int
 
 from cpsskins.elements.element import Element
 from cpsskins.elements.interfaces import IField
@@ -27,6 +28,11 @@
 class IColor(IField):
     """A web color."""
 
+    color = Tuple(
+        title=u"RGB triplet.",
+        value_type=Int(title=u"Color component"),
+        )
+
     def hex():
         """HEX representation: #fcfcfc
         """
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to