Logo Search packages:      
Sourcecode: zope-atextensions version File versions  Download package

smartemail.py

from Globals import InitializeClass
from Products.Archetypes.Registry import registerField
from Products.ATExtensions.Extensions.utils import getDisplayList
from Products.Archetypes.Field import StringField
from Products.ATExtensions.widget import SmartEmailWidget


00008 class SmartEmailField(StringField):
    """ SmartEmailField with isEmail validator and the SmartEmailWidget """
    _properties = StringField._properties.copy()
    _properties.update({
        'type':'smartemail',
        'validators':('isEmail'),
        'widget':SmartEmailWidget,
        })

    def getRawValue(self,instance):
          return self.get(instance)
    
InitializeClass(SmartEmailField)

Generated by  Doxygen 1.6.0   Back to index