we should access to __regid__ instead of id since in that case bw compat fail: access to id throuhg a class returns the property object instead of calling the property's method
authorStephanie Marcu
Tue, 19 Jan 2010 12:19:14 +0100
changeset 4262 83d245d33436
parent 4261 b45a3563c6bb
child 4263 c541602a309d
we should access to __regid__ instead of id since in that case bw compat fail: access to id throuhg a class returns the property object instead of calling the property's method
web/views/iprogress.py
--- a/web/views/iprogress.py	Tue Jan 19 12:17:22 2010 +0100
+++ b/web/views/iprogress.py	Tue Jan 19 12:19:14 2010 +0100
@@ -87,7 +87,7 @@
 
     def header_for_milestone(self, ecls):
         """use entity's type as label"""
-        return display_name(self._cw, ecls.id)
+        return display_name(self._cw, ecls.__regid__)
 
     def table_header(self, ecls):
         """builds the table's header"""