[Html-widget] formfu contributions?

Carl Franks fireartist at gmail.com
Thu Mar 1 21:04:23 GMT 2007


On 28/02/07, Mario Minati <mario at minati.de> wrote:
> John Napiorkowski schrieb:
> > Hi,
> >
> > I know that formfu is still rapidly evolving but I was wondering if you've thought about the scope and requirements for contributions.  For example, I've been playing with porting over some of my H:W filters, such as a few filters I wrote for dealing with uploaded images.  I have one filter for regularizing uploaded images, which accepts file uploads of standard image types and converts them to a particular size and type.  This is used for creating profile avatars, etc.  However it depends on Imager.pm, which can be difficult to install if you are on a hosted server that doesn't like you compile, so I doubt you'd want it as part of the base.  Maybe things like that could go into a 'HTMLFormfuX' type namespace, and people can install them if they need them?
> >
> > I was also thinking that something that would be really useful to bootstrap development is if there were a bunch of composite elements that would have all the standard fields for addresses and constraints.  Since your system can load up from a YAML file we could start a collection of useful YAML and store them someplace in the docs, like a cookbook you could cut and paste.
> >
> > If this is something you're not ready to deal with just let me know.
> >
> > _John
> >
> >
> Hi John,
>
> I would suggest to create a different tree in the current svn (a
> different project would also be possible) where we can collect all these
> modules.
>
> Your second idea of a cookbook is very nice. I thought myself already of
> starting a Manual modul where we could collect FAQ and Cookbook.
> But for the next few days/weeks I would wait with this until the
> development settles a littl bit and we are comming to some more stable API.
>
> My two pence, what do you think Carl.

John,

You can maybe tell that Mario knows something that no-one else does! ;)

We've been discussing off-list some massive changes that I'm currently
working on, which will take formfu a step further away from being
html-widget-like, but will be very worthwhile.
As a consequence, any user-code using formfu will have to be changed.
So, yes, it might be worth holding off for a few days.

Regarding file uploads, you'll see that under
lib/HTML/FormFu/QueryType/ there's modules to support Catalyst, CGI
and CGI::Simple.
At the moment they only give access to the file header metadata - such
as filename and content-type.
I've held-off supporting access to the file contents, because if it's
implemented, it must work for all 3 supported query-types.

Regarding a scrapbook of config examples, that's a great idea.
The google-code project page has a wiki, which would be ideal.
http://code.google.com/p/html-formfu/

Cheers,
Carl



More information about the Html-widget mailing list