From 01fa3575deb3e47faa6bd8c6d0801065819e54eb Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Thu, 28 Feb 2008 09:55:29 +0000 Subject: [PATCH] Added a method getColumnPropertyTypeName which is useful for chart objects. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19551 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 328a54b0cb..5a73bb37a2 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -2776,6 +2776,16 @@ class ListBoxLine: return config_column + [self.column_dict[column_id] for column_id in column_id_list] + security.declarePublic('getColumnPropertyTypeName') + def getColumnPropertyTypeName(self, column_id): + """ + Returns the type of a property of a column in + the form of a string + + NOTE: experimental method - may change in the future + """ + return type(self.column_dict[column_id]).__name__ + security.declarePublic('getColumnItemList') def getColumnItemList(self, column_id_list = None ): """ -- 2.30.9