[Checkins] SVN: cipher.configstore/trunk/src/cipher/configstore/configstore.py Added support for set fields.

Albertas Agejevas cvs-admin at zope.org
Tue Jun 5 19:32:29 UTC 2012


Log message for revision 126599:
  Added support for set fields.
  

Changed:
  U   cipher.configstore/trunk/src/cipher/configstore/configstore.py

-=-
Modified: cipher.configstore/trunk/src/cipher/configstore/configstore.py
===================================================================
--- cipher.configstore/trunk/src/cipher/configstore/configstore.py	2012-06-05 16:37:12 UTC (rev 126598)
+++ cipher.configstore/trunk/src/cipher/configstore/configstore.py	2012-06-05 19:32:25 UTC (rev 126599)
@@ -87,6 +87,9 @@
     def load_type_Tuple(self, unicode, field):
         return tuple(self.load_type_List(unicode, field))
 
+    def load_type_Set(self, unicode, field):
+        return set(self.load_type_List(unicode, field))
+
     def _load_field(self, name, field, config, context=None):
         if context is None:
             context = self.context
@@ -168,6 +171,7 @@
         return self.listValueSeparator.join(value) if value else ''
 
     dump_type_List = dump_type_Tuple
+    dump_type_Set = dump_type_Tuple
 
     def _dump_field(self, name, field, config, value=novalue):
         __traceback_info__ = (name, field)



More information about the checkins mailing list