Author: jmorliaguet
Date: Fri May 19 23:18:46 2006
New Revision: 3163

Modified:
   cpsskins/branches/paris-sprint-2006/setup/README.txt

Log:

- updated tests with the export of color fields



Modified: cpsskins/branches/paris-sprint-2006/setup/README.txt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/README.txt        (original)
+++ cpsskins/branches/paris-sprint-2006/setup/README.txt        Fri May 19 
23:18:46 2006
@@ -748,6 +748,25 @@
     >>> archive[binary_name] == portlet.data
     True
 
+Export of fields
+----------------
+
+    >>> from cpsskins.standard.fields.color import Color
+    >>> blue = Color(r=0, g=0, b=255)
+    >>> root[u'color-1'] = blue
+    >>> print blue
+    #0000ff
+
+    >>> archive = {}
+    >>> print toXML(blue, u'colors', archive=archive)
+    <?xml version="1.0" encoding="utf-8"?>
+    <colors>
+      <color id="...">
+        <color value="0, 0, 255"/>
+      </color>
+    </colors>
+    <BLANKLINE>
+
 
 Resolving URIs
 ==============
@@ -757,8 +776,6 @@
 Resources can be accessed by using the name of the setting under which the
 resource has been registered (cpsskins://[EMAIL PROTECTED]).
 
-    >>> from cpsskins.standard.fields.color import Color
-
     >>> color = Color(r=255, g=0, b=0)
     >>> root[u'color'] = color
     >>> print color
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to