commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue-appserver/src geasInstance.py


From: Reinhard Mueller
Subject: gnue-appserver/src geasInstance.py
Date: Sat, 18 Oct 2003 17:54:26 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-appserver
Branch:         
Changes by:     Reinhard Mueller <address@hidden>       03/10/18 17:54:26

Modified files:
        src            : geasInstance.py 

Log message:
        Removed debugging messages.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/geasInstance.py.diff?tr1=1.27&tr2=1.28&r1=text&r2=text

Patches:
Index: gnue-appserver/src/geasInstance.py
diff -c gnue-appserver/src/geasInstance.py:1.27 
gnue-appserver/src/geasInstance.py:1.28
*** gnue-appserver/src/geasInstance.py:1.27     Sat Oct 18 17:32:32 2003
--- gnue-appserver/src/geasInstance.py  Sat Oct 18 17:54:26 2003
***************
*** 19,25 ****
  # write to the Free Software Foundation, Inc., 59 Temple Place
  # - Suite 330, Boston, MA 02111-1307, USA.
  #
! # $Id: geasInstance.py,v 1.27 2003/10/18 21:32:32 reinhard Exp $
  
  import types
  from mx import DateTime
--- 19,25 ----
  # write to the Free Software Foundation, Inc., 59 Temple Place
  # - Suite 330, Boston, MA 02111-1307, USA.
  #
! # $Id: geasInstance.py,v 1.28 2003/10/18 21:54:26 reinhard Exp $
  
  import types
  from mx import DateTime
***************
*** 85,91 ****
        
      elif propertydef.gnue_type == "date":
        s = self._record.getField (propertydef.column)
-       print "get date:" + repr (s)
        if s is None:                             # NULL
          return ""
        elif type (s) == types.UnicodeType:       # String DB field w/ Unicode
--- 85,90 ----
***************
*** 102,108 ****
  
      elif propertydef.gnue_type == "time":
        s = self._record.getField (propertydef.column)
-       print "get time:" + repr (s)
        if s is None:                             # NULL
          return ""
        elif type (s) == types.UnicodeType:       # String DB field w/ Unicode
--- 101,106 ----
***************
*** 119,125 ****
  
      elif propertydef.gnue_type == "datetime":
        s = self._record.getField (propertydef.column)
-       print "get datetime:" + repr (s)
        if s is None:                             # NULL
          return ""
        elif type (s) == types.UnicodeType:       # String DB field w/ Unicode
--- 117,122 ----
***************
*** 192,208 ****
        value = unicode (value, 'utf-8')
            
      elif propertydef.gnue_type == "number":
!       # TODO: check if value is an number
        pass
        
      elif propertydef.gnue_type == "date":
!       print "put date:" + repr (value)
  
      elif propertydef.gnue_type == "time":
!       print "put time:" + repr (value)
  
      elif propertydef.gnue_type == "datetime":
!       print "put datetime:" + repr (value)
  
      elif propertydef.gnue_type == "boolean":
        # Boolean property
--- 189,208 ----
        value = unicode (value, 'utf-8')
            
      elif propertydef.gnue_type == "number":
!       # TODO: check if value is a valid number, probably convert into 
int/float
        pass
        
      elif propertydef.gnue_type == "date":
!       # TODO: check if value is a valid date, probably convert into DateTime
!       pass
  
      elif propertydef.gnue_type == "time":
!       # TODO: check if value is a valid time, probably convert into DateTime
!       pass
  
      elif propertydef.gnue_type == "datetime":
!       # TODO: check if value is valid, probably convert into DateTime
!       pass
  
      elif propertydef.gnue_type == "boolean":
        # Boolean property




reply via email to

[Prev in Thread] Current Thread [Next in Thread]