[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Fields/Generic - MethodField.py:1.1.2.2 TALESField.py:1.1.2.2
Martijn Pieters
mj@zope.com
Wed, 13 Feb 2002 00:03:35 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Fields/Generic
In directory cvs.zope.org:/tmp/cvs-serv14206/App/Formulator/Fields/Generic
Modified Files:
Tag: Zope-3x-branch
MethodField.py TALESField.py
Log Message:
Optimizations and code style updates:
- Use isinstance on type checks
- Test UnicodeType and StringType through StringTypes
- Remove use of the string module
- Use startswith and endswith instead of slices.
- Fix weird tests where isinstance suffices.
=== Zope3/lib/python/Zope/App/Formulator/Fields/Generic/MethodField.py 1.1.2.1 => 1.1.2.2 ===
from DummyField import fields
import Widget, Validator
from Globals import Persistent
=== Zope3/lib/python/Zope/App/Formulator/Fields/Generic/TALESField.py 1.1.2.1 => 1.1.2.2 ===
from DummyField import fields
import Widget, Validator
from Globals import Persistent