[ANNOUNCE] snaplet-file-dialog-0.1.0.0 available on patch-tag

61 views
Skip to first unread message

Matthias Fischmann

unread,
Oct 5, 2012, 6:06:58 AM10/5/12
to snap_fr...@googlegroups.com, sh...@cs.tu-berlin.de


Dear all,

the first version of the file dialog snaplet is out:

http://patch-tag.com/r/mf/snaplet-file-dialog/

darcs get http://patch-tag.com/r/mf/snaplet-file-dialog

It was surprisingly simple to write, and using it is quite trivial.
Please check out the haddock documentation and the included sample
project derived from `snap init`.

Features:

. Every user can upload, download, and delete files into her private
home directory.

Still missing (see TODO for a full list):

. Sub-directories.

. Handling of user groups and shared folders.

. Version control.

. Snaplet / Cabal file handling is a little crude.

. The file system interface uses System.Cmd instead of POSIX libs.

Please drop us a line if you use it. We would be particularly
interested in which features we should do next.

Cheers,
Matthias

Alfredo Di Napoli

unread,
Oct 5, 2012, 6:15:17 AM10/5/12
to snap_fr...@googlegroups.com
Thanks for your effort :)

A.


--




MightyByte

unread,
Oct 5, 2012, 10:25:19 AM10/5/12
to snap_fr...@googlegroups.com
Looks cool. One suggestion...have you thought about using the
built-in config file functionality? You're currently passing a few
configuration options as parameters to fileDialogInit. There's
certainly nothing wrong with that, but it means that the user will
have to recompile his application to change any of those parameters.
If the parameter is something that you might want the user to be able
to change without recompiling, then you should put it in a config
file.
> --
>
>
>

Matthias Fischmann

unread,
Oct 5, 2012, 11:28:37 AM10/5/12
to snap_fr...@googlegroups.com


thanks, i like that idea. i added it to the TODO list for parameters
"file system root" and the "upload file size limit".

btw, are there any snaplets on hackage that use data file (cabal
"data-dir") or config file (o'sullivan configurator) support?



On Fri, Oct 05, 2012 at 10:25:19AM -0400, MightyByte wrote:
> Date: Fri, 5 Oct 2012 10:25:19 -0400
> From: MightyByte <might...@gmail.com>
> To: snap_fr...@googlegroups.com
> Subject: Re: [snap] [ANNOUNCE] snaplet-file-dialog-0.1.0.0 available on
> patch-tag
> --
>
>

MightyByte

unread,
Oct 5, 2012, 11:55:22 AM10/5/12
to snap_fr...@googlegroups.com
Yes, I use both of them in snaplet-postgresql-simple.
> --
>
>
>
Reply all
Reply to author
Forward
0 new messages