Commit 80a8e2f3 by Ari Agung Prasetiyo

add path in xls and csv

1 parent 24c9f63f
......@@ -817,11 +817,13 @@ class BaseView(object):
def xls_response(self, **kwargs):
value = self.xls_data()
return xls_response(self.req, value)
filename = os.path.join(BASE_CLASS.temp_files, get_random_string(20)+".xls")
return xls_response(self.req, value, filename=filename)
def csv_response(self, **kwargs):
value = self.xls_data()
return csv_response(self.req, value)
filename = os.path.join(BASE_CLASS.temp_files, get_random_string(20)+".csv")
return csv_response(self.req, value, filename=filename)
def get_bindings(self, row=None):
return {"row": row}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!