smcmahon/Products.PloneFormGen — Issue #28: download csv - serverside fields not listed
Author: znbn
Created: 2012-02-08 12:11:29+00:00
State: open

in saveDataAdapter.py the function getColumnNames() does not return server side variable (but data are saved in csv)

I just modifies 3 lines... I send them here, I hope you will find them usefull

---------------------------------------------------------------------------
method: getColumnNames

old:
def getColumnNames(self):

new:
def getColumnNames(self, excludeServerSide=True):
----------------------------------------------------------------------------
method: getColumnNames

old:
names = [field.getName() for field in self.fgFields(displayOnly=True)]
new:
names = [field.getName() for field in self.fgFields(displayOnly=True, excludeServerSide=excludeServerSide)]
---------------------------------------------------------------------------
method: download_csv

old:
res = "%s\n" % delimiter.join( self.getColumnNames() )
new:
res = "%s\n" % delimiter.join( self.getColumnNames(excludeServerSide=False) )

---------------------------------------------------------------------------