commit-gnue
[Top][All Lists]
Advanced

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

gnue-appserver/src geasInstance.py test.py


From: Jan Ischebeck
Subject: gnue-appserver/src geasInstance.py test.py
Date: Thu, 09 Oct 2003 17:42:10 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-appserver
Branch:         
Changes by:     Jan Ischebeck <address@hidden>  03/10/09 17:42:10

Modified files:
        src            : geasInstance.py test.py 

Log message:
        - add gConfig support to test client (needed to test SchemaSupport)
        - replace "decode" with "unicode" for python 2.1

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/geasInstance.py.diff?tr1=1.21&tr2=1.22&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/test.py.diff?tr1=1.18&tr2=1.19&r1=text&r2=text

Patches:
Index: gnue-appserver/src/geasInstance.py
diff -c gnue-appserver/src/geasInstance.py:1.21 
gnue-appserver/src/geasInstance.py:1.22
*** gnue-appserver/src/geasInstance.py:1.21     Tue Oct  7 17:06:32 2003
--- gnue-appserver/src/geasInstance.py  Thu Oct  9 17:42:10 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.21 2003/10/07 21:06:32 siesel Exp $
  
  import types
  
--- 19,25 ----
  # write to the Free Software Foundation, Inc., 59 Temple Place
  # - Suite 330, Boston, MA 02111-1307, USA.
  #
! # $Id: geasInstance.py,v 1.22 2003/10/09 21:42:10 siesel Exp $
  
  import types
  
***************
*** 116,122 ****
        # String property (the id is actually a string, too)
        try:
          # decode unicode values from utf-8 
!         value = value.decode('utf-8')
        except (AttributeError, UnicodeError):
          # return normal string in all other cases (this will raise a warning 
by
          # the dbdriver
--- 116,122 ----
        # String property (the id is actually a string, too)
        try:
          # decode unicode values from utf-8 
!         value = unicode(value,'utf-8')
        except (AttributeError, UnicodeError):
          # return normal string in all other cases (this will raise a warning 
by
          # the dbdriver
Index: gnue-appserver/src/test.py
diff -c gnue-appserver/src/test.py:1.18 gnue-appserver/src/test.py:1.19
*** gnue-appserver/src/test.py:1.18     Mon Sep  1 14:01:45 2003
--- gnue-appserver/src/test.py  Thu Oct  9 17:42:10 2003
***************
*** 19,25 ****
  # write to the Free Software Foundation, Inc., 59 Temple Place
  # - Suite 330, Boston, MA 02111-1307, USA.
  #
! # $Id: test.py,v 1.18 2003/09/01 18:01:45 reinhard Exp $
  
  import os
  from gnue.common.apps import GClientApp
--- 19,25 ----
  # write to the Free Software Foundation, Inc., 59 Temple Place
  # - Suite 330, Boston, MA 02111-1307, USA.
  #
! # $Id: test.py,v 1.19 2003/10/09 21:42:10 siesel Exp $
  
  import os
  from gnue.common.apps import GClientApp
***************
*** 31,36 ****
--- 31,41 ----
  # 
=============================================================================
  
  class testApp (GClientApp.GClientApp):
+ 
+   def __init__(self, connections=None):
+     ConfigOptions = {}
+     GClientApp.GClientApp.__init__(self, connections,'none',ConfigOptions)
+ 
  
    # 
---------------------------------------------------------------------------
    # Create a session manager object




reply via email to

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