Is there an appropriate web2py way to write to the filesystem?
My ultimate goal is to have a custom export class for SQLFORM.grid which
will allow the user to download a CSV of the data, but also store a copy of
that CSV file on the file system for use by other applications on the same
web server.
Currently, I'm using file = open(directory mangling, 'w') in my custom
export class, but I feel like there's probably a better way.
My ultimate goal is to have a custom export class for SQLFORM.grid which
will allow the user to download a CSV of the data, but also store a copy of
that CSV file on the file system for use by other applications on the same
web server.
Currently, I'm using file = open(directory mangling, 'w') in my custom
export class, but I feel like there's probably a better way.