Author: jmorliaguet
Date: Sun Jul  2 18:26:05 2006
New Revision: 3590

Modified:
   cpsskins/branches/paris-sprint-2006/locations/sources.txt
   cpsskins/branches/paris-sprint-2006/setup/io/README.txt
   cpsskins/branches/paris-sprint-2006/storage/relations.py

Log:

- test fix

- optimization in the relation storage



Modified: cpsskins/branches/paris-sprint-2006/locations/sources.txt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/locations/sources.txt   (original)
+++ cpsskins/branches/paris-sprint-2006/locations/sources.txt   Sun Jul  2 
18:26:05 2006
@@ -56,10 +56,10 @@
 
     >>> data_choice_in_context = data_choice_in_context.bind(l)
     >>> [t.value for t in data_choice_in_context.source]
-    [u'Theme:ThemePage']
+    [u'', u'Theme:ThemePage']
 
     >>> len(data_choice_in_context.source)
-    1
+    2
 
     >>> u'Theme:ThemePage' in data_choice_in_context.source
     True

Modified: cpsskins/branches/paris-sprint-2006/setup/io/README.txt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/io/README.txt     (original)
+++ cpsskins/branches/paris-sprint-2006/setup/io/README.txt     Sun Jul  2 
18:26:05 2006
@@ -281,7 +281,7 @@
     </portlets>
     <BLANKLINE>
 
-    >>> archive[u'image_data_120x120.png'] == portlet.data
+    >>> archive[u'standard.image_data_120x120.png'] == portlet.data
     True
 
 Export of fields

Modified: cpsskins/branches/paris-sprint-2006/storage/relations.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/storage/relations.py    (original)
+++ cpsskins/branches/paris-sprint-2006/storage/relations.py    Sun Jul  2 
18:26:05 2006
@@ -277,6 +277,8 @@
             raise ValueError("Must specify the relation id(s) to remove")
         if isinstance(ids, basestring):
             ids = [ids]
+        if not ids:
+            return
         for id in ids:
             if id not in self:
                 raise KeyError("No such relation (%s) in the storage." % id)
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to