[html-formfu] RFC: Catalyst::Model::FormFu

Peter Shangov pshangov at yahoo.com
Thu Dec 22 18:01:27 GMT 2011


Hi Matthias,

I've finally had some time to look at your version of the code. The reasons=
 why I have not merged it:=A0

1. I want to keep HTML::FormFu::Library clean of any Catalyst code - at som=
e point I plan to split the distro into two and make=A0HTML::FormFu::Librar=
y usable from other frameworks.
2. I prefer to have the option to have the cache fully loaded at startup ti=
me, and not defer anything until the application is running.=A0

The approach I'm thinking of is to make the `cache` attribute of H::FF::L a=
n object with a `cached_form` method that accepts parameters, so that one c=
ould say `$cache->cached_form( name =3D> 'form1', language =3D> 'es')`, i.e=
. keep individual cache entries for individual languages (an optional bonus=
 will be different cache implementations, i.e. memcache). Second, I want to=
 make C::M::FF accept as arguments names of optional roles to apply to H::F=
F::L, so the logic for creating form objects when they are not available in=
 the cache would be taken care of in such roles (and Catalyst-specific code=
 would go there rather than in=A0H::FF::L).

However, as I am working on completely different projects in my new job, I =
am not sure when I will have the time to do that ...

Cheers and thanks for the help,

--
Peter



>________________________________
> From: Peter Shangov <pshangov at yahoo.com>
>To: Matthias Dietrich <perl at rainboxx.de> =

>Cc: Rendering and Validation Framework HTML Form Creation <html-formfu at lis=
ts.scsys.co.uk> =

>Sent: Monday, 7 November 2011, 15:30
>Subject: Re: [html-formfu] RFC: Catalyst::Model::FormFu
> =

>
>Hi Matthias,
>
>
>Sorry for the delayed reply. I recently changed country and job and haven'=
t had the time=A0to do any open source work. Since I will not be able to=A0=
properly=A0review your changes at least for another couple of weeks, I have=
 given you co-maintainer status for Catalyst::Model::FormFu.
>
>
>Cheers,
>
>
>--
>Peter
>
>
>
>>________________________________
>>From: Matthias Dietrich <perl at rainboxx.de>
>>To: Peter Shangov <pshangov at yahoo.com>
>>Cc: Rendering and Validation Framework HTML Form Creation <html-formfu at li=
sts.scsys.co.uk>
>>Sent: Thursday, 6 October 2011, 22:32
>>Subject: Re: [html-formfu] RFC: Catalyst::Model::FormFu
>>
>>
>>Hi Peter, hi list,
>>
>>
>>would you mind taking a look at the latest version of=A0https://github.co=
m/rainboxx/catalyst-model-formfu=A0? =A0I changed it that way so the config=
 file is loaded once for all forms and a new HTML::FormFu instance is creat=
ed with the preloaded=A0config data=A0each time a form is accessed. =A0It r=
equired some small changes to H::FF itself and currently uses an internal s=
ub, so to get it working you also need the current version of=A0https://git=
hub.com/rainboxx/HTML-FormFu.
>>
>>
>>All tests pass and it seems to work as expected. =A0The code is a bit awf=
ul and needs love. =A0This was just a quick implementation.
>>
>>
>>Thank you for taking a look.
>>
>>
>>Matthias
>>
>>
>>
>>
>>--=A0
>>rainboxx Software Engineering
>>Matthias Dietrich
>>
>>rainboxx Matthias Dietrich =A0 | =A0Phone: +49 7141 / 2 39 14 71
>>K=F6nigsallee 43 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0Fax =A0: +49 3222 / 1 4=
7 63 00=A0
>>71638 Ludwigsburg =A0 =A0 =A0 =A0 =A0 =A0| =A0Mobil: +49 =A0151 / 50 60 7=
8 64
>>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0WWW =A0: =
=A0http://www.rainboxx.de
>>
>>
>>CPAN:=A0http://search.cpan.org/~mdietrich/
>>XING: https://www.xing.com/profile/Matthias_Dietrich18
>>GULP: http://www.gulp.de/profil/rainboxx.html
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20111222/a7=
7357ea/attachment.htm


More information about the HTML-FormFu mailing list