[Catalyst] Catalyst::Model::Factory::PerRequest: missing something?

Alex Povolotsky tarkhil at over.ru
Tue Feb 24 16:52:53 GMT 2009


Hello!

I'm trying to glue Mail::IMAPTalk to Catalyst::Model with 
C::M::Factory::PerRequest and I'm sorely missing something important.

What should I write to glue module to make it a simple thing - on first 
request to $c->model('IMAP') read server name from config and just 
connect to it?

I need to call 
Mail::IMAPTalk->new(Server=>$c->config()->{'Webmail::Model::IMAP'}->{server}), 
that's all.

Alex.




More information about the Catalyst mailing list