Index: /main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py	(revision 7855)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py	(revision 7856)
@@ -8,50 +8,22 @@
 will be used for rendering).
 
-The code was mainly taken from usphone implementation in z3c.widget
-(which was designed for outdated zope.app.form (instead of
-zope.formlib or newer form libs). Therefore some modifications were
-neccessary and it might look a bit overloaded.
-
 If you use the PhoneWidget for rendering regular TextLine attributes
 (preferably in edit forms or add forms), the phone number is displayed
 by three input fields representing the international code, the area
-code and the extension line. All three fields require pure numbers as
-input and do not accept other chars.
+code and the extension line.
 
 When the entered input is stored with a context object, it is stored
 as a single unicode string with the numbers divided by single hyphen.
 
-So, input <12>, <111>, <444> becomes the string ``'12-111-444'`` for
+So, input <+12>, <111>, <444> becomes the string ``'+12-111-444'`` for
 the context object.
-
-Large parts of this module are copied from z3c.widget and may be
-covered by ZPL.
-
 """
 import grok
 import re
-import copy
-from waeup.kofa.interfaces import MessageFactory as _
-from zope import schema
-from zope.browserpage import ViewPageTemplateFile
-from zope.component import getMultiAdapter
-from zope.formlib import form
-from zope.formlib.interfaces import (
-    IBrowserWidget, IWidgetInputErrorView, IInputWidget, WidgetInputError,
-    MissingInputError)
-from zope.formlib.widget import SimpleInputWidget
-from zope.interface import Interface, implements
-from zope.schema.interfaces import RequiredMissing
-
-
-from zc.sourcefactory.contextual import BasicContextualSourceFactory
+from zope.component import getUtility
+from zope.formlib.interfaces import MissingInputError, InputErrors
+from zope.interface import Interface
 from zope.formlib.textwidgets import (
     TextWidget, renderElement, ConversionError)
-from zope.formlib.widget import ValidationError
-from zope.component import getUtility
-from zope.interface import Invalid
-from zope.formlib.interfaces import (
-    WidgetInputError, MissingInputError, InputErrors,)
-from zope.schema.interfaces import RequiredMissing
 from waeup.kofa.interfaces import MessageFactory as _
 
