Working on Exports
Mid-terms went well. Having completed CSV Import feature as per plan, I have moved to implement the second half of the project i.e. CSV Export feature. I was able to share most of the code with CSV Import and could quickly get the views for exports running. I found that more methods could be shared between the Window.Import and Window.Export classes. I am directly implementing them in sao. Have filed an issue for doing the same on tryton.
This is how the export dialog looks now:
I was finally able to use upload.py to submit the code to codereview. I was stuck due an uncommitted change. upload.py showed me:
Got error status from 'git show 016505c960eb7cdf2b2850a5f88fe3b5e79fc189'
Tried searching about this error, but ended up in links to the source code of upload.py itself 😆 Then I tried removing the index.html’s uncommitted changes with git checkout -- index.html and then upload.py worked! I use the tryton-sao.js file instead of the minified file so that live-reload works properly, it enables me to see changes without refreshing the entire page. From now on I use git stash to remove the changes before calling upload.py
It was quite exciting getting feedback on my code from mentors. I had missed some obvious things and made the necessary changes.
Another thing that I am trying to do is to switch to vim from sublime text. I want to replicate my existing workflow with vim. I am not quite there yet. I am unable to make custom keybindings work. Would write more on it, when I finally get it working.
Happy Coding everyone!

















