Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Export function #12

Closed
ghost opened this issue Nov 19, 2014 · 24 comments
Closed

Export function #12

ghost opened this issue Nov 19, 2014 · 24 comments

Comments

@ghost
Copy link

ghost commented Nov 19, 2014

Hey!

are there any plans for implementing an export function in nearer future? Since I see me updating quite frequently, I want to backup my notes outside of the server environment.

best regards!

@Liongold
Copy link
Contributor

What format would you like to export in?
On 19 Nov 2014 10:00, "volkerpfosten" notifications@github.com wrote:

Hey!

are there any plans for implementing an export function in nearer future?
Since I see me updating quite frequently, I want to backup my notes outside
of the server environment.

best regards!


Reply to this email directly or view it on GitHub
#12.

@ghost
Copy link
Author

ghost commented Nov 19, 2014

That doesn't really matter to me. I just thaught about a backup-solution prior to updating paperwork. So when things go wild, you are able to restore your notes with a fresh installation/database.
There is the ability to import from evernote files. Perhaps this is possible the way around?

@mrusme
Copy link
Member

mrusme commented Nov 25, 2014

@Liongold we could try to play cool and export data in Evernote's XML format. Then the user could easily migrate from Paperwork to Evernote, if he'd like to. Besides, an Evernote XML importer is planned anyway, so we could use that to bring back the data.

@volkerpfosten as a temporary solution you could pretty much just dump the whole MySQL database. :-)

@Liongold
Copy link
Contributor

Liongold commented Dec 1, 2014

I assume the Evernote XML is this
https://dev.evernote.com/doc/articles/enml.php, right?

On Tuesday, November 25, 2014, Marius notifications@github.com wrote:

@Liongold https://github.com/Liongold we could try to play cool and
export data in Evernote's XML format. Then the user could easily migrate
from Paperwork to Evernote, if he'd like to. Besides, an Evernote XML
importer is planned anyway, so we could use that to bring back the data.

@volkerpfosten https://github.com/volkerpfosten as a temporary solution
you could pretty much just dump the whole MySQL database. :-)


Reply to this email directly or view it on GitHub
#12 (comment).

Sincerely,
Jean Spiteri.

@mrusme
Copy link
Member

mrusme commented Dec 1, 2014

@Liongold yupp, that's right. I've created & exported 3 test-notes, containing attachments and various formatting options, see here: https://gist.github.com/devilx/1e093ba85713122f5c76

@Liongold
Copy link
Contributor

Liongold commented Dec 8, 2014

I'll tentatively assign this to me. Right now I'm a little busy with a couple of things but should be able to determine whether I can do it in a week or a little more. Hopefully before the new year.

@Liongold
Copy link
Contributor

Liongold commented Dec 8, 2014

And I don't seem to be able to assign the issue to me from the web interface. So @devilx, if you want, you can assign me yourself.

@Liongold Liongold self-assigned this Dec 11, 2014
@Liongold
Copy link
Contributor

I've done some work on this and I've generated this first file. @devilx Can you check it out since I don't have Evernote myself? https://gist.github.com/Liongold/4b1a5d4b2dfcf78157fc

It includes an attachment which is a text file which includes Test in it.

@mrusme
Copy link
Member

mrusme commented Dec 28, 2014

@Liongold thank you for your work! I tried to import your file into Evernote, unfortunately it didn't succeed. I've quickly compared your file with my export but couldn't find any differences, although I'd need to take a deeper look.

@Liongold
Copy link
Contributor

Could you show me the export produced by Evernote for the same note as I've exported, please?

@mrusme
Copy link
Member

mrusme commented Dec 28, 2014

@Liongold as I can not import your GIST into Evernote, I've just created one "Testing"-note myself and exported that one: https://gist.github.com/devilx/634b2d2bb5b0ff3ae5da

@Liongold
Copy link
Contributor

Attachment?

@mrusme
Copy link
Member

mrusme commented Dec 30, 2014

"Attachment"? I think it would be a good idea to set up a test account on Evernote.com and use that one to test importing/exporting functionality, as currently I can't answer to your requests as quickly as it might be needed for you to get this fixed. :-)

@Liongold
Copy link
Contributor

I'd suggest that we meet for an hour or two on IRC to be able to work together.

The export I sent you is of one note that includes an attachment in it (txt file with Test content). However, in your export I don't see any mention of attachments. Does this: https://gist.github.com/devilx/634b2d2bb5b0ff3ae5da include an attachment?

@mrusme
Copy link
Member

mrusme commented Dec 31, 2014

@Liongold nope, it doesn't. I didn't understand your question then. Here's one with a .txt File included: https://gist.github.com/devilx/f943fa7edb10b948a199

However, it'll still be good if you could set up your own Evernote account for testing purpose. Regarding the IRC thing: What timezone are you in? I'm UTC+1.

@Liongold
Copy link
Contributor

CET. If you can, we can meet right now.

@Liongold
Copy link
Contributor

Liongold commented Jan 2, 2015

Can you show me an export of multiple notebooks please?

@mrusme
Copy link
Member

mrusme commented Jan 2, 2015

It turned out Evernote can't export multiple notebooks selectively. You can either export the notes from one notebook or all the notes available.

I can't demonstrate the latter since I'm - unfortunately - having sensitive data in Evernote. Please create a test account on evernote.com and try it out.

@Liongold
Copy link
Contributor

Liongold commented Jan 2, 2015

I've opened a pull request for this feature. It's at pull request #41. Could you please check it out and comment since it's my first Laravel code?

@mrusme mrusme modified the milestone: Paperwork 1.0 Jan 6, 2015
@mrusme
Copy link
Member

mrusme commented Jan 7, 2015

#41 was implemented by @Liongold and just merged into master. @volkerpfosten if you'd like, feel free to update & test.

@mrusme
Copy link
Member

mrusme commented Jan 7, 2015

@Liongold could you check your code? I just tested it and found an issue:

Undefined variable: attachments (View: /Users/devilx/Projects/paperwork/frontend/app/views/user/settings/export_file.blade.php)

I took a look into the file and found something weird:

@if(isset($tags)) @foreach ($attachments as $attachment) <en-media type="[[ $attachment['mimetype'] ]]" hash="[[ $attachment['hash'] ]]" /><br /> @endforeach @endif

Is this supposed to check for $tags but then still use $attachments?

@mrusme mrusme reopened this Jan 7, 2015
@Liongold
Copy link
Contributor

Liongold commented Jan 8, 2015

Apologies for that issue. It should check for $attachments. I'll do it as
soon as possible.

Sincerely,
Jean Spiteri.

@Liongold
Copy link
Contributor

Liongold commented Jan 8, 2015

Can you check it now, please?

@mrusme
Copy link
Member

mrusme commented Jan 8, 2015

Looks good now! Thank you!

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

No branches or pull requests

2 participants