entities/__init__.py
changeset 5557 1a534c596bff
parent 5556 9ab2b4c74baf
child 6039 6e84db1b3e44
--- a/entities/__init__.py	Thu May 20 20:47:55 2010 +0200
+++ b/entities/__init__.py	Thu May 20 20:50:00 2010 +0200
@@ -42,7 +42,7 @@
         for rschema, attrschema in self.e_schema.attribute_definitions():
             if rschema.meta:
                 continue
-            value = self.get_value(rschema.type)
+            value = self.cw_attr_value(rschema.type)
             if value:
                 # make the value printable (dates, floats, bytes, etc.)
                 return self.printable_value(rschema.type, value, attrschema.type,
@@ -107,7 +107,7 @@
         """
         if rtype is None:
             return self.dc_title().lower()
-        value = self.get_value(rtype)
+        value = self.cw_attr_value(rtype)
         # do not restrict to `unicode` because Bytes will return a `str` value
         if isinstance(value, basestring):
             return self.printable_value(rtype, format='text/plain').lower()