[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Forms - Converter.py:1.2

Martijn Faassen m.faassen@vet.uu.nl
Sun, 14 Jul 2002 13:31:47 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms
In directory cvs.zope.org:/tmp/cvs-serv17766

Modified Files:
	Converter.py 
Log Message:
Renamed String, Integer, Boolean, Dictionary to the more Pythonic
Str, Int, Bool and Dict.


=== Zope3/lib/python/Zope/App/Forms/Converter.py 1.1 => 1.2 ===
         return value
 
 
-class StringToIntegerConverter(FieldConverter):
+class StrToIntConverter(FieldConverter):
     """ """
-    __convert_from__ = IString
-    __convert_to__ = IInteger
+    __convert_from__ = IStr
+    __convert_to__ = IInt
 
 
-class StringToFloatConverter(FieldConverter):
+class StrToFloatConverter(FieldConverter):
     """ """
-    __convert_from__ = IString
+    __convert_from__ = IStr
     __convert_to__ = IFloat
 
 
-class StringToBooleanConverter(FieldConverter):
+class StrToBoolConverter(FieldConverter):
     """ """
-    __convert_from__ = IString
-    __convert_to__ = IBoolean
+    __convert_from__ = IStr
+    __convert_to__ = IBool
 
 
 
 class RequestConverter(Converter):
     """ """
     __convert_from__ = IRequest
-    __convert_to__ = IString
+    __convert_to__ = IStr
     
     field_prefix = 'field_'