Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export formulae #3

Open
leenaars opened this issue Feb 27, 2019 · 4 comments
Open

Export formulae #3

leenaars opened this issue Feb 27, 2019 · 4 comments

Comments

@leenaars
Copy link

Dear folks,

first thanks very much for making this open source after you closed down Revolver!

I've always been really curious how it worked, and have finally come round to building it.
Really cool! I do have one question: is it possible to export the data while retaining simple formulae? I currently only see a csv export, but that removes any cell references and replaces it with the calculated values, right? So you cannot backup and then roundtrip a document that way. Is there another option to save data - or even get it from the backend of the server?

@leenaars
Copy link
Author

Actually, having an restructuredText (or similar) output would already very much suit my use cases...

@hjwp
Copy link
Contributor

hjwp commented Feb 27, 2019

I guess you just set yourself a coding challenge!

@leenaars
Copy link
Author

leenaars commented Feb 27, 2019

So can you tell me where and how the data is stored? Perhaps python-lpod can be used to turn into an OpenDocument spreadsheet ...

@hjwp
Copy link
Contributor

hjwp commented Feb 28, 2019

I'm not sure I remember to be honest! Internally the data structure is a dict of objects which have a .value and a .formula object.

I can't remember whether we store it in a database, or on disk as json, or what... probably in the database, as json, I would guess. if you want to try and extract directly from the db, maybe check the django models and see if you can find what column it's in?

If you wanted to make an actual button and a UI for this, you could have a look at the way the csv exporter works (search the codebase for "csv") and try and make a copy of that, and modify it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants