products/CPSonFive.old

changeset 2:edfc69361929

Improved empty handling
author lregebro
date Fri, 24 Jun 2005 16:09:07 +0000
parents 66ed83be593e
children 637830cb0c2a
files form/widget.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/form/widget.py
     1.2 +++ b/form/widget.py
     1.3 @@ -35,6 +35,8 @@
     1.4  
     1.5      def _toFieldValue(self, input):
     1.6          try:
     1.7 +            if not input:
     1.8 +                return input
     1.9              input = str(input)
    1.10              context = self.context.context
    1.11              portal_url = getToolByName(context, 'portal_url')