commit-gnue
[Top][All Lists]
Advanced

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

r5513 - trunk/gnue-appserver/src


From: reinhard
Subject: r5513 - trunk/gnue-appserver/src
Date: Thu, 25 Mar 2004 17:18:17 -0600 (CST)

Author: reinhard
Date: 2004-03-25 17:18:16 -0600 (Thu, 25 Mar 2004)
New Revision: 5513

Modified:
   trunk/gnue-appserver/src/geasInstance.py
Log:
Also accept StringType for string properties, not only UnicodeType.


Modified: trunk/gnue-appserver/src/geasInstance.py
===================================================================
--- trunk/gnue-appserver/src/geasInstance.py    2004-03-25 23:17:47 UTC (rev 
5512)
+++ trunk/gnue-appserver/src/geasInstance.py    2004-03-25 23:18:16 UTC (rev 
5513)
@@ -76,6 +76,8 @@
       # String property: we expect the database to deliver a unicode string
       if isinstance (value, types.UnicodeType):
         return value
+      elif isinstance (value, types.StringType):
+        return unicode (value)
       else:
         raise exception (propertydef.fullName, value)
 





reply via email to

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