[Commits] (john) * removed str and replaced with unicode
commits at osafoundation.org
commits at osafoundation.org
Thu Feb 3 11:51:29 PST 2005
Commit by: john
Modified files:
chandler/parcels/osaf/views/repositoryviewer/Repository.py 1.21 1.22
Log message:
* removed str and replaced with unicode
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/repositoryviewer/Repository.py.diff?r1=text&tr1=1.21&r2=text&tr2=1.22
Index: chandler/parcels/osaf/views/repositoryviewer/Repository.py
diff -u chandler/parcels/osaf/views/repositoryviewer/Repository.py:1.21 chandler/parcels/osaf/views/repositoryviewer/Repository.py:1.22
--- chandler/parcels/osaf/views/repositoryviewer/Repository.py:1.21 Tue Feb 1 15:10:43 2005
+++ chandler/parcels/osaf/views/repositoryviewer/Repository.py Thu Feb 3 11:51:28 2005
@@ -1,8 +1,8 @@
""" Classes used by the repository view
"""
-__version__ = "$Revision: 1.21 $"
-__date__ = "$Date: 2005/02/01 23:10:43 $"
+__version__ = "$Revision: 1.22 $"
+__date__ = "$Date: 2005/02/03 19:51:28 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -25,15 +25,15 @@
def GetElementValues(self, element):
cellValues = [element.itsName or '(anonymous)']
try:
- cellValues.append (str (element.getItemDisplayName()))
+ cellValues.append (unicode (element.getItemDisplayName()))
except AttributeError:
cellValues.append (' ')
try:
cellValues.append (element.itsKind.itsName)
except AttributeError:
cellValues.append (' ')
- cellValues.append (str (element.itsUUID))
- cellValues.append (str (element.itsPath))
+ cellValues.append (unicode (element.itsUUID))
+ cellValues.append (unicode (element.itsPath))
return cellValues
def ElementHasChildren(self, element):
@@ -61,7 +61,7 @@
else:
kind = "(kindless)"
- dn = str(reference.getItemDisplayName())
+ dn = unicode(reference.getItemDisplayName())
# Escape < and > for HTML display
kind = kind.replace("<", "<").replace(">", ">")
@@ -89,14 +89,14 @@
if isinstance(v, dict):
tmpList = ["<li><b>%s:</b></li><ul>" % k]
for attr in v:
- attrString = str(attr)
+ attrString = unicode(attr)
attrString = attrString.replace("<", "<")
attrString = attrString.replace(">", ">")
tmpList.append("<li>%s</li>" % attrString)
tmpList.append("</ul>")
valueAttr.append((k, "".join(tmpList)))
else:
- value = str(v)
+ value = unicode(v)
value = value.replace("<", "<")
value = value.replace(">", ">")
valueAttr.append((k,"<li><b>%s: </b>%s</li>" % (k, value)))
@@ -150,11 +150,11 @@
cellValues.append (' ')
try:
- cellValues.append (str (element.getItemDisplayName()))
+ cellValues.append (unicode (element.getItemDisplayName()))
except AttributeError:
cellValues.append (' ')
- cellValues.append (str (element.itsUUID))
- cellValues.append (str (element.itsPath))
+ cellValues.append (unicode (element.itsUUID))
+ cellValues.append (unicode (element.itsPath))
return cellValues
def ElementHasChildren(self, element):
More information about the Commits
mailing list