Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sample Importer: Handle data consistently whether from file or stdin
Importers: handle writing the journal to disk ourselves (rather than delegating to the plugin) Plugins: First pass at testing custom importer
- Loading branch information
1 parent
183795d
commit 7f5fbca
Showing
5 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"entries" : | ||
[ | ||
{ | ||
"date" : "2013-06-09 15:39", | ||
"title" : "My first entry.", | ||
"body" : "Everything is alright" | ||
}, | ||
{ | ||
"date" : "2013-06-10 15:40", | ||
"title" : "Life is good.", | ||
"body" : "But I'm better." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,3 @@ def import_(journal, input=None): | |
), | ||
file=sys.stderr, | ||
) | ||
journal.write() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters