Index: /main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/export.py
===================================================================
--- /main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/export.py	(revision 14218)
+++ /main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/export.py	(revision 14219)
@@ -58,2 +58,18 @@
     title = _(u'RIAA Customer Contracts')
     class_name = 'RIAAContract'
+
+    def mangle_value(self, value, name, context=None):
+
+        if name == 'history':
+            return value.messages
+        mangled_value = getattr(value, 'document_id', None)
+        if mangled_value:
+            return mangled_value
+        mangled_value = getattr(value, 'product_id', None)
+        if mangled_value:
+            return mangled_value
+        if name == 'product_options' and value is not None:
+            return [eval(entry.to_string()) for entry in value]
+        return super(
+            ContractExporterBase, self).mangle_value(
+            value, name, context=context)
Index: /main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_browser.py
===================================================================
--- /main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_browser.py	(revision 14218)
+++ /main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_browser.py	(revision 14219)
@@ -286,5 +286,5 @@
         self.contract.tc_dict = {'en': u'<strong>Hello world</strong>'}
         self.contract.title = u'Contract Title'
-        self.browser.open(self.customer_path + '/contracts/CON1')
+        self.browser.open(self.customer_path + '/contracts/11111222223333344444555556666677')
         self.browser.getLink("Download contract slip").click()
         self.assertEqual(self.browser.headers['Status'], '200 Ok')
