Hi Matthias,

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

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

The approach I'm thinking of is to make the `cache` attribute of H::FF::L an 
object with a `cached_form` method that accepts parameters, so that one could 
say `$cache->cached_form( name => 'form1', language => '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::FF::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 H::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 <pshan...@yahoo.com>
>To: Matthias Dietrich <p...@rainboxx.de> 
>Cc: Rendering and Validation Framework HTML Form Creation 
><html-formfu@lists.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 to do any open source work. Since I will not be able 
>to properly review 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 <p...@rainboxx.de>
>>To: Peter Shangov <pshan...@yahoo.com>
>>Cc: Rendering and Validation Framework HTML Form Creation 
>><html-formfu@lists.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 https://github.com/rainboxx/catalyst-model-formfu ?  I changed it that way 
>>so the config file is loaded once for all forms and a new HTML::FormFu 
>>instance is created with the preloaded config data each time a form is 
>>accessed.  It required some small changes to H::FF itself and currently uses 
>>an internal sub, so to get it working you also need the current version 
>>of https://github.com/rainboxx/HTML-FormFu.
>>
>>
>>All tests pass and it seems to work as expected.  The code is a bit awful and 
>>needs love.  This was just a quick implementation.
>>
>>
>>Thank you for taking a look.
>>
>>
>>Matthias
>>
>>
>>
>>
>>-- 
>>rainboxx Software Engineering
>>Matthias Dietrich
>>
>>rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
>>Königsallee 43               |  Fax  : +49 3222 / 1 47 63 00 
>>71638 Ludwigsburg            |  Mobil: +49  151 / 50 60 78 64
>>                             |  WWW  :  http://www.rainboxx.de
>>
>>
>>CPAN: http://search.cpan.org/~mdietrich/
>>XING: https://www.xing.com/profile/Matthias_Dietrich18
>>GULP: http://www.gulp.de/profil/rainboxx.html
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to