[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Forms/Views/Browser - Converter.py:1.2 configure.zcml:1.3
Martijn Faassen
m.faassen@vet.uu.nl
Sun, 14 Jul 2002 13:31:17 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv17766/Views/Browser
Modified Files:
Converter.py configure.zcml
Log Message:
Renamed String, Integer, Boolean, Dictionary to the more Pythonic
Str, Int, Bool and Dict.
=== Zope3/lib/python/Zope/App/Forms/Views/Browser/Converter.py 1.1 => 1.2 ===
return raw_value
-class RequestToStringConverter(Converter):
+class RequestToStrConverter(Converter):
"""A specific class converting the in the request contained variable to
a string."""
__convert_from__ = IRequest
- __convert_to__ = IString
+ __convert_to__ = IStr
-class RequestToIntegerConverter(ContainerConverter):
- """Convert from Request to an Integer."""
- converters = [RequestToStringConverter, StringToIntegerConverter]
+class RequestToIntConverter(ContainerConverter):
+ """Convert from Request to an Int."""
+ converters = [RequestToStrConverter, StrToIntrConverter]
class RequestToFloatConverter(ContainerConverter):
"""Convert from Request to an Float."""
- converters = [RequestToStringConverter, StringToFloatConverter]
+ converters = [RequestToStrConverter, StrToFloatConverter]
=== Zope3/lib/python/Zope/App/Forms/Views/Browser/configure.zcml 1.2 => 1.3 ===
<!-- Form Widget View Directives -->
<browser:view
permission="Zope.View"
- for="Schema.IField.IString"
+ for="Schema.IField.IStr"
name="normal"
factory=".TextWidget." />
<browser:view
permission="Zope.View"
- for="Schema.IField.IBoolean"
+ for="Schema.IField.IBool"
name="normal"
factory=".CheckboxWidget." />