web/views/csvexport.py
changeset 4045 f4a52abb6f4f
parent 4023 eae23c40627a
child 4252 6c4f109c2b03
--- a/web/views/csvexport.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/csvexport.py	Tue Dec 08 16:50:36 2009 +0100
@@ -40,7 +40,7 @@
         writer = self.csvwriter()
         writer.writerow(self.columns_labels())
         rset, descr = self.cw_rset, self.cw_rset.description
-        eschema = self._cw.schema.eschema
+        eschema = self._cw.vreg.schema.eschema
         for rowindex, row in enumerate(rset):
             csvrow = []
             for colindex, val in enumerate(row):