Author: reinhard
Date: 2008-07-17 13:31:21 -0500 (Thu, 17 Jul 2008)
New Revision: 9887
Modified:
trunk/gnue-appserver/src/geasInstance.py
trunk/gnue-common/src/datasources/GConditions.py
trunk/gnue-common/src/datasources/readgsd.py
Log:
Added comments about how to avoid now deprecated GDateTime module.
Modified: trunk/gnue-appserver/src/geasInstance.py
===================================================================
--- trunk/gnue-appserver/src/geasInstance.py 2008-07-14 08:01:02 UTC (rev 9886)
+++ trunk/gnue-appserver/src/geasInstance.py 2008-07-17 18:31:21 UTC (rev 9887)
@@ -108,6 +108,8 @@
def __convert (self, value, propertydef, exception):
+ # TODO: use gnue-common's datatypes.convert() function for this.
+
if value is None:
# "None" is always valid, independent of data type
return None
Modified: trunk/gnue-common/src/datasources/GConditions.py
===================================================================
--- trunk/gnue-common/src/datasources/GConditions.py 2008-07-14 08:01:02 UTC (rev 9886)
+++ trunk/gnue-common/src/datasources/GConditions.py 2008-07-17 18:31:21 UTC (rev 9887)
@@ -523,6 +523,7 @@
def __typecast (self):
+ # TODO: use datatypes.convert() for this
dtype = self.type.lower ()
if dtype == 'boolean':
@@ -1578,6 +1579,7 @@
@return: sequence of converted items having all the same datatype.
"""
+ # TODO: This could be moved to the datatypes module.
checktype (values, list)
result = []
Modified: trunk/gnue-common/src/datasources/readgsd.py
===================================================================
--- trunk/gnue-common/src/datasources/readgsd.py 2008-07-14 08:01:02 UTC (rev 9886)
+++ trunk/gnue-common/src/datasources/readgsd.py 2008-07-17 18:31:21 UTC (rev 9887)
@@ -649,6 +649,8 @@
length = hasattr(field, 'length') and field.length or 0
scale = hasattr(field, 'precision') and field.precision or 0
+ # TODO: Use datatypes.convert instead of the following code
+
# return string type fields with an optional length restriction
if ftype == 'string':
maxlen = length and length or len(contents)
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.