I just started looking at importing CSVs as well, to use with my 
RenderTable plugin. I will check out your code. Following with interest. :)

Best,
Joshua Fontany

On Wednesday, December 20, 2017 at 11:16:45 AM UTC-8, Evan Balster wrote:
>
> Hey, all —
>
> I'm working on this CSV "unpacker" plugin:  
> http://evanbalster.com/tiddlywiki/csv_unpack.html
>
> The introduction of deserializer modules, which I only discovered half-way 
> through the process, made things a lot easier.  But I'm a bit troubled at 
> the lack of a good mechanism for reporting errors in the import, or 
> allowing the user to customize the re-formatting of the data.
>
> There are a few scenarios I'm thinking about:
>
>    - The CSV can't be parsed due to some error.
>       - The wiki opens a tiddler describing the error, in addition to the 
>       $:/Import tiddler.
>       - OR:  The wiki displays error information in the $:/import tiddler.
>       
>       - The CSV is parsed successfully and the user needs to map CSV 
>    columns to field names in the wiki, previewing their effects.
>       - A configuration tiddler appears alongside $:/Import and allows 
>       the user to modify the imported data before finalizing the import.
>       - OR:  A "wizard" appears in the $:/Import tiddler and the user 
>       configures the import before proceeding to preview the tiddlers.
>    
> So, my questions:
>
>    - Is it bad practice to create and/or display tiddlers from a 
>    deserializer?
>    - Is it possible to incorporate this sort of functionality (wizard 
>    steps and error reporting) into the import mechanism in current or future 
>    versions of TiddlyWiki?
>    
>
> Currently my plugin requires all setup to be performed in advance, using 
> the plugin's settings.  I notice that one of the built-in deserializers 
> displays import errors by creating an imported tiddler to act as an error 
> message; I might adopt this "hack" in lieu of something better.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/bc98871d-f53a-43ce-b54e-a6d46473007a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to