[Commits] (vajda) Fixed a few typos/bugs found by Ted.

commits at osafoundation.org commits at osafoundation.org
Fri Jan 9 14:55:18 PST 2004


Commit by: vajda
Modified files:
osaf/chandler/Chandler/repository/schema/Types.py 1.46 1.47

Log message:
Fixed a few typos/bugs found by Ted.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/repository/schema/Types.py.diff?r1=text&tr1=1.46&r2=text&tr2=1.47

Index: osaf/chandler/Chandler/repository/schema/Types.py
diff -u osaf/chandler/Chandler/repository/schema/Types.py:1.46 osaf/chandler/Chandler/repository/schema/Types.py:1.47
--- osaf/chandler/Chandler/repository/schema/Types.py:1.46	Thu Jan  8 22:07:20 2004
+++ osaf/chandler/Chandler/repository/schema/Types.py	Fri Jan  9 14:54:48 2004
@@ -1,6 +1,6 @@
 
-__revision__  = "$Revision: 1.46 $"
-__date__      = "$Date: 2004/01/09 06:07:20 $"
+__revision__  = "$Revision: 1.47 $"
+__date__      = "$Date: 2004/01/09 22:54:48 $"
 __copyright__ = "Copyright (c) 2002 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -699,11 +699,7 @@
 
     def makeString(self, value):
 
-        strings = []
-        for k, v in self.value.iteritems():
-            strings.append("%s:%s" %(k, v))
-
-        return ",".join(strings)
+        return ",".join(["%s:%s" %(k, v) for k, v in value.iteritems()])
 
     def _empty(self):
 
@@ -774,7 +770,7 @@
         return self.getRepository().getLobType('text')
 
     def makeValue(self, data,
-                  encoding='utf-8', mimeType='text/plain', compression='bz2'):
+                  encoding='utf-8', mimetype='text/plain', compression='bz2'):
 
         text = self.getImplementationType()(encoding, mimetype)
         if data:



More information about the Commits mailing list